CoolFace
Modelpublic

ssurface/cot-dialect-olmo3-7b-think-grpo-l4

sourceHugging Faceapache-2.0updated 1mo agoView on Hugging Face
0likes10downloads
Model Card

Olmo-3-7B-Think — L4 dialect (Ultra-compact)

A LoRA adapter that makes allenai/Olmo-3-7B-Think reason at compression level L4 — semicolon-chained assignments.

Results

Accuracy
After SFT43.8%
After GRPO (this adapter)68.0%
Difference+24.1 pp

GSM8K test (n=1317), greedy decoding, single-turn, no exemplars, no self-consistency.

Also evaluated on (out-of-domain, not the headline metric):

BenchmarknAccuracy
AIME601.7%
BBH25022.4%
SVAMP/transfer30076.3%

Training data

GSM8K train, re-expressed at level L4 by a teacher model: 6976 examples, median chain length 41 characters inside <think>.

Across the family the median chain runs from 532 characters at L1 to 16 at L5 — a 33x span. An L4 chain looks like this:

K=18*2.5;D=8*4;T=K+D->T=77

Training setup

GRPO on top of the merged level-4 SFT model.

Enginetrl.GRPOTrainer on stock transformers, attention sdpa
Rewardcorrectness, format
Loss typedapo
Generations per prompt8
Batch64 x 1 accum
Max completion256 tokens
Learning rate1e-05
KL coefficient (beta)0.0
Prompt setgsm8k_grpo_balanced_1k.json
Trained onmerged_olmo/l4
LoRAr=16, alpha=32
Hardware1x NVIDIA A100 80GB

Reward components

  • —correctness — +/- the gold solution's step count on an answer match, so harder problems are worth more
  • —format — the response must be one <think>...</think> block then #### <answer>

Engine note. Stock transformers with sdpa attention, not a fused-kernel wrapper. The fused path produced adapters whose lora_B matrices were all zero — mathematically inert despite loading without error. Every adapter in this collection was verified lora_B != 0 before publishing; 13 that failed that check were withheld.

Usage

Solve this using Level 4 (Shorthand).
Problem: {your problem}
Stacks on the SFT model, not the raw base. Trained against the merged SFT model, so loading it straight onto allenai/Olmo-3-7B-Think will not reproduce the number above.
python
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

model = AutoModelForCausalLM.from_pretrained("allenai/Olmo-3-7B-Think", torch_dtype="bfloat16", device_map="auto")
model = PeftModel.from_pretrained(model, "ssurface/cot-dialect-olmo3-7b-think-sft-l4")   # 1. SFT for this level
model = model.merge_and_unload()
model = PeftModel.from_pretrained(model, "ssurface/cot-dialect-olmo3-7b-think-grpo-l4")   # 2. this adapter
tok = AutoTokenizer.from_pretrained("allenai/Olmo-3-7B-Think")

Limitations

  • —Trained and evaluated on math word problems only.
  • —Accuracy falls with problem difficulty, fastest at the compressed levels.
  • —Single seed unless the repo name says otherwise; differences of a couple of points are within noise (95% half-width ~2.7 pp at n=1317, ~4.4 pp at n=500).

Citation

bibtex
@misc{cot-compression-dialects,
  title  = {Chain-of-Thought Compression Dialects},
  author = {Frolov, Anatolii},
  year   = {2026}
}