Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

tencent
/
Tencent-Hunyuan-Large

Text Generation
Transformers
Safetensors
English
Eval Results
Model card Files Files and versions
xet
Community
23

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 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
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Add EvalEval community eval results

#23 opened 23 days ago by
EvalEvalBot

Update README.md

#22 opened over 1 year ago by
davidducmanh0710

Request for MMLU-Pro Subject-wise Breakdown

#21 opened over 1 year ago by
ubowang

MLX quants

6
#19 opened over 1 year ago by
ehartford

GGUF model files

1
#17 opened over 1 year ago by
smcleod

Why do we have model.embed_tokens.weight in both pytorch_model-00001-of-00080.bin and pytorch_model-00062-of-00080.bin

1
#16 opened over 1 year ago by
Zhiyuan0511

why won't it talk about June 5th, 1989?

🔥 1
4
#15 opened over 1 year ago by
terminusresearchorg

Safetensor format

2
#14 opened over 1 year ago by
JustJaro

这个模型得什么配置能运行起来啊

3
#13 opened over 1 year ago by
demo001s

How to evaluate models

👍 1
#10 opened over 1 year ago by
ldwang

hunyuan-turbo-latest - Open weights?

👍 4
#9 opened over 1 year ago by
NSx1

Turkish language problem

#8 opened over 1 year ago by
omer0909

Add llama.cpp support

👍 20
1
#7 opened over 1 year ago by
ChuckMcSneed

Hello & Congrats from Hugging Face! 🤗

👍➕ 7
11
#3 opened over 1 year ago by
reach-vb
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs