Poolside explains how it trained its Laguna coding models

In short

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

These explanations are ours.

Sources

Sources

Related stories

More from AI in Europe

All stories from AI in Europe