Instructions to use tencent/Hunyuan-A13B-Instruct-FP8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tencent/Hunyuan-A13B-Instruct-FP8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tencent/Hunyuan-A13B-Instruct-FP8", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("tencent/Hunyuan-A13B-Instruct-FP8", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tencent/Hunyuan-A13B-Instruct-FP8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tencent/Hunyuan-A13B-Instruct-FP8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tencent/Hunyuan-A13B-Instruct-FP8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tencent/Hunyuan-A13B-Instruct-FP8
- SGLang
How to use tencent/Hunyuan-A13B-Instruct-FP8 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "tencent/Hunyuan-A13B-Instruct-FP8" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tencent/Hunyuan-A13B-Instruct-FP8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "tencent/Hunyuan-A13B-Instruct-FP8" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tencent/Hunyuan-A13B-Instruct-FP8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use tencent/Hunyuan-A13B-Instruct-FP8 with Docker Model Runner:
docker model run hf.co/tencent/Hunyuan-A13B-Instruct-FP8
Commit History
-
Update README.md
Verified signatureb560265
-
Update README.md
Verified signaturef64f86f -
Update README.md
Verified signaturea6822e9 -
Delete vit_model.py
Verified signature2814982 -
Upload hunyuan.py with huggingface_hub
Verified signatureb752651 -
Updating `library_name` tag for better download tracking as well as snippets on the Hub! 🤗 (#2)
Verified signature- Updating `library_name` tag for better download tracking as well as snippets on the Hub! 🤗 (7e61e3946b3050d835b82c56dfa28145e494fbba) Co-authored-by: Vaibhav Srivastav <reach-vb@users.noreply.huggingface.co>b0da662 -
Update README.md
Verified signature20dc1a4 -
update readme for fp8 (#1)
Verified signature- update readme for fp8 (57b5f94f4c4e7facb6014752d5de02404a1c3858)51ff041 -
Update README.md
Verified signature2645d0f
-
Upload vit_model.py with huggingface_hub
Verified signaturec6cb09c -
Upload tokenizer_config.json with huggingface_hub
Verified signature5791ecf -
Upload tokenization_hy.py with huggingface_hub
Verified signaturecbca738 -
Upload special_tokens_map.json with huggingface_hub
Verified signature9e50fe9 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature52269be -
Upload modeling_hunyuan.py with huggingface_hub
Verified signature03c370c -
Upload hy.tiktoken with huggingface_hub
Verified signature0226108 -
Upload hunyuan.tiktoken with huggingface_hub
Verified signature3dc9b78 -
Upload hunyuan.py with huggingface_hub
Verified signature1cb4ead -
Upload generation_config.json with huggingface_hub
Verified signature7032224 -
Upload configuration_hunyuan.py with huggingface_hub
Verified signature03c0736 -
Upload config.json with huggingface_hub
Verified signature4a43c81 -
Upload model-00015-of-00017.safetensors with huggingface_hub
Verified signaturee05ca5e -
Upload model-00002-of-00017.safetensors with huggingface_hub
Verified signature1b8e059 -
Upload model-00011-of-00017.safetensors with huggingface_hub
Verified signature7aa9d61 -
Upload model-00006-of-00017.safetensors with huggingface_hub
Verified signature815a90f -
Upload model-00010-of-00017.safetensors with huggingface_hub
Verified signature2c0cc60 -
Upload model-00014-of-00017.safetensors with huggingface_hub
Verified signature8159745 -
Upload model-00008-of-00017.safetensors with huggingface_hub
Verified signatureb1436ed -
Upload model-00003-of-00017.safetensors with huggingface_hub
Verified signaturef0a4dc6 -
Upload model-00005-of-00017.safetensors with huggingface_hub
Verified signature4b21183 -
Upload model-00016-of-00017.safetensors with huggingface_hub
Verified signaturee5bb514 -
Upload model-00009-of-00017.safetensors with huggingface_hub
Verified signature97cb4c9 -
Upload model-00012-of-00017.safetensors with huggingface_hub
Verified signature849fd34 -
Upload model-00007-of-00017.safetensors with huggingface_hub
Verified signature34d78cd -
Upload model-00001-of-00017.safetensors with huggingface_hub
Verified signature8a2faaf -
Upload model-00013-of-00017.safetensors with huggingface_hub
Verified signatured0422f3 -
Upload model-00004-of-00017.safetensors with huggingface_hub
Verified signature79a90ad -
Upload Notice.txt
Verified signature1135973 -
Update LICENSE
Verified signaturebc9d681 -
Upload model-00017-of-00017.safetensors with huggingface_hub
Verified signaturef8a5eda -
Upload vit_model.py with huggingface_hub
Verified signaturea8b3c51 -
Upload tokenizer_config.json with huggingface_hub
Verified signaturee4d41f4 -
Upload tokenization_hy.py with huggingface_hub
Verified signature49d17a4 -
Upload special_tokens_map.json with huggingface_hub
Verified signature0b3dcf9 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature3bd0a40 -
Upload modeling_hunyuan.py with huggingface_hub
Verified signatureaaccab2 -
Upload hy.tiktoken with huggingface_hub
Verified signatured96a1de -
Upload hunyuan.tiktoken with huggingface_hub
Verified signature6af5bb7 -
Upload hunyuan.py with huggingface_hub
Verified signature92014b8 -
Upload generation_config.json with huggingface_hub
Verified signatureb74193c