Accidental-60M

A student of Qwen3-0.6B with 58,233,868 stored parameters. It runs 28 transformer blocks of the Qwen3-0.6B shape, but it stores only three blocks' worth of weights and a 32,000-token vocabulary.

We did not set out to build the best model under 100M parameters. We set out to shrink Qwen3-0.6B tenfold without losing accuracy, and we failed: this model scores 40.4% on our five benchmarks, where Qwen3-0.6B scores 60.1%. Then we ran it against the public chat models under 100M parameters that we could find and run. It came first on tool calling and on the five-task score.

Read this before you use the name

  • "60M" means stored parameters. Weight sharing saves storage, not work. For each token the model multiplies 451M weights (Qwen3-0.6B: 596M), about three quarters of the work of its teacher. By default it also expands its layers in memory when it runs (about 0.9 GB in 16-bit, 1.8 GB in 32-bit).
  • "Best" is narrow. It holds for tool calling and for our five-task score, among the 13 public chat models under 100M parameters that we ran. That set came from a targeted search, not a census.
  • It is not best at math or at instruction following among those models, it solves no coding problem, and it loses to its teacher on every task.
  • It is not a general language model. It was trained only on chat-formatted text. On plain text it is near chance.
  • Tool calls are single-turn. It writes the call. It was not trained or tested on using the result of a tool in a later turn, and in our demo it repeated the call instead.

Results

One sample per case, percent correct. The cases are rebuilt subsets, so do not compare them with published scores.

Model Stored parameters Language (MMLU-Redux) Math (MATH-500) Coding (LiveCodeBench) Tools (BFCL v3, single turn) Instructions (IFEval) Five tasks
Qwen3-0.6B (teacher) 596M 57.1 65.8 9.6 77.2 60.1 60.1
This model 58.2M 35.4 28.4 0.0 67.8 47.7 40.4
Falcon-H1-Tiny-90M-Instruct 91.1M 28.5 12.6 0.0 17.2 61.7 28.4
Falcon-H1-Tiny-Tool-Calling-90M 91.1M 25.1 6.2 0.0 41.6 25.1 23.1
Falcon-H1-Tiny-R-90M 91.1M 17.3 34.0 0.0 19.8 3.9 17.1
Flan-T5-Small 77.0M 29.6 0.8 0.0 20.0 10.9 17.0

Bold: best under 100M stored parameters. Nine more public chat models under 100M scored below 15 on the five tasks. On the tools test a model that never calls a tool scores 20.0, because 100 of the 500 cases need no call.

Cautions that belong with these numbers:

  • This model was trained on the prompt layouts of these benchmarks. The public models ran with their own chat templates and their published or default decoding. The Falcon models decode greedily by default and their reasoning model then hit the token limit on 67% of cases, so the Falcon rows may be too low.
  • The tools score of the checkpoint before our last data change was 62.4. We chose that last data after a look at per-category benchmark totals, and we chose this layout over a second one on benchmark scores.
  • We knowingly trained on no benchmark item. Public tool-calling data was not checked against BFCL.
  • Two sampler seeds of this checkpoint differ by 1.8 points on the five-task score (40.4 and 38.6).
  • On plain text (no chat template): multiple choice by log-likelihood 35.0 (chance 32.8), BLiMP 54.6 (chance 50), LAMBADA 1.6. Public models of this size reach 47.9, 80.0 and 36.4.

How to use it

The repository has custom code, so pass trust_remote_code=True (also for the tokenizer, or recent versions of transformers ask a question). The tokenizer is the standard Qwen tokenizer with the Qwen3 chat template. generate takes and returns standard Qwen token ids. Tested on CPU with transformers 4.51 and 5.23.

Check of the code in this repository: on 200 of the benchmark's tool cases (BFCL simple and multiple) it scored 152 on a CPU with the benchmark grader. The two benchmark runs of the original code on GPU scored 149 and 148 on the same cases.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "pauliusrauba/Accidental-60M"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True)
model = model.to("cuda", torch.bfloat16) if torch.cuda.is_available() else model.float()   # 16-bit on a GPU, 32-bit on a CPU
model.eval()

