Instructions to use tencent/Tencent-Hunyuan-Large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tencent/Tencent-Hunyuan-Large with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tencent/Tencent-Hunyuan-Large")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tencent/Tencent-Hunyuan-Large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tencent/Tencent-Hunyuan-Large with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tencent/Tencent-Hunyuan-Large" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tencent/Tencent-Hunyuan-Large", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tencent/Tencent-Hunyuan-Large
- SGLang
How to use tencent/Tencent-Hunyuan-Large 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/Tencent-Hunyuan-Large" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tencent/Tencent-Hunyuan-Large", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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/Tencent-Hunyuan-Large" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tencent/Tencent-Hunyuan-Large", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use tencent/Tencent-Hunyuan-Large with Docker Model Runner:
docker model run hf.co/tencent/Tencent-Hunyuan-Large
Commit History
-
downloads counted
Verified signature023bb21
-
Update README.md (#20)
Verified signature- Update README.md (efcad35e14a9c48af10ca2ee8f3c08855fca63cd) Co-authored-by: wellzhong <wellzhong@users.noreply.huggingface.co>f996145
-
Update README.md (#18)
Verified signature- Update README.md (1ef318912548e8a4f5d2a7ddf88a5362257f9ec9) Co-authored-by: wellzhong <wellzhong@users.noreply.huggingface.co>0c335f3
-
Update README.md
Verified signature094c315
-
FP8 update
5c22802 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature91bde94 -
Upload model-00080-of-00080.safetensors with huggingface_hub
Verified signaturec3425bb -
Upload model-00079-of-00080.safetensors with huggingface_hub
Verified signature3f48b63 -
Upload model-00036-of-00080.safetensors with huggingface_hub
Verified signature8d9eb4d -
Upload model-00058-of-00080.safetensors with huggingface_hub
Verified signature1678f81 -
Upload model-00071-of-00080.safetensors with huggingface_hub
Verified signature1523ff6 -
Upload model-00035-of-00080.safetensors with huggingface_hub
Verified signature6faa081 -
Upload model-00056-of-00080.safetensors with huggingface_hub
Verified signature06cbd41 -
Upload model-00019-of-00080.safetensors with huggingface_hub
Verified signatureda52f53 -
Upload model-00032-of-00080.safetensors with huggingface_hub
Verified signature17d24f6 -
Upload model-00053-of-00080.safetensors with huggingface_hub
Verified signatureebbba17 -
Upload model-00078-of-00080.safetensors with huggingface_hub
Verified signaturefc6e20e -
Upload model-00015-of-00080.safetensors with huggingface_hub
Verified signatureee13059 -
Upload model-00057-of-00080.safetensors with huggingface_hub
Verified signaturefc55759 -
Upload model-00075-of-00080.safetensors with huggingface_hub
Verified signature945e728 -
Upload model-00030-of-00080.safetensors with huggingface_hub
Verified signature960d0bd -
Upload model-00054-of-00080.safetensors with huggingface_hub
Verified signatured4b1ca0 -
Upload model-00012-of-00080.safetensors with huggingface_hub
Verified signatureb71e115 -
Upload model-00077-of-00080.safetensors with huggingface_hub
Verified signature0c1415b -
Upload model-00039-of-00080.safetensors with huggingface_hub
Verified signaturefaa5e97 -
Upload model-00010-of-00080.safetensors with huggingface_hub
Verified signature462068f -
Upload model-00059-of-00080.safetensors with huggingface_hub
Verified signatureae8e10c -
Upload model-00072-of-00080.safetensors with huggingface_hub
Verified signatureb5428b9 -
Upload model-00033-of-00080.safetensors with huggingface_hub
Verified signature183b5ab -
Upload model-00052-of-00080.safetensors with huggingface_hub
Verified signaturec47580f -
Upload model-00017-of-00080.safetensors with huggingface_hub
Verified signature10833c7 -
Upload model-00076-of-00080.safetensors with huggingface_hub
Verified signaturef0640ca -
Upload model-00038-of-00080.safetensors with huggingface_hub
Verified signature116c2d8 -
Upload model-00016-of-00080.safetensors with huggingface_hub
Verified signature1698e47 -
Upload model-00073-of-00080.safetensors with huggingface_hub
Verified signatured02ef09 -
Upload model-00055-of-00080.safetensors with huggingface_hub
Verified signature0a9d539 -
Upload model-00037-of-00080.safetensors with huggingface_hub
Verified signature243b634 -
Upload model-00013-of-00080.safetensors with huggingface_hub
Verified signature593ba29 -
Upload model-00050-of-00080.safetensors with huggingface_hub
Verified signatureff29d11 -
Upload model-00031-of-00080.safetensors with huggingface_hub
Verified signature826485e -
Upload model-00074-of-00080.safetensors with huggingface_hub
Verified signature5edb122 -
Upload model-00014-of-00080.safetensors with huggingface_hub
Verified signature4b1653a -
Upload model-00034-of-00080.safetensors with huggingface_hub
Verified signature9ba242e -
Upload model-00051-of-00080.safetensors with huggingface_hub
Verified signaturea1b1a6c -
Upload model-00070-of-00080.safetensors with huggingface_hub
Verified signatureb955e9e -
Upload model-00018-of-00080.safetensors with huggingface_hub
Verified signature0466fe3 -
Upload model-00027-of-00080.safetensors with huggingface_hub
Verified signatureba0df58 -
Upload model-00040-of-00080.safetensors with huggingface_hub
Verified signature0fea78b -
Upload model-00064-of-00080.safetensors with huggingface_hub
Verified signaturecce0d96 -
Upload model-00011-of-00080.safetensors with huggingface_hub
Verified signatureae16711