Phase 2 · Modeling·Continual pretraining means starting the next phase of training from a cooled checkpoint. A cosine decay learning-rate schedule is best suited for fixed-budget training. Phase 2 has a mix of code, agentic, and English data. What’s the best move for Phase 2? Should we continue with cosine decay or use WSD?
BubblSpace MoE-0.9B-A0.2B
Building a small language model from scratch, in the open.
BubblSpace is AIEdx’s open research project. We built a 915M-parameter mixture-of-experts model, pretrained its English base on 10B tokens, and completed another 12B tokens of continual pretraining on English, code, tool use, and entity binding. We’re preparing the data for Phase 2.5.
Models, datasets, and checkpoints
Inference weights
The model repo’s main branch serves Phase 2 step 19,000, just before the cooldown.
Full training states
Resume or branch from Phase 1 final (19,073), Phase 2 before cooldown (19,000), or Phase 2 final (22,888). Each includes the weights, optimizer, learning-rate scheduler, and random-number generator state.
BubblSpace collection
Find the model, training states, contrastive binding dataset, and Wikipedia-based relational passages in one place.
The training journey
Model and training stack
Built the model
We implemented the architecture and training pipeline from scratch, and extended SmolLM2's tokenizer with 12 tokens for code infilling, tool calls and reasoning. The model routes each token through 8 of 64 experts, using roughly 211M of its 915M parameters per token.
Phase 1 · Complete
Trained the English base
We pretrained on 10B FineWeb-Edu tokens on one H100 and released the final checkpoint at step 19,073. The model could write fluent English but still struggled to associate facts and attributes with the right entities.
Phase 2 · Complete
Continued into code and tool use
Phase 2 finished on November 23, 2026, at step 22,888 after 12B more tokens and about 39 hours and 50 minutes on one H100. During the final 2B tokens, the learning rate fell and the mix shifted toward tool use and entity binding.
Training roadmap
Phase 1 · Done
English base
Learns the language itself.
Phase 2 · Done
Coding + agentic
Code and agent-style tasks. It now writes working Python.
Phase 2.5 · Data preparation
More knowledge, longer context
Phase 2.5a plans 20B tokens focused on factual knowledge, semantic relations, and code. Phase 2.5b plans about 1.5B more tokens to extend the context window.
- Factual data
- Relational data
- More code
Phase 3 · Next
SFT: instruction following
Teaches it to do what the user actually asked.
Phase 4 · Next
RL: reinforcement learning
Rewards good outputs to sharpen reliability.
Context window
8× target
What Phase 2 showed
Code generation scores rose through the final checkpoint. During the cooldown, binding improved on new names and phrasings, from 17 to 82 out of 112 on probe v4. On the separate test for new sentence structures, the score moved from 4 to 6 out of 70.
| Evaluation | Phase 1 final | Phase 2 |
|---|---|---|
| Code output prediction (CRUXEval-O pass@1) | 0.0% | 17.7%Step 19,000 |
| Code generation (HumanEval pass@1) | 0.0% | 14.6%Step 22,888 |
| Python programming tasks (MBPP pass@1) | — | 18.2%Step 22,888 |
| Valid call with the expected tool name (23 held-out episodes) | 0% | 39.1%Step 21,000 |
| English benchmark average (6 tasks) | 47.18 | 46.65Step 21,000 |
| Held-out entity binding (probe v4, chance ≈ 28/112) | 13/112 | 82/112Step 21,000 |
How we train and evaluate
Profiling showed that the H100 was spending time waiting for data. Loading batches in the background raised smoke-test throughput from roughly 69–71k to 85.5k tokens per second, moving the projected Phase 2 run time from about 48 to 39 hours.
We made evaluation deterministic so repeated runs give the same scores, and added per-layer routing inspection to see which experts handle different kinds of input as training progresses.
Recent Research Notes
All notesPhase 1 · Evals·Across 2,000 steps of FineWeb-Edu pretraining (~37% to ~47% of the 10B-token run), LAMBADA perplexity dropped monotonically from 58.1 to 49.3 while PIQA rose to 65.9%.
Phase 1 · Modeling·Architecture and optimizer setup for BubblSpace MoE-0.9B-A0.2B: Qwen3-Next-inspired GQA with QK-norm, output gating, ZeroCenteredRMSNorm, and hybrid Muon + AdamW in bf16.
Team
Founder & AI Researcher
First-principles builder and researcher behind AIEdx and the BubblSpace MoE pretraining runs.
Join BubblSpace on Discord
Running a checkpoint? Bring a prompt, an eval result, or a failure case, or follow the work on Phase 2.5.
Join BubblSpace DiscordFor direct collaboration, contact AIEdx.