tools = [{"type": "function", "function": {
    "name": "get_weather", "description": "Get the current weather for a city.",
    "parameters": {"type": "object", "properties": {
        "city": {"type": "string", "description": "City name"},
        "unit": {"type": "string", "enum": ["celsius", "fahrenheit"]}}, "required": ["city"]}}}]
messages = [{"role": "user", "content": "What is the weather in Vilnius in celsius?"}]

enc = tok.apply_chat_template(messages, tools=tools, add_generation_prompt=True, return_tensors="pt", return_dict=True)
enc = enc.to(model.device)
out = model.generate(**enc, max_new_tokens=512)
print(tok.decode(out[0, enc["input_ids"].shape[1]:], skip_special_tokens=True))

The model thinks before it answers (a <think> block), as Qwen3 does. The scores above used thinking, temperature 0.6, top-p 0.95, top-k 20 and a limit of 8,192 new tokens. These sampling values are the defaults in generation_config.json.

What the custom code supports:

  • generate: max_new_tokens (default 2,048), max_length, do_sample, temperature, top_p, top_k, eos_token_id, pad_token_id, seed, streamer, and batches with padding. Beam search, penalties and stopping criteria are not supported.
  • forward: takes Qwen token ids and returns logits over the model's own 32,000 tokens. Column j is Qwen token model.kept_token_ids[j]. With labels it returns the next-token loss.
  • model.config.low_memory = True builds one layer at a time and does not expand the layers in memory. It is slower for a single sequence.
  • The model has no image, box or fill-in-the-middle special tokens of the Qwen tokenizer. generate raises an error if the input has one of them.

What is stored

Part Numbers
3 shared tensors for each of the 7 weight-matrix types (3 x 15,728,640) 47,185,920
Token embedding, 32,000 tokens x rank 320 10,240,000
Two embedding projections (320 x 1,024 each) 655,360
Per-layer gains: 3,072 MLP neurons + 16 heads, 28 layers 86,464
Norm weights 65,536
Mixing coefficients (7 types x 28 layers x 3) 588
Total (model.safetensors, 16-bit) 58,233,868

Layer l uses the weight W[l] = sum_j a[l, j] * B[j] for each matrix type. Every stored number is counted once.

The tokenizer files are not model weights and are not counted. They include token_map.json: the list of the 32,000 kept Qwen tokens, and for each other Qwen token its spelling with kept tokens (its byte-pair parts). Text stays exactly representable; teacher text becomes 0.8% longer.

How it was trained

About 80B tokens in 13 hours on at most 40 GPUs, in four stages: a warm start in which each student layer copies the teacher layer; distillation on Qwen3-0.6B answers to SmolTalk prompts (KL to the teacher plus a hidden-state loss); task data with hard labels on checked examples; and a short finish with averaged weights.

Public sources used for prompts or examples: SmolTalk, OpenHermes-2.5, OpenMathInstruct-2, GSM8K (train), MATH (train), MMLU (auxiliary train), ARC, OpenBookQA, CommonsenseQA, SciQ, QASC and MedMCQA (train splits), Synth-APIGen, Glaive function calling v2, CodeContests, APPS, TACO and LeetCode problems (dated before May 2023). Qwen3-14B wrote checked answers and synthetic questions, tool cases and coding problems. These sources have different licences; check them for your use.

Licence and credit

Built by Paulius Rauba. Apache-2.0. This model is derived from Qwen3-0.6B (Apache-2.0, Alibaba Cloud) and uses its tokenizer files. It is not a release of the Qwen team or of Alibaba, and they do not endorse it.

Downloads last month
43
Safetensors
Model size
58.2M params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for pauliusrauba/Accidental-60M

Finetuned
Qwen/Qwen3-0.6B
Finetuned
(1,528)
this model