Text Generation
Transformers
Safetensors
deepseek_v3
conversational
custom_code
Eval Results
text-generation-inference
fp8
Instructions to use deepseek-ai/DeepSeek-V3.1-Terminus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepseek-ai/DeepSeek-V3.1-Terminus with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="deepseek-ai/DeepSeek-V3.1-Terminus", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("deepseek-ai/DeepSeek-V3.1-Terminus", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("deepseek-ai/DeepSeek-V3.1-Terminus", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use deepseek-ai/DeepSeek-V3.1-Terminus with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "deepseek-ai/DeepSeek-V3.1-Terminus" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepseek-ai/DeepSeek-V3.1-Terminus", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/deepseek-ai/DeepSeek-V3.1-Terminus
- SGLang
How to use deepseek-ai/DeepSeek-V3.1-Terminus 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 "deepseek-ai/DeepSeek-V3.1-Terminus" \ --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": "deepseek-ai/DeepSeek-V3.1-Terminus", "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 "deepseek-ai/DeepSeek-V3.1-Terminus" \ --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": "deepseek-ai/DeepSeek-V3.1-Terminus", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use deepseek-ai/DeepSeek-V3.1-Terminus with Docker Model Runner:
docker model run hf.co/deepseek-ai/DeepSeek-V3.1-Terminus
Add EvalEval community eval results
#16 opened 23 days ago
by
EvalEvalBot
Fix chat_template crash when assistant message omits the `content` key
#15 opened about 2 months ago
by
qgallouedec
咨询Search Agent工具使用问题
#14 opened 9 months ago
by
LeonardYue
期望给一个Search-Agent的chat template
👀 1
#13 opened 9 months ago
by
zhangwei273
Update README.md
1
#12 opened 9 months ago
by
IMANKHORSHIDI
国庆是休息日,请给我们关注的同学一点休息时间
👀👍 64
1
#10 opened 9 months ago
by
luckjone
Request: DOI
#9 opened 9 months ago
by
ounomamerci
This model is much better, at least in terms of the use of cline
#8 opened 9 months ago
by
jiangchengchengNLP
V3.1不是混合模式嘛,如何控制thinking和 no thinking模式?
1
#7 opened 9 months ago
by
jakyer
When can we expect V4???
1
#6 opened 9 months ago
by
cinnybun02
FP8 UE8M0 Support
#5 opened 9 months ago
by
haili-tian
Update README.md
#3 opened 9 months ago
by
liciardeandre
A Thorough Testing Video and Overview of Model - Step by Step
👍 4
1
#2 opened 9 months ago
by
fahdmirzac
Does the "terminus" mean the end of v3 series?
🤯👀 27
3
#1 opened 9 months ago
by
DingzhenPearl