free001style commited on
Commit
cecfa00
·
1 Parent(s): 0b46285

Preview model card for DMax-Math-MMD (#1)

Browse files

- Preview model card for DMax-Math-MMD (5f840e63abfc0106823d8744eae445942fb7245b)
- Add license, paper and code badges to model card (9400644c27d03887f8945da9c56219aeb746ed64)
- Change code badge label to GitHub | Code (ccf2fbb9f05fccbdc5321219ccfbe903c5d6fc7e)

Files changed (1) hide show
  1. README.md +93 -0
README.md ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: transformers
4
+ base_model: Zigeng/DMax-Math-16B
5
+ base_model_relation: finetune
6
+ datasets:
7
+ - Zigeng/DMax-LLaDA-2.0-Mini-Math-Trajectories
8
+ tags:
9
+ - diffusion
10
+ - dllm
11
+ - mmd
12
+ - math
13
+ - custom_code
14
+ ---
15
+
16
+ # DMax-Math-MMD
17
+
18
+ [![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) ![Paper: coming soon](https://img.shields.io/badge/Paper-coming%20soon-b31b1b.svg) [![GitHub: Code](https://img.shields.io/badge/GitHub-Code-181717.svg?logo=github)](https://github.com/yandex-research/dlm-mmd)
19
+
20
+ **Representation-Space MMD for Diffusion Language Models**
21
+
22
+ DMax-Math-MMD is a 16B diffusion language model for mathematical reasoning,
23
+ obtained by MMD post-training of
24
+ [DMax-Math-16B](https://huggingface.co/Zigeng/DMax-Math-16B).
25
+ It builds on LLaDA2.0-mini and uses DMax's hybrid masked–uniform block diffusion.
26
+
27
+ The post-training objective minimizes Maximum Mean Discrepancy (MMD) between
28
+ model samples and reference responses, measured in the representation space of
29
+ a frozen diffusion language model. The project reports increased tokens per
30
+ forward pass while maintaining or improving accuracy on the benchmarks below.
31
+
32
+ ## Reference results
33
+
34
+ Results reported in the project README, with decoding threshold **0.85**.
35
+ Each entry is **accuracy (%) / tokens per forward pass (TPF)**.
36
+ Baseline results are attributed to the original DMax paper in the project README.
37
+
38
+ | Method | GSM8K | MATH500 | Minerva-Algebra | ASDIV |
39
+ | --- | :---: | :---: | :---: | :---: |
40
+ | DMax-Math | 92.1 / 5.48 | 75.4 / 5.94 | 91.5 / 7.03 | 92.5 / 5.62 |
41
+ | **DMax-Math-MMD** | 92.1 / **6.15** | **76.0** / **6.84** | **92.1** / **8.19** | **92.9** / **6.20** |
42
+
43
+ Results can vary with hardware, tensor parallelism, and library versions.
44
+ TPF measures decoding parallelism; wall-clock speed also depends on the runtime.
45
+
46
+ ## Evaluation and inference
47
+
48
+ Use DMax's dInfer evaluation pipeline. After following the evaluation environment
49
+ setup in the [project README](https://github.com/yandex-research/dlm-mmd#installation),
50
+ run from the project repository root:
51
+
52
+ ```bash
53
+ conda activate dinfer
54
+ DOMAIN=math MODEL_PATH=yresearch/DMax-Math-MMD bash scripts/eval.sh
55
+ ```
56
+
57
+ The project's math evaluation uses threshold **0.85** and evaluates GSM8K,
58
+ MATH500, Minerva-Algebra, and ASDIV.
59
+
60
+ The checkpoint includes nine Safetensors shards with BF16 parameters and FP32
61
+ router bias buffers, plus its tokenizer, chat template, and custom model code.
62
+ Direct Transformers loading requires `trust_remote_code=True`. Pass
63
+ `dtype=torch.bfloat16` for BF16 loading; the current configuration declares FP32.
64
+
65
+ Generation requires the DMax/dInfer diffusion decoder. The included custom
66
+ backbone does not implement the standard Transformers `.generate()` interface.
67
+
68
+ ## License and acknowledgements
69
+
70
+ The model follows the **Apache-2.0** license of the
71
+ [DMax-Math base checkpoint](https://huggingface.co/Zigeng/DMax-Math-16B)
72
+ and [LLaDA2.0-mini](https://huggingface.co/inclusionAI/LLaDA2.0-mini).
73
+ The included model implementation retains its Apache-2.0 notices.
74
+ The separate MMD training repository is MIT-licensed, with Apache-2.0 third-party components.
75
+
76
+ We thank the authors of [DMax](https://github.com/czg1225/DMax),
77
+ [LLaDA2.0-mini](https://huggingface.co/inclusionAI/LLaDA2.0-mini), and
78
+ [dInfer](https://github.com/inclusionAI/dInfer) for releasing their models, data, and code.
79
+
80
+ ## Citation
81
+
82
+ If you find this work useful in your research, please consider citing:
83
+
84
+ ```bibtex
85
+ @article{drobyshevskiy2026mmd,
86
+ title = {Representation-Space MMD for Diffusion Language Models},
87
+ author = {Drobyshevskiy, Ilya and Sudakov, Ilia and Semenov, Maksim and Kuznedelev, Denis and
88
+ Ignatov, Maksim and Temirchev, Pavel and Balagansky, Nikita and
89
+ Meshchaninov, Viacheslav and Gushchin, Nikita and Baranchuk, Dmitry},
90
+ journal = {arXiv preprint TODO},
91
+ year = {2026}
92
+ }
93
+ ```