Text Generation
Transformers
Safetensors
deepseek_v3
conversational
custom_code
Eval Results
text-generation-inference
fp8
Instructions to use deepseek-ai/DeepSeek-V3-0324 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepseek-ai/DeepSeek-V3-0324 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="deepseek-ai/DeepSeek-V3-0324", 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-0324", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("deepseek-ai/DeepSeek-V3-0324", 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]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use deepseek-ai/DeepSeek-V3-0324 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-0324" # 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-0324", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/deepseek-ai/DeepSeek-V3-0324
- SGLang
How to use deepseek-ai/DeepSeek-V3-0324 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-0324" \ --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-0324", "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-0324" \ --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-0324", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use deepseek-ai/DeepSeek-V3-0324 with Docker Model Runner:
docker model run hf.co/deepseek-ai/DeepSeek-V3-0324
Example for evaluating the DeepSeek-V3-0324 API performance
❤️🔥 3
#33 opened over 1 year ago
by
wangxingjun778
685B? what are extra parameters as compared to 671B
2
#32 opened over 1 year ago
by
hankhw
No idea what to say
4
#31 opened over 1 year ago
by
InclinedColaboration
What's the prompt for AIME and GPQA datasets?
2
#30 opened over 1 year ago
by
xinyuzh
SimpleQA?
👍 8
3
#29 opened over 1 year ago
by
phil111
That's the best day in our "open AI" world.
🤗❤️ 40
8
#28 opened over 1 year ago
by
DOFOFFICIAL
bbb
#27 opened over 1 year ago
by
Hugedhdhdhdhdhdh
How to use function calling in self deploy DeepSeek-V3?
👍 1
1
#26 opened over 1 year ago
by
gaoxt1983
[fix readme] Latex markdown not rendering properly
#25 opened over 1 year ago
by
adarshxs
Please, hurry up and release the quantized version!
1
#23 opened over 1 year ago
by
zy19898
我是萌新。请问这家公司叫openai吗?
👍🤝 45
8
#22 opened over 1 year ago
by
logincreeper
Update README.md
#21 opened over 1 year ago
by
ChiragAI12
Function Calling好像修复了
👍 6
7
#20 opened over 1 year ago
by
hunzizhe
Can a quantized version of deepseek-v3-0324 be implemented on a machine with a cluster of 8 *A100s?
10
#19 opened over 1 year ago
by
xueshuai
request for ollama
➕ 10
4
#17 opened over 1 year ago
by
ainz
What is new in this version! NICE WORK!!!!
👍🔥 4
2
#16 opened over 1 year ago
by
JianyuZhang
Video of Thorough Testing of New V3 - Take a Bow
#15 opened over 1 year ago
by
fahdmirzac
China is my pookie snoogum bear
❤️🔥 21
1
#12 opened over 1 year ago
by
TimmyBBob
I LOVE YOU CHINA!!!
❤️🤗 87
3
#11 opened over 1 year ago
by
TimmyBBob
F*** Sam Altman!
🔥❤️ 180
23
#8 opened over 1 year ago
by
6cf
README.md updated
3
#7 opened over 1 year ago
by
Volko76
Thanks a lot
❤️ 26
#6 opened over 1 year ago
by
Volko76
tau-bench results
👀 3
#5 opened over 1 year ago
by
quantizor
Request for small distill models that can run on laptop
👍 25
2
#3 opened over 1 year ago
by
darwin2025
官网能用v3了吗?
12
#2 opened over 1 year ago
by
leo009
Request for a 40-60B Parameter Model Compatible with A100 (80GB)
👍 6
10
#1 opened over 1 year ago
by
potanin-marat