@Clashluke

Researcher @coreauto

Zurich, Switzerland
Joined October 2020
Everything is Automation
6
4
71
3,232
Underdog’s Ternary is a modified @PrismML Bonsai 2, with attribution removed.
Introducing Underdog, your Private Personal AI on devices you already own Today we're announcing our backing from @a16z @khoslaventures @HummingbirdVC Anthology (@AnthropicAI @MenloVentures) @patrickc @naval @rauchg @polynoamial @Thom_Wolf @Mascobot @tszzl @OfficialLoganK and other top AI leaders Our mission is to provide free, capable, reliable and private AI to billions of people. Underdog’s Law: today’s frontier intelligence reaches your devices in six months. We’re starting with fast, capable AI that runs on consumer hardware. By co-designing models and inference engines, we’re pushing the frontier of capability, speed, power and data efficiency. Our research also spans agentic commerce, confidential inference, and how AI will reshape the internet economy. Privacy and capability no longer needs to be a tradeoff. If you believe in this future, join us. Time to build.
24
18
16
423
56,013
I want to like Underdog. “private, personal AI on your devices” is useful in the age of spam, so I’d appreciate transparency. All scales and biases are identical, and the GGUF loader is copied verbatim.
3
4
121
5,792
Sample selection isn't new, with TopK-GAN, IMLE and RHO-Loss all using this lens. However, none work outside of their paper. XMs are exciting because they are the first method* where sample selection helps, is better than baseline, and scales. nitter.cf/AlexiGlad/status/20843…
There have been some follow-up questions on the relationship between XMs and IMLE, so I’m going to provide some clarifications (some of this was in E.3 of the paper). IMLE is a great paper we respect and cite in XM, and I highly recommend people check it out. In fact, I’d encourage people to read the two papers side by side. I think this would help clarify the different motivations and let the merits of each speak for themselves. That being said, XMs are a generalization of IMLE and of best-of-K methods more broadly, and the recent claim that “XM is just a special case of IMLE” is inaccurate. XMs are about one thing, which is increasing generative expressivity by factoring the training loop, and IMLE is one specific instance of that (end-to-end Forward XMs). Because of this, >90% of the results in the XM paper go against the IMLE theory, and have not been studied by IMLE (including the entire 3rd pretraining axis portion of the paper, which was done by combining XMs with existing scalable reconstructive generative models, which IMLE has never focused on). Additionally, the XM paper's main contribution is empirical insights on generative expressivity, not best-of-K. In the paper, we explicitly state, “We do not claim to invent best-of-K”, and we also cite IMLE within the first two paragraphs of the approach section and in other locations. 🧵Thread:
1
8
1
36
8,850
A child raised in one language does not hear in another. A model trained on the internet does not become safe after. convergentthinking.sh/posts/…
2
2
24
2,573
After over 1000 tuning trials using various hyperparameter optimizers, the comparison remains meaningless. No algorithm gets close to rediscovering the speedrun's hyperparameters. Tested were: * HEBO * PROTEIN * BOHB * TPE * CMA-ES * HEBO-PROTEIN nitter.cf/Clashluke/status/20539…
max lr was capped at 1.0, which is apparently too low. time to rerun everything.
6
8
49
7,399
we just learned a lot about how Prism’s quantization works
Replying to @PrismML
Compression only matters if the model remains useful. Bonsai Image 4B remains competitive with models that have much larger footprints across object composition, human preference, aesthetic quality, and dense prompt following.
3
1
38
4,860
class SFMuon(C.ScheduleFree): def __init__(self, params, **kw): d = dict(lr=.02, beta=.95, weight_decay=0, warmup_steps=0, weight_lr_power=2., r=0.) d.update(kw) super().__init__(params, d, fns=(C.nesterov_ema, C.orthogonalize_update, C.update_by_schedule_free))
🚨New Optimizer Paper AMUSE: Anytime MUon with Stable gradient Evaluation AMUSE combines Muon with Schedule-Free-style gradient evaluation for stable anytime training without LR decay. • Stronger 124M / 720M / 1B pretraining • Strong ImageNet / ViT fine-tuning performance.
2
12
86
11,248
This implements the fixed-beta version which performs similarly to the hand-tuned-schedule variant. The full implementation is: _raw_sf = C.update_by_schedule_free.fn.fn def _amuse_beta(group): step = group.get('_group_step') if step is None: return group['amuse_beta1'] step, w = max(int(step), 1), group['warmup_steps'] if step <= w or w <= 1: return group['amuse_beta1'] return 1 - ((w - 1) / (step - 1)) ** group['amuse_rho'] * (1 - group['amuse_beta1']) @C.zero_guard('momentum') @C.no_state def muon_ema(group, update, grad, param, momentum): return utils.nesterov_ema(momentum, update, group['muon_mu']) @C.copy_guard(2, 'z') @C.no_state def amuse_sf(group, update, grad, param, z): group['beta'] = _amuse_beta(group) return _raw_sf(group, update, grad, param, z) class AMUSE(C.ScheduleFree): def __init__(self, params, **kw): d = dict(lr=.02, beta=.6, muon_mu=.95, weight_decay=0, warmup_steps=0, weight_lr_power=2., r=0., amuse_beta1=.6, amuse_rho=.8) d.update(kw) super().__init__(params, d, fns=(muon_ema, C.orthogonalize_update, amuse_sf))
1
14
1,328
Latency and synchs are the key bottlenecks in RL, but apparently you can sidestep this entirely by writing environment AND async transfer in C
2
6
28
2,153
40% higher throughput across the board by moving the async transfers to C
1
2
1
15
1,259
Teutonic, BitTensor’s decentralized compute cluster, is 10x as fast today as it was yesterday. Time to train.
2
3
79
8,131
What’s the SOTA hyperparameter optimizer? Specifically, modded-nanogpt needs wide hyperparameter ranges (some optimizers need LR=100, while others need 1e-6), while HEBO, PROTEIN, TuRBO, BOHB, HyperBand, SHA, CMA-ES, and TPE fail to converge in this setting.
7
3
31
3,863
HeavyBall submissions coming soon
Modded-NanoGPT Optimization Benchmark Hundreds of neural network optimizers have been proposed in the literature, recently including dozens citing Muon: MARS, SWAN, REG, ADANA, Newton-Muon, TrasMuon, AdaMuon, HTMuon, COSMOS, Conda, ASGO, SAGE, and Magma, to name a few. The majority of this innovation is happening in the public research community. But the community currently lacks a widely accepted, easily accessible way to compare and make sense of the deluge of methods. As a result, promising new ideas get buried, and spurious results go unchallenged. To help address these issues, I'm releasing a new optimization benchmark. It's designed for maximum simplicity and speed: Just a single file containing ~350 lines of plain PyTorch, which can complete a baseline LM training within 20 minutes of booting up a fresh 8xH100 machine. It also works with {1,2,4}xH100 or A100. These attributes make the new benchmark more accessible than any prior work. The rules are simple: The optimization algorithm can be changed arbitrarily, with the goal being to minimize the number of training steps needed to reach 3.28 val loss on FineWeb (this is the same target loss as in the main speedrun). Modifying the architecture or dataloader, on the other hand, is not allowed. Wallclock time is unlimited, in order to give a fair chance to optimizers which would need kernel work or larger scale to become wallclock-efficient. Like the main NanoGPT speedrun, submissions are open, and new results will be publicly broadcast. Beyond just improving the step count record, another goal of the benchmark is to collaboratively produce well-tuned baselines for as many optimizers as possible. For example, any improvement to the benchmark's best hyperparameters for AdamW would be considered a worthwhile new result. This benchmark is not intended to be the final measure of optimizer quality across all domains. Convenient shared experimental infrastructure which covers the full space of possibilities -- across varying batch size, tokens per parameter, model scale, epoch count, and architecture -- is desirable, but far beyond the current status quo. This benchmark is only meant to be one step towards that goal. To start the benchmark off, I've spent ~20 runs tuning baselines for Muon and AdamW. From time to time over the next few weeks, I'll add another optimizer from the literature, with my best effort at finding good hyperparameters. Researchers interested in neural network optimization are invited to join in by picking an optimizer and giving it a try on the benchmark. All optimizers are welcome, and even runs that don't necessarily have the best hyperparameters are desirable additions to the repo, because each new run adds to the collective knowledge.
7
3
65
6,607
The prior 20-trial 3200-step sweeps were undersampled. At 100 trials with 800 steps, everything seems within noise. The implied ranking is: SOAP > Muon+AdamW > KLSOAP > AdamW SOAP > KL SOAP is the opposite of what the math predicts, so I investigated: SOAP runs Adam in a rotating eigenbasis, but only the first moment gets rotated. Rotating both momentums restores consistency and improves convergence. The next version of HeavyBall will include it as HeavySOAP and HeavyKLSOAP.
5
3
2
63
32,469
max lr was capped at 1.0, which is apparently too low. time to rerun everything.
3
2
26
12,937
KL Shampoo and KL SOAP outperform their non-KL counterparts by learning the preconditioners compositionally, so that each stage corrects what remains after the last. Available in HeavyBall 3.1.1, with major PSGD stability backports.
HeavyBall 3.0.0 is finally out. Key features: * FSDP * DDP * End-to-End Compilation (2.5x speedup) * Higher-precision PSGDKron (grey, vs. HB2's blue) * Faster Muon and SOAP * PSGD-PRO (yellow) * LATHER, a SOAP-like optimizer * HyperBall * explicit `consume_grad` * simplified API
3
18
4
129
32,729
KL Shampoo/SOAP paper from @LinYorker et al.: arxiv.org/abs/2509.03378 HeavyBall adds two PSGD-derived stabilizers: 1) balancing, to pin the scale between equivalent factorizations 2) gradient damping, to keep covariance estimates well-conditioned (analogue of Adam’s eps)
3
13
1,837