Downloads · 30 days
680
1% of all-time downloads
RedHatAI/Devstral-Small-2507-FP8-Dynamic
Devstral-Small-2507-FP8-Dynamic is a text generation model from RedHatAI. Use it when you need the model to write or continue text. The card lists the license as mit.
- Model Architecture: MistralForCausalLM - Input: Text - Output: Text - Model Optimizations: - Activation quantization: FP8 - Weight quantization: FP8 - Release Date: 08/28/2025 - Version: 1.0 - Model Developers: Red…
Downloads · 30 days
680
1% of all-time downloads
All-time downloads
111K
Public
Parameters
23.6B
24.9 GB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors24.9 GB · 100%
How the weights are stored.
F8_E4M322.2B · 94%
From the Hugging Face model README
This model was obtained by quantizing weights and activations of Devstral-Small-2507 to FP8 data type. This optimization reduces the number of bits used to represent weights and activations from 16 to 8, reducing GPU memory requirements (by approximately 50%). Weight quantization also reduces disk size requirements by approximately 50%.
from transformers import AutoModelForCausalLM
from llmcompressor import oneshot
from llmcompressor.modifiers.quantization import QuantizationModifier
MODEL_ID = "mistralai/Devstral-Small-2507"
model = AutoModelForCausalLM.from_pretrained(MODEL_ID, torch_dtype="auto")
recipe = QuantizationModifier(
targets="Linear", scheme="FP8_DYNAMIC", ignore=["lm_head"]
)
oneshot(model=model, recipe=recipe)
SAVE_DIR = MODEL_ID.rstrip("/").split("/")[-1] + "-FP8-Dynamic"
model.save_pretrained(SAVE_DIR)
</details>
This model can be deployed efficiently using the vLLM backend, as shown in the example below.
vllm serve RedHatAI/Devstral-Small-2507-FP8-Dynamic --tensor-parallel-size 1 --tokenizer_mode mistral
The model was evaluated on popular coding tasks (HumanEval, HumanEval+, MBPP, MBPP+) via EvalPlus and vllm backend (v0.10.1.1). For evaluations, we run greedy sampling and report pass@1. The command to reproduce evals:
evalplus.evaluate --model "RedHatAI/Devstral-Small-2507-FP8-Dynamic" \
--dataset [humaneval|mbpp] \
--base-url http://localhost:8000/v1 \
--backend openai --greedy
| Recovery (%) | mistralai/Devstral-Small-2507 | RedHatAI/Devstral-Small-2507-FP8-Dynamic<br>(this model) | |
|---|---|---|---|
| HumanEval | 100.67 | 89.0 | 89.6 |
| HumanEval+ | 102.22 | 81.1 | 82.9 |
| MBPP | 97.29 | 77.5 | 75.4 |
| MBPP+ | 98.03 | 66.1 | 64.8 |
| Average Score | 99.68 | 78.43 | 78.18 |