Views
No views yet

| Model | Description | Source Model | Link |
|---|---|---|---|
| 🤖 DMax-16B | Highly parallel general-purpose dLLM. | LLaDA-2.0-mini | HF |
| 🤖 DMax-Math-16B | Highly parallel dLLM for math and reasoning. | LLaDA-2.0-mini | HF |
| 🤖 DMax-Coder-16B | Highly parallel dLLM for code generation. | LLaDA-2.0-mini | HF |
| Dataset | Description | Link |
|---|---|---|
| 📊 DMax-Math-Training-Data | math trajectories generated by LLaDA-2.0-mini | HF |
| 📊 DMax-Code-Training-Data | code trajectories generated by LLaDA-2.0-mini | HF |
1import torch
2from transformers import AutoModelForCausalLM
3from transformers import AutoTokenizer
4
5model = AutoModelForCausalLM.from_pretrained(
6 "Zigeng/DMax-Coder-16B", trust_remote_code=True, device_map="cuda:0"
7)
8model = model.to(torch.bfloat16)
9model.eval()
10tokenizer = AutoTokenizer.from_pretrained("Zigeng/DMax-Coder-16B", trust_remote_code=True)
11
12prompt = "Write a python function to find the first repeated character in a given string." + "\n\nPlease enclose your code within delimiters as follows:\n```python\n# YOUR CODE HERE\n```\n\n"
13
14input_ids = tokenizer.apply_chat_template(
15 [{"role": "user", "content": prompt}],
16 add_generation_prompt=True,
17 tokenize=True,
18 return_tensors="pt",
19)
20
21nfe, generated_tokens = model.generate_spd(
22 inputs=input_ids,
23 gen_length=2048,
24 block_length=32,
25 threshold=0.65,
26)
27
28generated_answer = tokenizer.decode(
29 generated_tokens[0],
30 skip_special_tokens=True,
31)
32
33print(generated_answer)
34print("nfe:",nfe,"token length",len(generated_tokens[0]))1@article{chen2026dmax,
2 title={DMax: Aggressive Parallel Decoding for dLLMs},
3 author={Chen, Zigeng and Fang, Gongfan and Ma, Xinyin and Yu, Ruonan and Wang, Xinchao},
4 journal={arXiv preprint arXiv:2604.08302},
5 year={2026}
6}