Views
No views yet
| Model | MATH | Length | AIME | Length | AMC | Length | Minerva | Length | Olympiad | Length | Total Avg Length |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Deepseek-R1-7B | 93.60 | 3999 | 55.40 | 13241 | 82.90 | 7461 | 49.79 | 5199 | 58.21 | 8837 | 7747 |
| DLER-R1-7B | 94.21 (+0.61%) | 1634 (-60%) | 55.62 (+0.22%) | 3230 (-76%) | 84.41 (+1.51%) | 2512 (-0.67%) | 53.88 (+4.09%) | 2058 (-61%) | 60.48 (+2.27%) | 2592 (-71%) | 2405 (-69%) |
pip install transformers==4.51.31from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
3
4device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
5
6model = AutoModelForCausalLM.from_pretrained('nvidia/DLER-R1-7B-Research').to(device)
7tokenizer = AutoTokenizer.from_pretrained('nvidia/DLER-R1-7B-Research')
8
9messages = [
10 {"role": "user", "content": "Convert the point $(0,3)$ in rectangular coordinates to polar coordinates. Enter your answer in the form $(r,\\theta),$ where $r > 0$ and $0 \\le \\theta < 2 \\pi.$"+" Let's think step by step and output the final answer within \\boxed{}."},
11]
12
13
14tokenized_chat = tokenizer.apply_chat_template(
15 messages,
16 tokenize=True,
17 add_generation_prompt=True,
18 return_tensors="pt"
19).to(model.device)
20
21outputs = model.generate(
22 tokenized_chat,
23 max_new_tokens=10000,
24 eos_token_id=tokenizer.eos_token_id
25)
26
27print(tokenizer.decode(outputs[0], skip_special_tokens=True))@article{liu2025dler,
title={DLER: Doing Length pEnalty Right-Incentivizing More Intelligence per Token via Reinforcement Learning},
author={Liu, Shih-Yang and Dong, Xin and Lu, Ximing and Diao, Shizhe and Liu, Mingjie and Chen, Min-Hung and Yin, Hongxu and Wang, Yu-Chiang Frank and Cheng, Kwang-Ting and Choi, Yejin and others},
journal={arXiv preprint arXiv:2510.15110},
year={2025}
}