All work

Pluto 124M Chat

A GPT-2-sized chat model trained from scratch, running in your browser

Year
2026
Kind
Models
Status
In use

IFEval 24.2%, level with SmolLM2-135M on 1/460 of its training tokens

A chat model in GPT-2's 124M size class (121M parameters), trained from scratch: pretrained on 4.35B tokens of FineWeb-Edu, then fine-tuned on a laptop GPU to chat and follow formatting rules. It runs on the visitor's device through WebGPU or WebAssembly.

Pluto is a dense transformer the size of GPT-2 small, trained with Muon and a warmup-stable-decay schedule, which let a 1B-token run be extended to 4.35B tokens from its last checkpoint before the decay. Chat fine-tuning runs in two stages: smol-smoltalk, then answers written by larger open models, including a set of instruction-following answers that were each checked against their rules. The base model scores above GPT-2 124M on 6 of 7 zero-shot benchmarks, and the chat model keeps every rule on 24.2% of IFEval prompts, level with SmolLM2-135M-Instruct's 21.3% within the margin of error, after about 1/460 of its pretraining tokens. A 243 MB fp16 ONNX export with a key/value cache runs it in the browser.

The problem

GPT-2 small has 124M parameters. Pluto is a model of the same size, trained from scratch with a current recipe on a small budget: a laptop GPU, plus about four hours of a rented one for most of the pretraining. It is pretrained on educational web text, then fine-tuned to chat and to follow formatting instructions, and it runs entirely in the browser.

How it works

  1. 01

    Pretrain on 4.35B tokens of FineWeb-Edu

    The model is a 12-layer dense transformer at width 768: grouped-query attention (12 query heads, 4 key/value heads) with QK-norm and a sigmoid output gate, RoPE, SwiGLU, a tanh logit soft-cap and GPT-2's tokenizer. Muon in DeepSeek-V4's variant trains the weight matrices and AdamW the rest, with a warmup-stable-decay schedule: a flat learning rate, then a linear decay over the last quarter of steps.

  2. 02

    Extend the run instead of restarting it

    Version 1 stopped at 1B tokens. Because the learning rate is flat until the decay, version 2 resumed from v1's checkpoint saved just before its decay began (step 1,430, 750M tokens) and kept going to 4.35B tokens before decaying. The first 1,430 steps ran on an RTX 5060 laptop GPU at about 27k tokens a second; the remaining 6,867 took about 3.9 hours on an RTX PRO 6000 at about 258k. Held-out loss went from 3.203 to 2.991.

  3. 03

    Fine-tune to chat in two stages

    Both stages run on the laptop GPU and compute the loss on the assistant's tokens only. Stage one is one epoch of smol-smoltalk, 437,234 conversations in about 6 hours. Stage two mixes 24,283 answers written by larger open models (Gemma 4 26B-A4B and dots.3), 304 identity conversations so it knows it is Pluto, and the two sets below, in 46 minutes.

  4. 04

    Write instruction-following data that can be checked

    10,900 requests from smol-smoltalk were given 1 to 3 formatting rules of the kinds IFEval tests, such as an exact number of bullets, all lowercase, no commas or a word limit, and Gemma 4 26B-A4B and 31B answered them through Gemini's free API tier. A rule checker tested every answer and dropped any that broke a rule (693 of them). A further 4,840 three-turn conversations teach it to keep context across turns.

  5. 05

    Measure it three ways

    lm-evaluation-harness scores seven zero-shot benchmarks against GPT-2 124M with the same code. IFEval's 541 prompts run through each model's chat template. On 250 held-out prompts, two Gemini Flash-Lite models judge pairs of answers in both orders, and a model wins a prompt only if both orders agree.

  6. 06

    Run it in the browser

    The chat model is exported to a 243 MB fp16 ONNX graph with an explicit key/value cache, so each new token is one small step. onnxruntime-web runs it with WebGPU or multi-threaded WebAssembly, whichever is faster on the visitor's machine. The page's tokenizer, cache and sampler reproduce PyTorch's greedy reply token for token, and fp16 picks PyTorch's next token on 99.8% of 20k held-out tokens.

Results

24.2%
of IFEval prompts with every rule kept, against 21.3% for SmolLM2-135M-Instruct (standard error about ±1.8 points), which was pretrained on about 460 times as many tokens
6 of 7
zero-shot benchmarks where the base model scores above GPT-2 124M, by more than the error bars on HellaSwag and both ARC sets; it trails on LAMBADA
2.991
held-out FineWeb-Edu loss, against 3.274 for GPT-2 on the same tokens
243 MB
fp16 model that runs on the visitor's device, with no inference server

Decisions

  • Keep only answers that pass the checker

    The teacher models kept between 91% and nearly 100% of each kind of rule. Dropping the answers that broke one means Pluto never trains on an answer that ignores the instruction it was given.

  • Judge every pair in both orders

    LLM judges tend to prefer one answer position. Each pair is judged twice with the answers swapped, and a disagreement counts as a tie, so a win means both orders agreed.

  • Greedy decoding by default

    Every evaluation uses greedy decoding, and the browser demo starts there too, so what visitors see matches the published numbers. The sampling controls are still on the page.

Lessons

  • A stronger base model alone didn't make it follow instructions better: the first v2 fine-tune scored 17.4% on IFEval, below v1's 19.4%. Adding the checked instruction-following set took it to 24.2%, while the judged chat quality stayed within noise of that first fine-tune.
  • lm-evaluation-harness's IFEval run was silently cut to 256 new tokens by the max_new_tokens in the model's generation_config. Scoring a copy of the model without that setting fixed it.