Poolside explains how it trained its Laguna coding models
In short
- Poolside, a company that builds AI models for writing software, published a detailed account of how it trained its first two Laguna coding models on 28 April 2026, the day it released them.
- The recipe has four parts: more than 30 trillion tokens of training text, about 13% of it synthetic for the smaller model; a computer program that chooses the data mix; the Muon optimizer, which Poolside says reached the same training loss as the usual method in about 15% fewer steps; and reinforcement learning inside its own coding agent.
- A 37-page technical report, dated 25 May 2026, adds the detail. The blog post itself said on release day that the report was still "in development".
- Laguna XS.2 (33.4 billion parameters) has open weights under Apache 2.0. Weights for the larger Laguna M.1 (225.8 billion) followed on Hugging Face in June, also under Apache 2.0. We found no release of its training code or data.
30T+ training tokens for each model; 13% synthetic share of Laguna XS.2's training mix; ~15% fewer steps to the same loss with Muon, Poolside says; 6,144 NVIDIA H200 GPUs used to pre-train Laguna M.1; 5 weeks from start of training to release for Laguna XS.2
Why it matters
The post accompanied the release of Laguna M.1 and Laguna XS.2, "agentic" coding models: given a goal and a terminal, they work through many steps alone, reading files, running tests and fixing code. Poolside says "roughly 60 people" built them, and that until then it had served mainly government and public-sector clients.
The two models
Both are Mixture-of-Experts models: only a few of their many "expert" sub-networks run for each token (for XS.2, 8 of 256 plus one shared expert). M.1 finished pre-training at the end of 2025; XS.2 followed with lessons from it, and took "only five weeks" from start of training to release, the report says. Apache 2.0 lets anyone use, change and sell products built on the weights, as long as they keep the licence notices.
How does Poolside choose its training data?
Poolside keeps some middling web text for variety, rather than only the best, which it found leans towards science and reasoning. It says this gives about 2× more unique tokens than a strict filter, without losing performance.
Synthetic data, text generated by other models, makes up about 13% of the XS.2 mix, from a pool of about 4.4 trillion generated tokens. Much of it is existing material rewritten as questions and answers, lists or dialogue, so the model sees the same facts in several forms.
To choose the mix, Poolside built an AutoMixer. Each run trains about 60 smaller stand-in models on different mixes, scores them on code, maths, science and common sense, and fits a statistical model that predicts which mix will score best. In the report's table, from a small-scale test on a 3-billion-parameter model trained on 1.5 trillion tokens, the tuned mix lifted HumanEval+, a coding test, by 43% and the GSM8K maths test by 41%, relative to a hand-designed starting mix. It cost a little on common-sense tests, for example -6.8% on ARC-C.
What is the Muon optimizer?
An optimizer is the rule that decides how much to adjust each of the model's numbers after every batch of training data. Most large models use one called AdamW. Poolside used Muon in every stage of training for both models. In early tests, it says, Muon reached the same training loss as AdamW in about 15% fewer steps, and the learning rate it found on small models carried over to large ones.
Muon needs extra matrix arithmetic for each update. Poolside spreads that work across its GPUs and says it kept the optimizer's cost below 1% of each training step for M.1. Muon also stores one value per parameter where AdamW stores two, which saves memory.
Step 3: reinforcement learning inside the agent
After pre-training come three stages, according to the report: about 60 billion tokens of broad instruction data, then supervised fine-tuning for three passes over about 40 billion tokens of mostly agentic coding examples, and finally reinforcement learning.
In reinforcement learning the model attempts tasks and is rewarded when it succeeds. Poolside's rewards come only from checks a computer can run: the repository's own unit tests, tests of a terminal's final state, or an exact answer to a maths problem. The model works through the same agent software Poolside ships to customers, inside sandboxed containers.
Because one coding task can take many steps, the system is asynchronous: attempts keep running on the newest weights available while training goes on separately, with a limit on how stale an attempt may be. New M.1 weights reach the inference machines in about 5 seconds, the post says. Tasks always or never solved were dropped, to focus on hard but solvable ones.
Step 4: Titan, the training code
All of this runs on Titan, Poolside's own training library, which the report says started from Meta's open-source TorchTitan and has had "more than 2,200" changes. We found no public release of it.
The scores moved between the post and the report
All scores are Poolside's own runs in its own agent harness. The report used different settings from the April post (a 256K-token context, a higher sampling temperature, four runs averaged) and its scores are higher.
Benchmark leaks. The report says all four agentic benchmarks it reports could be gamed, through git history left in task images or by searching the web for answers. Poolside patched the images, checked its runs with a cheating judge and by hand, and says it found no significant reward hacking.
What happened next
End of 2025: Laguna M.1 finishes pre-training. 28 Apr 2026: Laguna M.1 and XS.2 released; XS.2 weights open under Apache 2.0; "A Deeper Dive" published. 25 May 2026: Date on the technical report. 26 May 2026: Both models served with a 256K-token context window. 18 Jun 2026: Laguna M.1 weights published on Hugging Face.
By 26 May, Poolside said, XS.2's weights had been downloaded more than 50,000 times. The report is linked from its models page.
Terms in plain English
- Token: a word or piece of a word, the unit a language model reads and writes.
- Loss: how wrong the model's predictions are during training; lower is better.
- Asynchronous, on-policy RL: learning from the model's own fresh attempts without waiting for a whole batch to finish.
These explanations are ours.
Sources
- Laguna XS.2 and M.1: A Deeper Dive, Poolside blog, 28 April 2026
- Laguna M.1/XS.2 Technical Report, Poolside, dated 25 May 2026
- Long context update for Laguna XS.2 and M.1, Poolside blog, 26 May 2026
- Laguna models page, Poolside
- poolside/Laguna-XS.2 and poolside/Laguna-M.1, Hugging Face
Sources
- Laguna XS.2 and M.1: A Deeper Dive
- Laguna M.1/XS.2 Technical Report
- https://poolside.ai/blog/long-context-update-laguna-xs-2-and-m-1
- https://poolside.ai/models
- https://huggingface.co/poolside/Laguna-XS.2
- https://huggingface.co/poolside/Laguna-M.1
Related stories
- Flexion's FUSE trains new robot skills in simulation in days
- Ai2 releases DR Tulu 2, a 4B open research agent trained offline
- A learning robot builds twisted graphene that can superconduct
- Poolside releases four open-weight Laguna coding models in 2026
- DeepL launches Aure v2, a speech-to-speech translation model
- NVIDIA releases open synthetic data for training document readers
More from AI in Europe
- Poolside releases Laguna XS.2, its first open-weight coding model
- Pleias releases CommonLingua, a tool that names 334 languages
- DeepL launches Voice-to-Voice, live spoken translation tools
- Stability AI launches Brand Studio, a closed brand image platform
- GPT-NL says its own tokenizer needs fewer tokens for Dutch text