Downloads · 30 days
265
2% of all-time downloads
nm-testing/DeepSeek-R1-Distill-Qwen-32B-NVFP4
DeepSeek-R1-Distill-Qwen-32B-NVFP4 is a text generation model from nm-testing. Use it when you need the model to write or continue text. The card lists the license as mit.
- Model Architecture: DeepSeek-R1-Distill-Qwen-32B - Input: Text / Image - Output: Text - Model Optimizations: - Weight quantization: FP4 - Activation quantization: FP4 - Release Date: 7/30/25 - Version: 1.0 - Model D…
Downloads · 30 days
265
2% of all-time downloads
All-time downloads
11.5K
Public
Parameters
19.1B
20.7 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors20.7 GB · 100%
How the weights are stored.
U815.6B · 82%
From the Hugging Face model README
This model is a quantized version of DeepSeek-R1-Distill-Qwen-32B. It was evaluated on a several tasks to assess the its quality in comparison to the unquatized model.
This model was obtained by quantizing the weights and activations of DeepSeek-R1-Distill-Qwen-32B to FP4 data type, ready for inference with vLLM>=0.9.1 This optimization reduces the number of bits per parameter from 16 to 4, reducing the disk size and GPU memory requirements by approximately 75%.
Only the weights of the linear operators within transformers blocks are quantized using LLM Compressor.
This model can be deployed efficiently using the vLLM backend, as shown in the example below.
<details> <summary>Model Usage Code</summary>from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
model_id = "RedHatAI/DeepSeek-R1-Distill-Qwen-32B-NVFP4"
number_gpus = 2
sampling_params = SamplingParams(temperature=0.6, top_p=0.9, max_tokens=256)
tokenizer = AutoTokenizer.from_pretrained(model_id)
messages = [
{"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
{"role": "user", "content": "Who are you?"},
]
prompts = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
llm = LLM(model=model_id, tensor_parallel_size=number_gpus)
outputs = llm.generate(prompts, sampling_params)
generated_text = outputs[0].outputs[0].text
print(generated_text)
</details>
vLLM aslo supports OpenAI-compatible serving. See the documentation for more details.
This model was created by applying LLM Compressor with calibration samples from neuralmagic/calibration dataset, as presented in the code snipet below.
<details> <summary>Model Creation Code</summary>
</details>
This model was evaluated on the well-known OpenLLM v1 and HumanEval_64 benchmarks using lm-evaluation-harness. The Reasoning evals were done using ligheval.
The results were obtained using the following commands:
<details> <summary>Model Evaluation Commands</summary>lm_eval \
--model vllm \
--model_args pretrained="RedHatAI/DeepSeek-R1-Distill-Qwen-32B-NVFP4",dtype=auto,max_model_len=4096,tensor_parallel_size=2,enable_chunked_prefill=True,enforce_eager=True\
--apply_chat_template \
--fewshot_as_multiturn \
--tasks openllm \
--batch_size auto
lm_eval \
--model vllm \
--model_args pretrained="RedHatAI/DeepSeek-R1-Distill-Qwen-32B-NVFP4",dtype=auto,max_model_len=4096,tensor_parallel_size=2,enable_chunked_prefill=True,enforce_eager=True\
--apply_chat_template \
--fewshot_as_multiturn \
--tasks humaneval_64_instruct \
--batch_size auto
# --- model_args.yaml ---
cat > model_args.yaml <<'YAML'
model_parameters:
model_name: "RedHatAI/DeepSeek-R1-Distill-Qwen-32B-NVFP4"
dtype: auto
gpu_memory_utilization: 0.9
tensor_parallel_size: 2
max_model_length: 40960
generation_parameters:
seed: 42
temperature: 0.6
top_k: 50
top_p: 0.95
min_p: 0.0
max_new_tokens: 32768
YAML
lighteval vllm model_args.yaml \
"lighteval|aime24|0,lighteval|aime25|0,lighteval|gpqa:diamond|0" \
--max-samples -1 \
--output-dir out_dir
</details>