- BubblSpace MoE-0.9B-A0.2B (base model)
- Disclaimer
- Phase 1 training config (base.yaml)
- Benchmarks
- step_7000 (step 7,000 / 19,073 planned steps, β37% through the single
- step_8000 (step 8,000 / 19,073 planned steps, β42% through the run)
- step_9000 (step 9,000 / 19,073 planned steps, β47% through the run)
- step_18000 (step 18,000 / 19,073 planned steps, β94% through the run)
- step_19073 β Phase 1 final checkpoint (100%, 10.0B tokens complete)
- Phase 2 results
- Try it yourself
- Disclaimer
BubblSpace MoE-0.9B-A0.2B (base model)
π Weights in this repo (
main): Phase 2, step 19,000 of 22,888
Checkpoint on mainmodel.safetensors= Phase 2 step 19,000: Phase 1's 10B FineWeb-Edu tokens + β10B Phase 2 tokens (English, code, agentic, contrastive)Stage the end of the Stage 2A plateau, the last checkpoint before the learning-rate anneal. Not the final Phase 2 model Other checkpoints Phase 2 step 9,000 on branch phase2-step9000Β· Phase 1 final (step_19073, English only) on branchphase1-finalFull training checkpoints (weights + optimizer + scheduler + RNG, to resume or branch training) for 3 specific checkpoints (Phase 1 final step_19073, Phase 2step_19000end of plateau, Phase 2 finalstep_22888) in bubblspace-moe0.9b-a0.2b-training-states (safetensors + JSON, β7.5 GB each)Phase 1 (English base) β complete Phase 2 (English + code + agentic + contrastive, 12B tokens) β complete (step 22,888, 23 Nov). Final evals done (below); final weights are in the training-states repo Phase 2.5 (knowledge + relations + code, 20B tokens; then context 16k) π data prepared Phase 3 (SFT) planned Load another checkpoint with
git clone -b <branch> https://huggingface.co/TheFireHacker/bubblspace-moe0.9b-a0.2borhf_hub_download(..., revision="<branch>").
Fully open source β model weights, every checkpoint, the full training pipeline, and the data-prep code are all public, start to finish. Nothing here is held back: github.com/thefirehacker/bubblspace-MoE-0.9B-A0.2B
Live training graphs/logs (public W&B): Phase 1 goa8jk6e Β· Phase 2 lec9ww5h
Disclaimer
This model, its weights/checkpoints, and the training/data-prep code are published for learning and research purposes only. It is an experimental, independently-trained small language model, not a finished or production-grade product.
AIEDX Private Limited bears no responsibility or liability for any output produced by this model or any software built using it. Use is entirely at your own risk, provided "AS IS" without warranty of any kind, consistent with the Apache License 2.0.
On the nature of AI output: this is a small, base-pretrained (non-instruction-tuned) model. Its outputs are statistically plausible continuations of text, not verified facts, advice, or reasoning β it can be confidently wrong, biased, inconsistent, or nonsensical, especially at this parameter scale and training stage. Do not rely on its output for factual, medical, legal, financial, or safety-critical purposes.
This is the end-of-plateau Phase 2 checkpoint of a multi-phase project, not a finished model.
- Architecture: GQA (16 heads / 4 kv-heads), QK-norm, RoPE, dropless top-8 SwiGLU MoE (64 experts), ZeroCenteredRMSNorm, tied embeddings.
- Total params: 915,573,760 (β915M total / β211M active per token)
- Checkpoint: Phase 2 step 19,000 / 22,888 (continued from Phase 1 final
step_19073, 10B FineWeb-Edu tokens + β10B Phase 2 tokens) - Trained with Muon + AdamW, bf16, on a single H100.
- Tokenizer: SmolLM2-360M base + BubblSpace special tokens (chat/FIM/tool/reasoning), vocab 49,280.
This checkpoint is base-pretrained only, with no instruction tuning. It has seen code (with fill-in-the-middle), tool-call and reasoning episodes, but it still continues text rather than following instructions. Expect it to repeat itself on open-ended prompts (a repetition penalty helps) and to get facts loosely wrong.
Weights are provided as model.safetensors (raw state_dict of the custom Transformer class β
this is NOT a transformers-library-compatible checkpoint; the model code is included in this
repo under src/, and the full project is at https://github.com/thefirehacker/bubblspace-MoE-0.9B-A0.2B).
Phase 1 training config (base.yaml)
The Phase 2 config used for steps 0β19,000 is in training_config.yaml.
# ============================================================
# MoE-0.9B-A0.2B v2 β ~915M total / ~211M active params
# Qwen3-Next-inspired, single H100 80GB, Muon + AdamW
# ============================================================
run_name: moe0-9b-a0-2b-base
model:
n_layers: 16
d_model: 1024
vocab_size: 49280 # bubblspace-tokenizer real length 49164, padded to a multiple of 128
tie_embeddings: true
max_seq_len: 2048
norm_eps: 1.0e-6
attention:
n_heads: 16
head_dim: 64
n_kv_heads: 4
qk_norm: true
rope_theta: 10000
output_gate: true
bias: false
moe:
n_experts: 64
top_k: 8
expert_hidden: 256
activation: silu
router_init_std: 0.02
backend: auto # auto | grouped_mm | fallback β resolved at startup by probing torch._grouped_mm
load_balance_coef: 0.01
router_z_loss_coef: 0.001
init:
std: 0.02
# residual_proj_std = std / sqrt(2 * n_layers), applied to attn.o_proj and experts.W_down
optimizer:
muon:
lr: 6.0e-4
momentum: 0.95
nesterov: true
ns_steps: 5
weight_decay: 0.1
adamw:
lr: 6.0e-4
betas: [0.9, 0.95]
eps: 1.0e-8
weight_decay: 0.1
grad_clip: 1.0
schedule:
warmup_steps: 2000
decay: cosine # cosine | wsd
min_lr_ratio: 0.1
wsd_decay_frac: 0.2 # only used when decay: wsd
training:
dataset: HuggingFaceFW/fineweb-edu
dataset_config: sample-10BT
total_tokens: 10_000_000_000
seq_len: 2048
global_batch_tokens: 524288
micro_batch: 16
precision: bf16
compile: true
checkpoint_every: 1000
log_every: 10
expert_hist_every: 100
attn_logit_every: 100
data:
data_dir: /lambda/nfs/h100-f1/data
checkpoint_dir: /lambda/nfs/h100-f1/checkpoints
tokenizer:
path: ./bubblspace-tokenizer
doc_separator: "<|endoftext|>"
wandb:
project: moe0-9b-a0-2b
entity: null
Benchmarks
Standard base-LM benchmark suite via lm-evaluation-harness (loglikelihood-scored, multiple-choice tasks only β appropriate for a base-pretrained, non-instruction-tuned model; chat/instruction-following benchmarks would not be meaningful here).
step_7000 (step 7,000 / 19,073 planned steps, β37% through the single
10B-token FineWeb-Edu pretraining run)
| Task | Metric | Score | Random baseline |
|---|---|---|---|
| PIQA | acc_norm | 64.7% | 50% (2-choice) |
| ARC-Easy | acc_norm | 51.1% | β25% (multi-choice) |
| HellaSwag | acc_norm | 37.0% | 25% (4-choice) |
| LAMBADA (openai) | acc (exact last-word match) | 29.0% | β0% (strict exact-match) |
| LAMBADA (openai) | perplexity | 58.1 | β |
| WinoGrande | acc | 52.4% | 50% (2-choice) |
| ARC-Challenge | acc_norm | 28.0% | 25% (4-choice) |
Tasks rewarding broad surface-pattern learning (PIQA, ARC-Easy, HellaSwag) are clearly above chance already. The two hardest, most reasoning-heavy benchmarks (ARC-Challenge, WinoGrande) sitting near chance is expected at this model size and training stage β not a sign of a problem.
step_8000 (step 8,000 / 19,073 planned steps, β42% through the run)
| Task | Metric | step_7000 | step_8000 | Ξ |
|---|---|---|---|---|
| PIQA | acc_norm | 64.7% | 64.5% | -0.2 (noise) |
| ARC-Easy | acc_norm | 51.1% | 50.7% | -0.4 (noise) |
| HellaSwag | acc_norm | 37.0% | 38.0% | +1.0 |
| LAMBADA (openai) | acc | 29.0% | 31.0% | +2.0 |
| LAMBADA (openai) | perplexity | 58.1 | 50.3 | -7.8 (better) |
| WinoGrande | acc | 52.4% | 51.7% | -0.7 (noise) |
| ARC-Challenge | acc_norm | 28.0% | 27.6% | -0.4 (noise) |
Most metrics are flat within statistical noise over just 1,000 steps. LAMBADA is the exception β a real, consistent improvement (perplexity down 13%, accuracy up 2 points), the expected signal for the metric most dependent on total tokens seen. More checkpoints will be benchmarked the same way as training progresses.
step_9000 (step 9,000 / 19,073 planned steps, β47% through the run)
| Task | Metric | step_8000 | step_9000 | Ξ |
|---|---|---|---|---|
| PIQA | acc_norm | 64.5% | 65.9% | +1.4 |
| ARC-Easy | acc_norm | 50.7% | 50.8% | +0.1 (noise) |
| HellaSwag | acc_norm | 38.0% | 38.5% | +0.5 |
| LAMBADA (openai) | acc | 31.0% | 30.6% | -0.4 (noise) |
| LAMBADA (openai) | perplexity | 50.3 | 49.3 | -1.0 (better) |
| WinoGrande | acc | 51.7% | 51.5% | -0.2 (noise) |
| ARC-Challenge | acc_norm | 27.6% | 27.2% | -0.4 (noise) |
PIQA shows a real move this step (+1.4, clear of its β1.1% stderr), and HellaSwag keeps climbing steadily. LAMBADA perplexity continues its monotonic improvement (58.1 β 50.3 β 49.3), now 15% better than the step_7000 baseline. The reasoning-heavy benchmarks (ARC-Challenge, WinoGrande) remain flat within noise, as expected at this model size and training stage.
step_18000 (step 18,000 / 19,073 planned steps, β94% through the run)
This entry jumps 9,000 steps ahead of step_9000 (β4.7B additional tokens), so these deltas reflect that larger gap, not the usual 1,000-step increment.
| Task | Metric | step_9000 | step_18000 | Ξ |
|---|---|---|---|---|
| PIQA | acc_norm | 65.9% | 68.8% | +2.9 |
| ARC-Easy | acc_norm | 50.8% | 56.6% | +5.8 |
| HellaSwag | acc_norm | 38.5% | 42.6% | +4.1 |
| LAMBADA (openai) | acc | 30.6% | 35.3% | +4.7 |
| LAMBADA (openai) | perplexity | 49.3 | 31.0 | -18.3 (better) |
| WinoGrande | acc | 51.5% | 50.7% | -0.8 (noise) |
| ARC-Challenge | acc_norm | 27.2% | 29.9% | +2.7 |
Every task except WinoGrande moves well clear of its stderr band (β1-1.4% on most tasks) β the clearest real-learning signal of the run so far, matching the near-doubling of tokens seen since step_9000. LAMBADA perplexity has now fallen 37% from the step_7000 baseline (58.1 β 31.0) with accuracy up 6.3 points (29.0% β 35.3%). ARC-Easy and HellaSwag post their largest single-entry jumps of the run. WinoGrande stays flat within noise β expected, as it and ARC-Challenge are the two hardest, reasoning-heavy tasks in this suite (ARC-Challenge did move here, +2.7).
step_19073 β Phase 1 final checkpoint (100%, 10.0B tokens complete)
| Task | Metric | step_18000 | step_19073 | Ξ |
|---|---|---|---|---|
| PIQA | acc_norm | 68.8% | 68.2% | -0.6 (noise) |
| ARC-Easy | acc_norm | 56.6% | 56.1% | -0.5 (noise) |
| HellaSwag | acc_norm | 42.6% | 42.9% | +0.3 (noise) |
| LAMBADA (openai) | acc | 35.3% | 34.8% | -0.5 (noise) |
| LAMBADA (openai) | perplexity | 31.0 | 32.0 | +1.0 (noise) |
| WinoGrande | acc | 50.7% | 51.4% | +0.7 (noise) |
| ARC-Challenge | acc_norm | 29.9% | 29.8% | -0.1 (noise) |
Flat within stderr across the board over the final 1,073 steps β expected, since the cosine LR schedule had already decayed to its floor well before this point. This is the final Phase 1 base-pretraining checkpoint (weights above). Further improvement requires Phase 2 continual training on an expanded English + code + agentic mixture, not more steps on this run.
Phase 2 results
Phase 2 continues from the step_19073 checkpoint above for 22,888 more steps (12B tokens):
- Data: English/knowledge/STEM (Wikipedia, Cosmopedia-v2, FineMath, FineWeb-Edu replay), code in 5 languages with fill-in-the-middle, agentic tool-use and reasoning episodes, and synthetic contrastive entity-binding pairs.
- Schedule: a long stable plateau at learning rate 2.4e-4 (Stage 2A, 10B tokens), then an anneal (Stage 2B, 2B tokens) where the learning rate decays to 6e-6 while the mix shifts toward curated code, agentic and binding data.
All evals are deterministic. BFCL is decontaminated (11 overlapping questions excluded). No model-written code is executed.
| Eval | Phase 1 final | Phase 2 step 9,000 | Phase 2 step 19,000 (these weights) | Phase 2 final (22,888) |
|---|---|---|---|---|
| CRUXEval-O pass@1 (code output prediction) | 0.0% | β | 17.7% | 20.7% |
| BFCL simple / multiple / parallel (function calling, AST) | 0 / 0 / 0% | β | 25 / 13 / 0% | 25 / 17 / 1% |
| HumanEval pass@1 (code executed in an isolated sandbox) | 0.0% | 9.1% | 11.6% | 14.6% |
| MBPP pass@1 (500, sandboxed) | β | 8.4% | 12.6% | 18.2% |
| Held-out tool-call format: valid call, correct name | 0% | 30% | 35% | 39% |
| Fill-in-the-middle exact match | 0% | 1.7% | 3.3% | 5.0% |
Reasoning: closes </think> within 512 tokens |
0% | 12% | 0% | 0% |
| English 6-task average (forgetting check) | 47.18 | 46.19 | 45.98 | 46.92 |
| Entity-binding probe v2 / v3 | 24/100, 4/70 | 24/100, 3/70 | 30/100, 4/70 | 37/100, 6/70 |
| Entity-binding probe v4 (held-out phrasings + entities; chance β 28) | 13/112 | 11/112 | 17/112 | 77/112 (82 at step 21k) |
| TriviaQA / NQ-open (closed-book, 5-shot) | 8.5% / 2.9% | β | β | 11.6% / 3.9% |
Phase 2 English benchmarks, per task (lm-evaluation-harness, zero-shot, same suite as Phase 1 above):
| Task | Metric | Phase 1 final | P2 5k | P2 7k | P2 9k | P2 11k | P2 13k | P2 15k | P2 17k | P2 19k (these weights) | P2 21k | P2 final 22,888 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| HellaSwag | acc_norm | 42.86 | 40.39 | 40.69 | 40.64 | 40.28 | 40.61 | 40.65 | 40.72 | 40.26 | 41.07 | 41.74 |
| PIQA | acc_norm | 68.17 | 67.30 | 67.52 | 67.90 | 67.19 | 67.57 | 67.46 | 66.92 | 66.87 | 68.82 | 67.85 |
| ARC-Easy | acc_norm | 56.10 | 52.78 | 51.18 | 52.57 | 53.20 | 52.90 | 51.64 | 52.15 | 55.09 | 54.92 | 54.12 |
| ARC-Challenge | acc_norm | 29.78 | 27.99 | 27.39 | 27.99 | 27.99 | 29.18 | 27.90 | 29.61 | 29.18 | 29.10 | 28.58 |
| WinoGrande | acc | 51.38 | 51.07 | 51.70 | 52.72 | 52.57 | 51.78 | 50.67 | 53.75 | 52.25 | 52.96 | 54.30 |
| LAMBADA (openai) | acc | 34.80 | 32.85 | 33.03 | 35.30 | 34.54 | 34.02 | 32.08 | 33.96 | 32.21 | 33.01 | 34.91 |
| Average | 47.18 | 45.40 | 45.25 | 46.19 | 45.96 | 46.01 | 45.07 | 46.18 | 45.98 | 46.65 | 46.92 |
All Phase 2 English evals are listed (every 2,000 steps from step 5,000, plus the final step 22,888). Raw results: the GitHub repo's benchmark/phase2/english6_phase2_step*.json.
Honest read:
- Code and tool calling grew through the plateau and again in the anneal. HumanEval reached 14.6% and MBPP 18.2% at the final checkpoint (Phase 1: 0%). A contamination check shows problems the model passed are not more overlapping with the training data than ones it failed.
- English recovered in the anneal to 46.92, within 0.3 of Phase 1. WinoGrande and LAMBADA are now above Phase 1.
- Entity binding transferred to new words, not to new structures. Probe v4 jumped to 82/112 once a more varied contrastive corpus entered in the anneal (77 at the final step). The different-structure probe v3 stayed at 6/70.
- Factual recall is still weak: TriviaQA 11.6%, NQ 3.9%. Phase 2.5 targets this with knowledge-dense data.
- Not solved yet: parallel function calls (1%) and closing reasoning blocks.
Full per-checkpoint results are in the GitHub repo under benchmark/phase2/.
Try it yourself
This repo is self-contained β model code, weights, tokenizer, and a generation script are all included, so you don't need the training repo to run it.
Or run it directly in Colab, no setup required: https://github.com/thefirehacker/FirstBreakAI-Code/blob/main/notebooks/bubblspace_moe0_9b_a0_2b.ipynb
git lfs install
git clone https://huggingface.co/TheFireHacker/bubblspace-moe0.9b-a0.2b
cd bubblspace-moe0.9b-a0.2b
pip install -r requirements.txt
python generate.py --prompt "Your prompt here" --max_new_tokens 100
Needs a CUDA GPU for reasonable speed (falls back to CPU automatically, but will
be slow). moe.backend auto-resolves to torch._grouped_mm if available on
your GPU/torch build, otherwise a portable gather-loop fallback β both produce
identical outputs.