Text Generation
Transformers
Safetensors
deepseek_v2
conversational
custom_code
Eval Results
text-generation-inference
Instructions to use deepseek-ai/DeepSeek-V2.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepseek-ai/DeepSeek-V2.5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="deepseek-ai/DeepSeek-V2.5", 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-V2.5", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("deepseek-ai/DeepSeek-V2.5", trust_remote_code=True, device_map="auto") 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use deepseek-ai/DeepSeek-V2.5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "deepseek-ai/DeepSeek-V2.5" # 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-V2.5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/deepseek-ai/DeepSeek-V2.5
- SGLang
How to use deepseek-ai/DeepSeek-V2.5 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-V2.5" \ --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-V2.5", "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-V2.5" \ --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-V2.5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use deepseek-ai/DeepSeek-V2.5 with Docker Model Runner:
docker model run hf.co/deepseek-ai/DeepSeek-V2.5
Add EvalEval community eval results
#27 opened 2 months ago
by
EvalEvalBot
Fix chat_template crash when assistant message omits the `content` key
#26 opened 3 months ago
by
qgallouedec
How to merge two models?
#25 opened about 1 year ago
by
DanielJi
工具调用有问题,至少官网api有问题
#24 opened over 1 year ago
by
suertang
Point to newer version
#23 opened over 1 year ago
by
victor
Dataset of deepseek v2.5
1
#22 opened over 1 year ago
by
raji470
Support of Beta API on vLLM
#21 opened over 1 year ago
by
taoqiuyang
Why api context lenght is decreace to 64k?
#20 opened over 1 year ago
by
AlexBromson
Thanks a lot for this awesome model
#19 opened almost 2 years ago
by
Volko76
No module named 'transformers_modules.deepseek-ai'
#18 opened almost 2 years ago
by
sjelassi
any timeline to get deepseek v2.5 instruct?
1
#17 opened almost 2 years ago
by
yuuuzeee
Code Editing: Performing refactorings on large files
#15 opened almost 2 years ago
by
elifarley
有awq量化版本吗?
3
#14 opened almost 2 years ago
by
adol-ch
Update README.md
1
#12 opened almost 2 years ago
by
Flexlloyd
Update README.md
#11 opened almost 2 years ago
by
012jaus
Details of the combination of DeepSeek-v2 and DeepSeek-Code-v2.
#10 opened almost 2 years ago
by
tzt
chat template for tool use?
#8 opened almost 2 years ago
by
apepkuss79
Update README.md
#7 opened almost 2 years ago
by
Justme08
Awesome model
👍 4
6
#5 opened almost 2 years ago
by
jreoka
Submit SWE-bench result
1
#4 opened almost 2 years ago
by
EwoutH
DeepSeek-Coder-V2.5-Lite
➕🔥 18
13
#3 opened almost 2 years ago
by
smcleod
Better display of badges on model card
#2 opened almost 2 years ago
by
victor
Add proper library tag
#1 opened almost 2 years ago
by
osanseviero