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")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tencent/Tencent-Hunyuan-Large", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- 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 Β·
5c43911
1
Parent(s): df34c7b
change name
Browse filesThis view is limited to 50 files because it contains too many changes. Β See raw diff
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/config.json +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/configuration_hunyuan.py +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/generation_config.json +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/hy.tiktoken +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00001-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00002-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00003-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00004-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00005-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00006-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00007-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00008-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00009-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00010-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00011-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00012-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00013-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00014-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00015-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00016-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00017-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00018-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00019-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00020-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00021-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00022-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00023-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00024-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00025-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00026-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00027-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00028-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00029-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00030-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00031-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00032-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00033-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00034-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00035-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00036-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00037-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00038-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00039-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00040-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00041-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00042-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00043-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00044-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00045-of-00080.safetensors +0 -0
- {Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00046-of-00080.safetensors +0 -0
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/config.json
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/configuration_hunyuan.py
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/generation_config.json
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/hy.tiktoken
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00001-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00002-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00003-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00004-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00005-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00006-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00007-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00008-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00009-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00010-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00011-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00012-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00013-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00014-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00015-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00016-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00017-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00018-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00019-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00020-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00021-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00022-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00023-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00024-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00025-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00026-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00027-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00028-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00029-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00030-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00031-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00032-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00033-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00034-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00035-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00036-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00037-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00038-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00039-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00040-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00041-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00042-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00043-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00044-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00045-of-00080.safetensors
RENAMED
|
File without changes
|
{Hunyuan-A50B-Instruct-FP8 β Hunyuan-A52B-Instruct-FP8}/model-00046-of-00080.safetensors
RENAMED
|
File without changes
|