nvidia

nvidia/DeepSeek-R1-0528-NVFP4-v2

No description available.

Model Documentation

Model Overview



Description:

The NVIDIA DeepSeek-R1-0528-FP4 v2 model is the quantized version of the DeepSeek AI's DeepSeek R1 0528 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-0528-FP4, this checkpoint additionally quantizes the wo module in attention layers.

This model is ready for commercial/non-commercial use.


Third-Party Community Consideration

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.

License/Terms of Use:

MIT

Model Architecture:

Architecture Type: Transformers
Network Architecture: DeepSeek R1


Input:

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: \

  • Set the temperature within the range of 0.5-0.7 (0.6 is recommended) to prevent endless repetitions or incoherent outputs.
  • Avoid adding a system prompt; all instructions should be contained within the user prompt.
  • For mathematical problems, it is advisable to include a directive in your prompt such as: "Please reason step by step, and put your final answer within \boxed{}."
  • When evaluating model performance, it is recommended to conduct multiple tests and average the results.


  • Output:

    Output Type(s): Text
    Output Format: String
    Output Parameters: 1D (One Dimensional): Sequences


    Software Integration:

    Supported Runtime Engine(s):
    * TensorRT-LLM


    Supported Hardware Microarchitecture Compatibility:
    * NVIDIA Blackwell


    Preferred Operating System(s):
    * Linux


    Model Version(s):

    The model is quantized with nvidia-modelopt v0.33.0**


    Training Dataset:

    ** Data Collection Method by dataset: Hybrid: Human, Automated
    ** Labeling Method by dataset: Hybrid: Human, Automated


    Testing Dataset:

    ** Data Collection Method by dataset: Hybrid: Human, Automated
    ** Labeling Method by dataset: Hybrid: Human, Automated


    Evaluation Dataset:

    ** Data Collection Method by dataset: Hybrid: Human, Automated
    ** Labeling Method by dataset: Hybrid: Human, Automated


    Calibration Datasets:

    * Calibration Dataset: cnn_dailymail
    ** Data collection method: Automated.
    ** Labeling method: Automated.


    Inference:

    Engine: TensorRT-LLM
    Test Hardware: B200


    Post Training Quantization

    This model was obtained by quantizing the weights and activations of DeepSeek R1-0528 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.

    Usage



    Deploy with TensorRT-LLM



    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):

    * LLM API sample usage:
    
    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-0528-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 needs to be protected for spawning processes.

    if __name__ == '__main__': main()



    Evaluation

    The accuracy benchmark results are presented in the table below:
    Precision MMLU-Pro GPQA Diamond LiveCodeBench SCICODE MATH-500 AIME 2024
    FP8 (AA Ref) 85 81 77 40 98 89
    FP4 84 80 77 44 98 88


    *Max OSL for LiveCodeBench eval can be as high as 128K.

    Model Limitations:

    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.

    Ethical Considerations



    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.

    Files & Weights

    FilenameSizeAction
    model-00001-of-000163.safetensors 3.87 GB
    model-00002-of-000163.safetensors 2.25 GB
    model-00003-of-000163.safetensors 2.25 GB
    model-00004-of-000163.safetensors 2.35 GB
    model-00005-of-000163.safetensors 2.25 GB
    model-00006-of-000163.safetensors 2.38 GB
    model-00007-of-000163.safetensors 2.26 GB
    model-00008-of-000163.safetensors 2.25 GB
    model-00009-of-000163.safetensors 2.35 GB
    model-00010-of-000163.safetensors 2.25 GB
    model-00011-of-000163.safetensors 2.25 GB
    model-00012-of-000163.safetensors 0.69 GB
    model-00013-of-000163.safetensors 2.35 GB
    model-00014-of-000163.safetensors 2.25 GB
    model-00015-of-000163.safetensors 2.35 GB
    model-00016-of-000163.safetensors 2.25 GB
    model-00017-of-000163.safetensors 2.25 GB
    model-00018-of-000163.safetensors 2.35 GB
    model-00019-of-000163.safetensors 2.25 GB
    model-00020-of-000163.safetensors 2.25 GB
    model-00021-of-000163.safetensors 2.35 GB
    model-00022-of-000163.safetensors 2.25 GB
    model-00023-of-000163.safetensors 2.35 GB
    model-00024-of-000163.safetensors 2.25 GB
    model-00025-of-000163.safetensors 2.25 GB
    model-00026-of-000163.safetensors 2.35 GB
    model-00027-of-000163.safetensors 2.25 GB
    model-00028-of-000163.safetensors 2.25 GB
    model-00029-of-000163.safetensors 2.35 GB
    model-00030-of-000163.safetensors 2.25 GB
    model-00031-of-000163.safetensors 2.35 GB
    model-00032-of-000163.safetensors 2.25 GB
    model-00033-of-000163.safetensors 2.25 GB
    model-00034-of-000163.safetensors 0.92 GB
    model-00035-of-000163.safetensors 2.35 GB
    model-00036-of-000163.safetensors 2.25 GB
    model-00037-of-000163.safetensors 2.35 GB
    model-00038-of-000163.safetensors 2.25 GB
    model-00039-of-000163.safetensors 2.25 GB
    model-00040-of-000163.safetensors 2.35 GB
    model-00041-of-000163.safetensors 2.25 GB
    model-00042-of-000163.safetensors 2.25 GB
    model-00043-of-000163.safetensors 2.35 GB
    model-00044-of-000163.safetensors 2.25 GB
    model-00045-of-000163.safetensors 2.35 GB
    model-00046-of-000163.safetensors 2.25 GB
    model-00047-of-000163.safetensors 2.25 GB
    model-00048-of-000163.safetensors 2.35 GB
    model-00049-of-000163.safetensors 2.25 GB
    model-00050-of-000163.safetensors 2.25 GB
    model-00051-of-000163.safetensors 2.35 GB
    model-00052-of-000163.safetensors 2.25 GB
    model-00053-of-000163.safetensors 2.35 GB
    model-00054-of-000163.safetensors 2.25 GB
    model-00055-of-000163.safetensors 2.25 GB
    model-00056-of-000163.safetensors 0.92 GB
    model-00057-of-000163.safetensors 2.35 GB
    model-00058-of-000163.safetensors 2.25 GB
    model-00059-of-000163.safetensors 2.35 GB
    model-00060-of-000163.safetensors 2.25 GB
    model-00061-of-000163.safetensors 2.25 GB
    model-00062-of-000163.safetensors 2.35 GB
    model-00063-of-000163.safetensors 2.25 GB
    model-00064-of-000163.safetensors 2.25 GB
    model-00065-of-000163.safetensors 2.35 GB
    model-00066-of-000163.safetensors 2.25 GB
    model-00067-of-000163.safetensors 2.35 GB
    model-00068-of-000163.safetensors 2.25 GB
    model-00069-of-000163.safetensors 2.25 GB
    model-00070-of-000163.safetensors 2.35 GB
    model-00071-of-000163.safetensors 2.25 GB
    model-00072-of-000163.safetensors 2.25 GB
    model-00073-of-000163.safetensors 2.35 GB
    model-00074-of-000163.safetensors 2.25 GB
    model-00075-of-000163.safetensors 2.35 GB
    model-00076-of-000163.safetensors 2.25 GB
    model-00077-of-000163.safetensors 2.25 GB
    model-00078-of-000163.safetensors 0.92 GB
    model-00079-of-000163.safetensors 2.35 GB
    model-00080-of-000163.safetensors 2.25 GB
    model-00081-of-000163.safetensors 2.35 GB
    model-00082-of-000163.safetensors 2.25 GB
    model-00083-of-000163.safetensors 2.25 GB
    model-00084-of-000163.safetensors 2.35 GB
    model-00085-of-000163.safetensors 2.25 GB
    model-00086-of-000163.safetensors 2.25 GB
    model-00087-of-000163.safetensors 2.35 GB
    model-00088-of-000163.safetensors 2.25 GB
    model-00089-of-000163.safetensors 2.35 GB
    model-00090-of-000163.safetensors 2.25 GB
    model-00091-of-000163.safetensors 2.25 GB
    model-00092-of-000163.safetensors 2.35 GB
    model-00093-of-000163.safetensors 2.25 GB
    model-00094-of-000163.safetensors 2.25 GB
    model-00095-of-000163.safetensors 2.35 GB
    model-00096-of-000163.safetensors 2.25 GB
    model-00097-of-000163.safetensors 2.35 GB
    model-00098-of-000163.safetensors 2.25 GB
    model-00099-of-000163.safetensors 2.25 GB
    model-00100-of-000163.safetensors 0.92 GB
    model-00101-of-000163.safetensors 2.35 GB
    model-00102-of-000163.safetensors 2.25 GB
    model-00103-of-000163.safetensors 2.35 GB
    model-00104-of-000163.safetensors 2.25 GB
    model-00105-of-000163.safetensors 2.25 GB
    model-00106-of-000163.safetensors 2.35 GB
    model-00107-of-000163.safetensors 2.25 GB
    model-00108-of-000163.safetensors 2.25 GB
    model-00109-of-000163.safetensors 2.35 GB
    model-00110-of-000163.safetensors 2.25 GB
    model-00111-of-000163.safetensors 2.35 GB
    model-00112-of-000163.safetensors 2.25 GB
    model-00113-of-000163.safetensors 2.25 GB
    model-00114-of-000163.safetensors 2.35 GB
    model-00115-of-000163.safetensors 2.25 GB
    model-00116-of-000163.safetensors 2.25 GB
    model-00117-of-000163.safetensors 2.35 GB
    model-00118-of-000163.safetensors 2.25 GB
    model-00119-of-000163.safetensors 2.35 GB
    model-00120-of-000163.safetensors 2.25 GB
    model-00121-of-000163.safetensors 2.25 GB
    model-00122-of-000163.safetensors 0.92 GB
    model-00123-of-000163.safetensors 2.35 GB
    model-00124-of-000163.safetensors 2.25 GB
    model-00125-of-000163.safetensors 2.35 GB
    model-00126-of-000163.safetensors 2.25 GB
    model-00127-of-000163.safetensors 2.25 GB
    model-00128-of-000163.safetensors 2.35 GB
    model-00129-of-000163.safetensors 2.25 GB
    model-00130-of-000163.safetensors 2.25 GB
    model-00131-of-000163.safetensors 2.35 GB
    model-00132-of-000163.safetensors 2.25 GB
    model-00133-of-000163.safetensors 2.35 GB
    model-00134-of-000163.safetensors 2.25 GB
    model-00135-of-000163.safetensors 2.25 GB
    model-00136-of-000163.safetensors 2.35 GB
    model-00137-of-000163.safetensors 2.25 GB
    model-00138-of-000163.safetensors 2.25 GB
    model-00139-of-000163.safetensors 2.35 GB
    model-00140-of-000163.safetensors 2.25 GB
    model-00141-of-000163.safetensors 1.65 GB
    model-00142-of-000163.safetensors 2.35 GB
    model-00143-of-000163.safetensors 2.25 GB
    model-00144-of-000163.safetensors 2.35 GB
    model-00145-of-000163.safetensors 2.25 GB
    model-00146-of-000163.safetensors 2.25 GB
    model-00147-of-000163.safetensors 2.35 GB
    model-00148-of-000163.safetensors 2.25 GB
    model-00149-of-000163.safetensors 2.25 GB
    model-00150-of-000163.safetensors 2.35 GB
    model-00151-of-000163.safetensors 2.25 GB
    model-00152-of-000163.safetensors 2.35 GB
    model-00153-of-000163.safetensors 2.25 GB
    model-00154-of-000163.safetensors 2.25 GB
    model-00155-of-000163.safetensors 2.35 GB
    model-00156-of-000163.safetensors 2.25 GB
    model-00157-of-000163.safetensors 2.25 GB
    model-00158-of-000163.safetensors 2.35 GB
    model-00159-of-000163.safetensors 2.25 GB
    model-00160-of-000163.safetensors 3.81 GB
    model-00161-of-000163.safetensors 8.01 GB
    model-00162-of-000163.safetensors 8.01 GB
    model-00163-of-000163.safetensors 8.62 GB