Manuscript Offprint

arXiv:2610.34582

HobbyLM: A Sparse Mixture-of-Experts Model Family on a Hobby Budget

Harish Santhanalakshmi Ganesan, Hariharan M. S., Prabhurajhan R

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We describe HobbyLM, a family of small sparse Mixture-of-Experts (MoE) models trained from scratch with a few hundred to a few thousand dollars of rented GPU time. The core is a decoder-only transformer with fine-grained experts, sigmoid routing with auxiliary-loss-free load balancing, grouped-query attention with per-head QK-normalization, and a Muon/AdamW optimizer split. Each of these choices was selected with a single-variable ablation suite at 130M parameters. On this architecture we train a 500M-parameter model (169M active) on 40B FineWeb tokens and post-train it into a chat model, a masked-diffusion language model, a function-calling and computer-use agent, and a single “omni” checkpoint that reads text, images, video, sound and speech through frozen encoders and small projectors. We run these models on a laptop CPU with a from-scratch Rust inference engine. Two of the authors then adopted the architecture without architectural changes to build HobbyLM-1B (1.04B total, 305M active parameters), trained on a 100B-token curated mixture with a high-quality anneal. HobbyLM-1B reaches a 47.5 average on seven zero-shot benchmarks, and its builders also release an instruction-tuned model and an on-device macOS computer-use adapter. Finally, we describe HobbyLM-Image, a 333M-parameter flow-matching diffusion transformer that generates 1024×10241024 \times 1024 images in a 32×32 \times-compressed latent space, together with a dependency-light CPU implementation of the full text-to-image pipeline. We report what worked, what did not, and where the small-scale ceilings lie. We also state for each component which author designed or built it.

Models https://huggingface.co/rootxhacker

Code https://github.com/harishsg993010/HobbyLM

Demo https://huggingface.co/spaces/rootxhacker/HobbyLM-Playground

HobbyLM-1B models https://huggingface.co/harims95

HobbyLM-1B docs https://github.com/fuellabs-ai/hobbylm-1b

1 Introduction

Small language models are usually built by distilling or fine-tuning larger released checkpoints. HobbyLM takes the other route. Every model in the family is trained from random initialization, on public data, with rented serverless or on-demand GPUs and no cluster. We wanted to answer

*Designed the HobbyLM architecture and built the 130M and 500M models, all 500M post-training (chat, multimodal, function calling, computer use, diffusion LM), the inference engines and the image model (Sections 3, 4, 5 and 7). Correspondence: harishsg99@gmail.com.

†^{\dagger}Adopted the HobbyLM architecture to build HobbyLM-1B: data curation, data pipeline, training infrastructure, pretraining and anneal, evaluation and analysis (Section 6).

Figure

Figure 1: Zero-shot average on seven tasks (HellaSwag, OpenBookQA, WinoGrande, ARC-c, ARC-e, BoolQ, PIQA) against pretraining tokens, for base checkpoints of up to about 1B parameters (HobbyLM-1B: 1.04B total, 305M active). Filled points were run through the same evaluation wrapper (Table 5). HobbyLM-1B (hollow) was evaluated by its builders on the same tasks with the same metric choices, but with lm-eval 0.4.13 rather than 0.4.9.1 (Appendix D). HobbyLM-130M and -500M outscore MicroLlama-300M, OPT-350M and Pythia-160M, which saw 1.25–30× more tokens; Pythia-410M (300B tokens) remains ahead of HobbyLM-500M.

two questions. How far can a sub-billion-parameter sparse MoE get when the architecture and the systems work are chosen carefully? And can one person own every layer of the stack, from the optimizer to the GGUF reader to the desktop application?

Our contributions follow, in the order the work was done. Figure 1 summarizes the base-model results.

• Architecture (Section 3). A fine-grained sparse MoE decoder whose components were chosen by ablation. QK-normalization turned out to be by far the most important single choice.

• HobbyLM-500M and inference (Section 4). Pretraining at 130M and 500M; context extension to 8k; chat, masked-diffusion and interpretability variants; and inference through a llama.cpp-compatible export and a from-scratch Rust CPU engine.

• Multimodality and function calling (Section 5). A TinyLLaVA-style extension to image, video, audio and speech, co-trained into one checkpoint, plus function calling and a text-only computer-use agent driven by accessibility trees.

• HobbyLM-1B (Section 6). An independent 1B build that adopts the architecture unchanged and adds a curated 100B-token data mixture, stratified shard ordering and an anneal phase. Its builders also release an instruction-tuned model and an on-device macOS computer-use adapter.

• HobbyLM-Image (Section 7). A separate text-to-image diffusion transformer trained in a deep-compression latent space.

• Open artifacts. Appendix A lists all released weights and code for every model, including HobbyLM-1B. Appendices B–D and F give training configurations, evaluation settings and prompt formats for the 500M family and the image model; HobbyLM-1B's are in Section 6 and Appendices D, E and F.

Table 1: Provenance of each component. “Adopted” means the component was taken from the HobbyLM architecture specification and code without modification.

ComponentContentDesigned / built by
ArchitectureMoE decoder, routing, balancing, normalization, optimizer split, presets, ablationsHarish
Santhanalakshmi Ganesan
130M / 500M pretrainingFineWeb training, context extension, lm-eval wrapperHarish
Santhanalakshmi Ganesan
500M post-trainingChat (SFT+DPO), diffusion LM, SAE, multimodal omni model, function calling, computer useHarish
Santhanalakshmi Ganesan
InferenceGGUF export, Rust engine hobby-rs, desktop app hobby-chat, demo SpaceHarish
Santhanalakshmi Ganesan
HobbyLM-ImageDiT design, data curriculum, training, Rust portHarish
Santhanalakshmi Ganesan
HobbyLM-1B architectureThe 1B preset of Section 3Adopted (Harish Santhanalakshmi Ganesan)
HobbyLM-1B build100B-token mixture, stratified shard order, H200 training, anneal, evaluation, analysisHariharan M. S., Prabhurajhan R.
HobbyLM-1B-Instructinstruction tuning of HobbyLM-1B; GGUF build; patched CPU runtimesHariharan M. S., Prabhurajhan R.
HobbyLM-1B MLXMLX implementation for Apple SiliconPrabhurajhan R.
HobbyLM-1B Computer Use v0.1Mac computer-use LoRAPrabhurajhan R.

Section 2 places this work among related open models.

Who did what. This paper has two distinct bodies of work, and we keep them apart throughout. Harish Santhanalakshmi Ganesan designed the HobbyLM architecture, ran the ablations, and trained the 130M and 500M models, and also did all 500M post-training, including the multimodal, function-calling and computer-use models, and wrote the inference engines, the desktop application and the image model (Sections 3–5 and 7). Hariharan M. S. and Prabhurajhan R. took the architecture as specified in Section 3 and built HobbyLM-1B in their own code base. They curated the 100B-token training data, built the data pipeline and training infrastructure, ran pretraining and the anneal, and carried out the evaluation and analysis in Section 6. Table 1 gives the breakdown by component, and Appendix G gives detailed author contributions.

References (96)