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 1 |
+
---
|
| 2 |
+
base_model: unsloth/Devstral-Small-2507-unsloth-bnb-4bit
|
| 3 |
+
library_name: peft
|
| 4 |
+
model_name: devstral-v3-dapo
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:unsloth/Devstral-Small-2507-unsloth-bnb-4bit
|
| 7 |
+
- grpo
|
| 8 |
+
- lora
|
| 9 |
+
- transformers
|
| 10 |
+
- trl
|
| 11 |
+
- unsloth
|
| 12 |
+
licence: license
|
| 13 |
+
pipeline_tag: text-generation
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# Model Card for devstral-v3-dapo
|
| 17 |
+
|
| 18 |
+
This model is a fine-tuned version of [unsloth/Devstral-Small-2507-unsloth-bnb-4bit](https://huggingface.co/unsloth/Devstral-Small-2507-unsloth-bnb-4bit).
|
| 19 |
+
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 20 |
+
|
| 21 |
+
## Quick start
|
| 22 |
+
|
| 23 |
+
```python
|
| 24 |
+
from transformers import pipeline
|
| 25 |
+
|
| 26 |
+
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
|
| 27 |
+
generator = pipeline("text-generation", model="None", device="cuda")
|
| 28 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
| 29 |
+
print(output["generated_text"])
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
## Training procedure
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
This model was trained with GRPO, a method introduced in [DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models](https://huggingface.co/papers/2402.03300).
|
| 38 |
+
|
| 39 |
+
### Framework versions
|
| 40 |
+
|
| 41 |
+
- PEFT 0.18.1
|
| 42 |
+
- TRL: 0.24.0
|
| 43 |
+
- Transformers: 5.5.0
|
| 44 |
+
- Pytorch: 2.10.0
|
| 45 |
+
- Datasets: 4.3.0
|
| 46 |
+
- Tokenizers: 0.22.2
|
| 47 |
+
|
| 48 |
+
## Citations
|
| 49 |
+
|
| 50 |
+
Cite GRPO as:
|
| 51 |
+
|
| 52 |
+
```bibtex
|
| 53 |
+
@article{shao2024deepseekmath,
|
| 54 |
+
title = {{DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models}},
|
| 55 |
+
author = {Zhihong Shao and Peiyi Wang and Qihao Zhu and Runxin Xu and Junxiao Song and Mingchuan Zhang and Y. K. Li and Y. Wu and Daya Guo},
|
| 56 |
+
year = 2024,
|
| 57 |
+
eprint = {arXiv:2402.03300},
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
Cite TRL as:
|
| 63 |
+
|
| 64 |
+
```bibtex
|
| 65 |
+
@misc{vonwerra2022trl,
|
| 66 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
| 67 |
+
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
|
| 68 |
+
year = 2020,
|
| 69 |
+
journal = {GitHub repository},
|
| 70 |
+
publisher = {GitHub},
|
| 71 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
| 72 |
+
}
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
# devstral-v3-dapo
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
## 🇪🇺 EU AI Act transparency
|
| 79 |
+
|
| 80 |
+
This model is published under the AI Act framework (Regulation EU 2024/1689).
|
| 81 |
+
|
| 82 |
+
| Field | Value |
|
| 83 |
+
|---|---|
|
| 84 |
+
| Provider | L'Électron Rare (clemsail) |
|
| 85 |
+
| Role under AI Act | GPAI provider |
|
| 86 |
+
| Adapter type | LoRA / PEFT — DAPO RL fine-tune adapter (on top of -sft) |
|
| 87 |
+
| Base model | `mistralai/Devstral-Small-2-24B-Instruct-2512` |
|
| 88 |
+
| License | Apache-2.0 (this artefact); upstream Mistral licence applies separately |
|
| 89 |
+
| Intended use | Code generation across Python / Rust / TypeScript / C++ / SQL / shell, with stronger reasoning on engineering questions |
|
| 90 |
+
| Out of scope | Healthcare diagnosis, legal advice, autonomous safety-critical decisions, generation of malicious code or exploits |
|
| 91 |
+
| Risk classification | Limited risk — Article 50 transparency obligations apply |
|
| 92 |
+
| Copyright respect | Training data does not include scraped copyrighted material. Public engineering documentation under permissive licences plus internal synthetic distillation. |
|
| 93 |
+
| Full provenance | https://github.com/L-electron-Rare/eu-kiki/tree/main/docs/provenance |
|
| 94 |
+
| Contact | postmaster@saillant.cc |
|
| 95 |
+
|
| 96 |
+
⚠️ **You are using an AI model.** Outputs may be inaccurate, biased or
|
| 97 |
+
fabricated. Do not act on them without independent verification, especially
|
| 98 |
+
in regulated domains.
|
| 99 |
+
|
| 100 |
+
## Benchmarks
|
| 101 |
+
|
| 102 |
+
Run via `lm-eval-harness` v0.4.x against the FUSED checkpoint (base + this
|
| 103 |
+
adapter merged for inference). Strict-match where applicable.
|
| 104 |
+
|
| 105 |
+
| Task | Metric | Score |
|
| 106 |
+
|---|---|---|
|
| 107 |
+
| gsm8k | `exact_match,strict-match` | **0.844** |
|
| 108 |
+
| ifeval | `prompt_level_strict_acc,none` | **0.691** |
|
| 109 |
+
| bbh_cot_fewshot | `exact_match,get-answer` | **0.795** |
|
| 110 |
+
| bbh_cot_fewshot_boolean_expressions | `exact_match,get-answer` | **0.900** |
|
| 111 |
+
| bbh_cot_fewshot_causal_judgement | `exact_match,get-answer` | **0.600** |
|
| 112 |
+
| bbh_cot_fewshot_date_understanding | `exact_match,get-answer` | **0.933** |
|
| 113 |
+
| bbh_cot_fewshot_disambiguation_qa | `exact_match,get-answer` | **0.767** |
|
| 114 |
+
| bbh_cot_fewshot_dyck_languages | `exact_match,get-answer` | **0.100** |
|
| 115 |
+
| bbh_cot_fewshot_formal_fallacies | `exact_match,get-answer` | **0.600** |
|
| 116 |
+
| bbh_cot_fewshot_geometric_shapes | `exact_match,get-answer` | **0.367** |
|
| 117 |
+
| bbh_cot_fewshot_hyperbaton | `exact_match,get-answer` | **1.000** |
|
| 118 |
+
| bbh_cot_fewshot_logical_deduction_five_objects | `exact_match,get-answer` | **0.767** |
|
| 119 |
+
| bbh_cot_fewshot_logical_deduction_seven_objects | `exact_match,get-answer` | **0.533** |
|
| 120 |
+
| bbh_cot_fewshot_logical_deduction_three_objects | `exact_match,get-answer` | **0.900** |
|
| 121 |
+
| bbh_cot_fewshot_movie_recommendation | `exact_match,get-answer` | **0.833** |
|
| 122 |
+
| bbh_cot_fewshot_multistep_arithmetic_two | `exact_match,get-answer` | **0.867** |
|
| 123 |
+
| bbh_cot_fewshot_navigate | `exact_match,get-answer` | **0.967** |
|
| 124 |
+
| bbh_cot_fewshot_object_counting | `exact_match,get-answer` | **0.967** |
|
| 125 |
+
| bbh_cot_fewshot_penguins_in_a_table | `exact_match,get-answer` | **0.933** |
|
| 126 |
+
| bbh_cot_fewshot_reasoning_about_colored_objects | `exact_match,get-answer` | **0.967** |
|
| 127 |
+
| bbh_cot_fewshot_ruin_names | `exact_match,get-answer` | **0.667** |
|
| 128 |
+
| bbh_cot_fewshot_salient_translation_error_detection | `exact_match,get-answer` | **0.700** |
|
| 129 |
+
| bbh_cot_fewshot_snarks | `exact_match,get-answer` | **0.700** |
|
| 130 |
+
| bbh_cot_fewshot_sports_understanding | `exact_match,get-answer` | **0.900** |
|
| 131 |
+
| bbh_cot_fewshot_temporal_sequences | `exact_match,get-answer` | **0.967** |
|
| 132 |
+
| bbh_cot_fewshot_tracking_shuffled_objects_five_objects | `exact_match,get-answer` | **0.967** |
|
| 133 |
+
| bbh_cot_fewshot_tracking_shuffled_objects_seven_objects | `exact_match,get-answer` | **0.933** |
|
| 134 |
+
| bbh_cot_fewshot_tracking_shuffled_objects_three_objects | `exact_match,get-answer` | **0.967** |
|
| 135 |
+
| bbh_cot_fewshot_web_of_lies | `exact_match,get-answer` | **1.000** |
|
| 136 |
+
| bbh_cot_fewshot_word_sorting | `exact_match,get-answer` | **0.667** |
|
| 137 |
+
| mmlu_pro | `exact_match,custom-extract` | **0.619** |
|
| 138 |
+
| mmlu_pro_biology | `exact_match,custom-extract` | **0.768** |
|
| 139 |
+
| mmlu_pro_business | `exact_match,custom-extract` | **0.660** |
|
| 140 |
+
| mmlu_pro_chemistry | `exact_match,custom-extract` | **0.580** |
|
| 141 |
+
| mmlu_pro_computer_science | `exact_match,custom-extract` | **0.676** |
|
| 142 |
+
| mmlu_pro_economics | `exact_match,custom-extract` | **0.678** |
|
| 143 |
+
| mmlu_pro_engineering | `exact_match,custom-extract` | **0.448** |
|
| 144 |
+
| mmlu_pro_health | `exact_match,custom-extract` | **0.678** |
|
| 145 |
+
| mmlu_pro_history | `exact_match,custom-extract` | **0.575** |
|
| 146 |
+
| mmlu_pro_law | `exact_match,custom-extract` | **0.432** |
|
| 147 |
+
| mmlu_pro_math | `exact_match,custom-extract` | **0.678** |
|
| 148 |
+
| mmlu_pro_other | `exact_match,custom-extract` | **0.612** |
|
| 149 |
+
| mmlu_pro_philosophy | `exact_match,custom-extract` | **0.549** |
|
| 150 |
+
| mmlu_pro_physics | `exact_match,custom-extract` | **0.630** |
|
| 151 |
+
| mmlu_pro_psychology | `exact_match,custom-extract` | **0.704** |
|
| 152 |
+
| leaderboard_math_hard | `exact_match,none` | **0.341** |
|
| 153 |
+
| leaderboard_math_algebra_hard | `exact_match,none` | **0.570** |
|
| 154 |
+
| leaderboard_math_counting_and_prob_hard | `exact_match,none` | **0.252** |
|
| 155 |
+
| leaderboard_math_geometry_hard | `exact_match,none` | **0.182** |
|
| 156 |
+
| leaderboard_math_intermediate_algebra_hard | `exact_match,none` | **0.139** |
|
| 157 |
+
| leaderboard_math_num_theory_hard | `exact_match,none` | **0.416** |
|
| 158 |
+
| leaderboard_math_prealgebra_hard | `exact_match,none` | **0.523** |
|
| 159 |
+
| leaderboard_math_precalculus_hard | `exact_match,none` | **0.126** |
|
| 160 |
+
|
| 161 |
+
Raw `results_*.json` files are committed under `evals/`.
|