Run this model with HF Jobs

Run ssurface/cot-dialect-qwen3-4b-instruct-grpo-gr3chain-l3 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/ssurface/cot-dialect-qwen3-4b-instruct-grpo-gr3chain-l3. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/ssurface/cot-dialect-qwen3-4b-instruct-grpo-gr3chain-l3 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/ssurface/cot-dialect-qwen3-4b-instruct-grpo-gr3chain-l3. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/ssurface/cot-dialect-qwen3-4b-instruct-grpo-gr3chain-l3. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Qwen3-4B-Instruct β€” L3 dialect (Variable chain) Β· reward ablation gr3chain

A LoRA adapter that makes Qwen/Qwen3-4B-Instruct-2507 reason at compression level L3 β€” one named assignment per line.

This is an ablation, not one of the headline models: it is the same level trained under a different reward, published so the reward-design comparison in the paper can be rerun rather than taken on faith. For the main model at this level see ssurface/cot-dialect-qwen3-4b-instruct-grpo-l3.

Results

This adapter was not separately benchmarked. It exists as a training artefact for the ablation grid; the levels that carry reported numbers are the ones in the collection's core set.

Training data

GSM8K train, re-expressed at level L3 by a teacher model: 6970 examples, median chain length 90 characters inside <think>.

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

p = 40
w = 2 * 4 = 8
T = p * w = 40 * 8 = 320

Training setup

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

Engine trl.GRPOTrainer on stock transformers, attention sdpa
Reward correctness, format, chain, gr3
Loss type dapo
Generations per prompt 8
Batch 64 x 1 accum
Max completion 256 tokens
Learning rate 1e-05
KL coefficient (beta) 0.0
Prompt set gsm8k_grpo_balanced_1k.json
Trained on merged_new/l3
LoRA r=16, alpha=32
Hardware 1x 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>
  • chain β€” a verifier: the arithmetic written inside the chain must actually check out
  • gr3 β€” multiplicative length rescaling of the positive combined reward, floored at 0.3 -- it scales rewards that are already positive, so it cannot reorder correct above incorrect

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 3 (Symbolic).
Problem: {your problem}

Stacks on the SFT model, not the raw base. Trained against the merged SFT model, so loading it straight onto Qwen/Qwen3-4B-Instruct-2507 will not reproduce the number above.

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B-Instruct-2507", torch_dtype="bfloat16", device_map="auto")
model = PeftModel.from_pretrained(model, "ssurface/cot-dialect-qwen3-4b-instruct-sft-l3")   # 1. SFT for this level
model = model.merge_and_unload()
model = PeftModel.from_pretrained(model, "ssurface/cot-dialect-qwen3-4b-instruct-grpo-gr3chain-l3")   # 2. this adapter
tok = AutoTokenizer.from_pretrained("Qwen/Qwen3-4B-Instruct-2507")

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).
  • Ablation artefact. It was trained to answer one question about reward design and may be worse than the core model at the same level.

Citation

@misc{cot-compression-dialects,
  title  = {Chain-of-Thought Compression Dialects},
  author = {Frolov, Anatolii},
  year   = {2026}
}
Downloads last month
7
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for ssurface/cot-dialect-qwen3-4b-instruct-grpo-gr3chain-l3

Adapter
(5,920)
this model

Dataset used to train ssurface/cot-dialect-qwen3-4b-instruct-grpo-gr3chain-l3

Collection including ssurface/cot-dialect-qwen3-4b-instruct-grpo-gr3chain-l3