ARIA is a fine-tuned version of
DeepSeek-R1-Distill-Qwen-7B trained to produce concise reasoning traces while maintaining mathematical accuracy. The model learns to allocate thinking tokens proportional to problem difficulty rather than generating uniformly verbose traces.
This is the fully merged model (no adapter dependency required).
The model compresses aggressively on easy problems and scales thinking naturally for harder ones. This adaptive behavior is emergent -- it was not explicitly trained.
RES Score = (accuracy / mean_think_tokens) * 1000. Higher is better.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model = AutoModelForCausalLM.from_pretrained(
5 "Eunice-Labs/aria-7b-merged",
6 torch_dtype=torch.bfloat16,
7 device_map="auto"
8)
9tokenizer = AutoTokenizer.from_pretrained("Eunice-Labs/aria-7b-merged")
10
11SYSTEM_PROMPT = (
12 "You are a math reasoning assistant. "
13 "Think through problems carefully inside <think> tags, "
14 "then provide a clean final answer."
15)
16
17problem = "What is the sum of the first 100 positive integers?"
18prompt = f"{SYSTEM_PROMPT}<|User|>{problem}<|Assistant|>"
19
20inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
21output = model.generate(
22 **inputs,
23 max_new_tokens=4096,
24 do_sample=False,
25 repetition_penalty=1.1
26)
27print(tokenizer.decode(output[0], skip_special_tokens=True))
ARIA is trained via supervised fine-tuning (SFT) on compressed reasoning traces from the
OpenThoughts-114k-math dataset. Easy and medium difficulty traces were compressed ~6x using Gemini 2.0 Flash. Hard problems were left uncompressed.
Full per-sample eval results are available at
Eunice-Labs/aria-eval-results.
Accuracy is measured using
math-verify for LaTeX equivalence with normalized string match as fallback. Think tokens are counted from the first
<think> tag (or start of generation) to the last
</think> tag.