The NVIDIA DeepSeek R1 FP4 v2 model is the quantized version of the DeepSeek AI's DeepSeek R1 model, which is an auto-regressive language model that uses an optimized transformer architecture. For more information, please check here. The NVIDIA DeepSeek R1 FP4 model is quantized with TensorRT Model Optimizer.
Compared to nvidia/DeepSeek-R1-FP4, this checkpoint additionally quantizes the wo module in attention layers.
This model is ready for commercial/non-commercial use.
This model is not owned or developed by NVIDIA. This model has been developed and built to a third-party’s requirements for this application and use case; see link to Non-NVIDIA (DeepSeek R1) Model Card.
Architecture Type: Transformers
Network Architecture: DeepSeek R1
Input Type(s): Text
Input Format(s): String
Input Parameters: 1D (One Dimensional): Sequences
Other Properties Related to Input: DeepSeek recommends adhering to the following configurations when utilizing the DeepSeek-R1 series models, including benchmarking, to achieve the expected performance: \
Output Type(s): Text
Output Format: String
Output Parameters: 1D (One Dimensional): Sequences
Supported Runtime Engine(s):
Supported Hardware Microarchitecture Compatibility:
Preferred Operating System(s):
** The model is quantized with nvidia-modelopt v0.33.0
** Data Collection Method by dataset: Hybrid: Human, Automated
** Labeling Method by dataset: Hybrid: Human, Automated
** Data Collection Method by dataset: Hybrid: Human, Automated
** Labeling Method by dataset: Hybrid: Human, Automated
** Data Collection Method by dataset: Hybrid: Human, Automated
** Labeling Method by dataset: Hybrid: Human, Automated
Engine: TensorRT-LLM
Test Hardware: B200
This model was obtained by quantizing the weights and activations of DeepSeek R1 to FP4 data type, ready for inference with TensorRT-LLM. Only the weights and activations of the linear operators within transformer blocks are quantized. This optimization reduces the number of bits per parameter from 8 to 4, reducing the disk size and GPU memory requirements by approximately 1.6x.
To deploy the quantized FP4 checkpoint with TensorRT-LLM LLM API, follow the sample codes below (you need 8xB200 GPU and TensorRT LLM built from source with the latest main branch):
from tensorrt_llm import SamplingParams
from tensorrt_llm._torch import LLM
def main():
prompts = [
"Hello, my name is",
"The president of the United States is",
"The capital of France is",
"The future of AI is",
]
sampling_params = SamplingParams(max_tokens=32)
llm = LLM(model="nvidia/DeepSeek-R1-FP4-v2", tensor_parallel_size=8, enable_attention_dp=True)
outputs = llm.generate(prompts, sampling_params)
# Print the outputs.
for output in outputs:
prompt = output.prompt
generated_text = output.outputs[0].text
print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
# The entry point of the program need to be protected for spawning processes.
if __name__ == '__main__':
main()
If you want to deploy your endpoint to minimize response latency for a single-concurrency or low-concurrency use case, follow the instructions below.
Step 1: Create configuration file (args.yaml)
moe_backend: TRTLLM
use_cuda_graph: true
speculative_config:
decoding_type: MTP
num_nextn_predict_layers: 3
use_relaxed_acceptance_for_thinking: true
relaxed_topk: 10
relaxed_delta: 0.6
Step 2: Start the TensorRT-LLM server
trtllm-serve nvidia/DeepSeek-R1-FP4-v2 \
--host 0.0.0.0 \
--port 8000 \
--backend pytorch \
--max_batch_size 4 \
--tp_size 8 \
--ep_size 2 \
--max_num_tokens 32768 \
--trust_remote_code \
--extra_llm_api_options args.yaml \
--kv_cache_free_gpu_memory_fraction 0.75
Step 3: Send an example query
curl localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "nvidia/DeepSeek-R1-FP4-v2",
"messages": [{"role": "user", "content": "Why is NVIDIA a great company?"}],
"max_tokens": 1024
}'
The accuracy benchmark results are presented in the table below:
| Precision | MMLU Pro | GPQA Diamond | HLE | LiveCodeBench | MATH-500 | AIME 2024 |
| FP8 (AA Ref) | 84 | 71 | 9 | 62 | 96 | 68 |
| FP4 | 83 | 71 | 9 | 68 | 96 | 74 |
The base model was trained on data that contains toxic language and societal biases originally crawled from the internet. Therefore, the model may amplify those biases and return toxic responses especially when prompted with toxic prompts. The model may generate answers that may be inaccurate, omit key information, or include irrelevant or redundant text producing socially unacceptable or undesirable text, even if the prompt itself does not include anything explicitly offensive.
NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.
Please report security vulnerabilities or NVIDIA AI Concerns here.
Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo nvidia/DeepSeek-R1-NVFP4-v2 ./model-foldermodel-00163-of-000163.safetensors 8.6 GiBmodel-00162-of-000163.safetensors 8.0 GiBmodel-00161-of-000163.safetensors 8.0 GiBmodel-00001-of-000163.safetensors 3.9 GiBmodel-00160-of-000163.safetensors 3.8 GiBmodel-00006-of-000163.safetensors 2.4 GiBmodel-00031-of-000163.safetensors 2.3 GiBmodel-00053-of-000163.safetensors 2.3 GiBmodel-00075-of-000163.safetensors 2.3 GiBmodel-00097-of-000163.safetensors 2.3 GiBmodel-00119-of-000163.safetensors 2.3 GiBmodel-00023-of-000163.safetensors 2.3 GiBmodel-00045-of-000163.safetensors 2.3 GiBmodel-00067-of-000163.safetensors 2.3 GiBmodel-00089-of-000163.safetensors 2.3 GiBmodel-00111-of-000163.safetensors 2.3 GiBmodel-00133-of-000163.safetensors 2.3 GiBmodel-00152-of-000163.safetensors 2.3 GiBmodel-00037-of-000163.safetensors 2.3 GiBmodel-00059-of-000163.safetensors 2.3 GiBmodel-00081-of-000163.safetensors 2.3 GiBmodel-00103-of-000163.safetensors 2.3 GiBmodel-00125-of-000163.safetensors 2.3 GiBmodel-00144-of-000163.safetensors 2.3 GiBmodel-00026-of-000163.safetensors 2.3 GiBmodel-00048-of-000163.safetensors 2.3 GiBmodel-00070-of-000163.safetensors 2.3 GiBmodel-00092-of-000163.safetensors 2.3 GiBmodel-00114-of-000163.safetensors 2.3 GiBmodel-00136-of-000163.safetensors 2.3 GiBmodel-00155-of-000163.safetensors 2.3 GiBmodel-00040-of-000163.safetensors 2.3 GiBmodel-00062-of-000163.safetensors 2.3 GiBmodel-00084-of-000163.safetensors 2.3 GiBmodel-00106-of-000163.safetensors 2.3 GiBmodel-00128-of-000163.safetensors 2.3 GiBmodel-00147-of-000163.safetensors 2.3 GiBmodel-00029-of-000163.safetensors 2.3 GiBmodel-00051-of-000163.safetensors 2.3 GiBmodel-00073-of-000163.safetensors 2.3 GiBmodel-00095-of-000163.safetensors 2.3 GiBmodel-00117-of-000163.safetensors 2.3 GiBmodel-00139-of-000163.safetensors 2.3 GiBmodel-00158-of-000163.safetensors 2.3 GiBmodel-00043-of-000163.safetensors 2.3 GiBmodel-00065-of-000163.safetensors 2.3 GiBmodel-00087-of-000163.safetensors 2.3 GiBmodel-00109-of-000163.safetensors 2.3 GiBmodel-00131-of-000163.safetensors 2.3 GiBmodel-00150-of-000163.safetensors 2.3 GiBmodel-00021-of-000163.safetensors 2.3 GiBmodel-00015-of-000163.safetensors 2.3 GiBmodel-00009-of-000163.safetensors 2.3 GiBmodel-00018-of-000163.safetensors 2.3 GiBmodel-00004-of-000163.safetensors 2.3 GiBmodel-00035-of-000163.safetensors 2.3 GiBmodel-00057-of-000163.safetensors 2.3 GiBmodel-00079-of-000163.safetensors 2.3 GiBmodel-00101-of-000163.safetensors 2.3 GiBmodel-00123-of-000163.safetensors 2.3 GiBmodel-00142-of-000163.safetensors 2.3 GiBmodel-00013-of-000163.safetensors 2.3 GiBmodel-00007-of-000163.safetensors 2.3 GiBmodel-00033-of-000163.safetensors 2.3 GiBmodel-00042-of-000163.safetensors 2.3 GiBmodel-00055-of-000163.safetensors 2.3 GiBmodel-00064-of-000163.safetensors 2.3 GiBmodel-00077-of-000163.safetensors 2.3 GiBmodel-00086-of-000163.safetensors 2.3 GiBmodel-00099-of-000163.safetensors 2.3 GiBmodel-00108-of-000163.safetensors 2.3 GiBmodel-00121-of-000163.safetensors 2.3 GiBmodel-00130-of-000163.safetensors 2.3 GiBmodel-00149-of-000163.safetensors 2.3 GiBmodel-00025-of-000163.safetensors 2.3 GiBmodel-00028-of-000163.safetensors 2.3 GiBmodel-00039-of-000163.safetensors 2.3 GiBmodel-00047-of-000163.safetensors 2.3 GiBmodel-00050-of-000163.safetensors 2.3 GiBmodel-00061-of-000163.safetensors 2.3 GiBmodel-00069-of-000163.safetensors 2.3 GiBmodel-00072-of-000163.safetensors 2.3 GiBmodel-00083-of-000163.safetensors 2.3 GiBmodel-00091-of-000163.safetensors 2.3 GiBmodel-00094-of-000163.safetensors 2.3 GiBmodel-00105-of-000163.safetensors 2.3 GiBmodel-00113-of-000163.safetensors 2.3 GiBmodel-00116-of-000163.safetensors 2.3 GiBmodel-00127-of-000163.safetensors 2.3 GiBmodel-00135-of-000163.safetensors 2.3 GiBmodel-00138-of-000163.safetensors 2.3 GiBmodel-00146-of-000163.safetensors 2.3 GiBmodel-00154-of-000163.safetensors 2.3 GiBmodel-00157-of-000163.safetensors 2.3 GiBmodel-00036-of-000163.safetensors 2.3 GiBmodel-00058-of-000163.safetensors 2.3 GiBmodel-00080-of-000163.safetensors 2.3 GiBmodel-00102-of-000163.safetensors 2.3 GiBmodel-00124-of-000163.safetensors 2.3 GiBmodel-00143-of-000163.safetensors 2.3 GiBmodel-00022-of-000163.safetensors 2.3 GiBmodel-00044-of-000163.safetensors 2.3 GiBmodel-00066-of-000163.safetensors 2.3 GiBmodel-00088-of-000163.safetensors 2.3 GiBmodel-00110-of-000163.safetensors 2.3 GiBmodel-00132-of-000163.safetensors 2.3 GiBmodel-00151-of-000163.safetensors 2.3 GiBmodel-00030-of-000163.safetensors 2.3 GiBmodel-00052-of-000163.safetensors 2.3 GiBmodel-00074-of-000163.safetensors 2.3 GiBmodel-00096-of-000163.safetensors 2.3 GiBmodel-00118-of-000163.safetensors 2.3 GiBmodel-00140-of-000163.safetensors 2.3 GiBmodel-00159-of-000163.safetensors 2.3 GiBmodel-00041-of-000163.safetensors 2.3 GiBmodel-00063-of-000163.safetensors 2.3 GiBmodel-00085-of-000163.safetensors 2.3 GiBmodel-00107-of-000163.safetensors 2.3 GiBmodel-00129-of-000163.safetensors 2.3 GiBmodel-00148-of-000163.safetensors 2.3 GiBmodel-00027-of-000163.safetensors 2.3 GiBmodel-00049-of-000163.safetensors 2.3 GiBmodel-00071-of-000163.safetensors 2.3 GiBmodel-00093-of-000163.safetensors 2.3 GiBmodel-00115-of-000163.safetensors 2.3 GiBmodel-00137-of-000163.safetensors 2.3 GiBmodel-00156-of-000163.safetensors 2.3 GiBmodel-00038-of-000163.safetensors 2.3 GiBmodel-00060-of-000163.safetensors 2.3 GiBmodel-00082-of-000163.safetensors 2.3 GiBmodel-00104-of-000163.safetensors 2.3 GiBmodel-00126-of-000163.safetensors 2.3 GiBmodel-00145-of-000163.safetensors 2.3 GiBmodel-00024-of-000163.safetensors 2.3 GiBmodel-00046-of-000163.safetensors 2.3 GiBmodel-00068-of-000163.safetensors 2.3 GiBmodel-00090-of-000163.safetensors 2.3 GiBmodel-00112-of-000163.safetensors 2.3 GiBmodel-00134-of-000163.safetensors 2.3 GiBmodel-00153-of-000163.safetensors 2.3 GiBmodel-00032-of-000163.safetensors 2.3 GiBmodel-00054-of-000163.safetensors 2.3 GiBmodel-00076-of-000163.safetensors 2.3 GiBmodel-00098-of-000163.safetensors 2.3 GiBmodel-00120-of-000163.safetensors 2.3 GiBmodel-00020-of-000163.safetensors 2.3 GiBmodel-00003-of-000163.safetensors 2.3 GiBmodel-00011-of-000163.safetensors 2.3 GiBmodel-00017-of-000163.safetensors 2.3 GiBmodel-00008-of-000163.safetensors 2.3 GiBmodel-00014-of-000163.safetensors 2.3 GiBmodel-00005-of-000163.safetensors 2.3 GiBmodel-00019-of-000163.safetensors 2.3 GiBmodel-00002-of-000163.safetensors 2.3 GiBmodel-00010-of-000163.safetensors 2.3 GiBmodel-00016-of-000163.safetensors 2.3 GiBmodel-00141-of-000163.safetensors 1.6 GiBmodel-00034-of-000163.safetensors 937 MiBmodel-00056-of-000163.safetensors 937 MiBmodel-00078-of-000163.safetensors 937 MiBmodel-00100-of-000163.safetensors 937 MiBmodel-00122-of-000163.safetensors 937 MiBmodel-00012-of-000163.safetensors 709 MiBdeepseek-ai/DeepSeek-R1