Text Generation
Transformers
Safetensors
English
Chinese
deepseek_v4
nvfp4
ocp-mx
quantization
amd-quark
Mixture of Experts
deepseek
8-bit precision
quark
Instructions to use amd/DeepSeek-V4-Pro-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use amd/DeepSeek-V4-Pro-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="amd/DeepSeek-V4-Pro-NVFP4")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("amd/DeepSeek-V4-Pro-NVFP4") model = AutoModelForCausalLM.from_pretrained("amd/DeepSeek-V4-Pro-NVFP4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use amd/DeepSeek-V4-Pro-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "amd/DeepSeek-V4-Pro-NVFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "amd/DeepSeek-V4-Pro-NVFP4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/amd/DeepSeek-V4-Pro-NVFP4
- SGLang
How to use amd/DeepSeek-V4-Pro-NVFP4 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 "amd/DeepSeek-V4-Pro-NVFP4" \ --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": "amd/DeepSeek-V4-Pro-NVFP4", "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 "amd/DeepSeek-V4-Pro-NVFP4" \ --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": "amd/DeepSeek-V4-Pro-NVFP4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use amd/DeepSeek-V4-Pro-NVFP4 with Docker Model Runner:
docker model run hf.co/amd/DeepSeek-V4-Pro-NVFP4
Commit History
-
Update README.md
Verified signature8808a71
-
Delete input_scale.safetensors
Verified signature6f491a9 -
quark_updated (#4)
- upload (1acac8b63375408853cbe12a7494b1eed24d1024) Co-authored-by: linzhao <linzhao-amd@users.noreply.huggingface.co>b4033bb
-
Update README.md
Verified signature6840699
-
Update README.md
Verified signature5082c11 -
Delete inference/__pycache__
Verified signature7e92128 -
Delete assets
Verified signaturee6c235d -
Update README.md
Verified signatureb774d37 -
verified model upload (#3)
- upload (2573941d6ff88594252444be2086e3137fdbdd4c)0b11af0 -
Update README.md
Verified signature7a10c2a
-
Delete input_scale.safetensors
Verified signatureb6adcd5
-
Update README.md
Verified signature273e68f -
Update README.md
Verified signature74a1151 -
Update README.md
Verified signature99e11c3 -
Update README.md
Verified signature92a3086 -
Update README.md
Verified signature0cdb004 -
Update README.md
Verified signaturecf31067 -
Update README.md
Verified signature3a2dc40 -
Update README.md
Verified signature5a2f530 -
Update README.md
Verified signature8c51b30 -
Update README.md
Verified signature45163a8
-
Update README.md
Verified signatured9f0312
-
Delete DeepSeek_V4.pdf
Verified signature6b91b6d
-
Delete assets
Verified signaturea48418d -
Add files using upload-large-folder tool
Verified signature9c10f3c -
Add files using upload-large-folder tool
Verified signaturea133dec
-
initial commit
Verified signaturee678828