Cosmic v0.7 (4.13B Sparse MoE β€” 100-min Aligned Checkpoint)

Note: 100-min means 100 minutes of wall-clock from-scratch training on a single consumer 8 GB NVIDIA GeForce RTX 4060 Ti (742 steps, ~6.08M tokens) β€” 100% Pure From-Scratch, ZERO PyTorch, ZERO Transformer Q Γ— K^T self-attention, ZERO KV cache, ZERO FineWeb-Edu, ZERO DeepSeek data, and ZERO external LLM distillation.

Author & Copyright: Β© 2026 Talmeez Ahmad (Apache-2.0)
Source Code: TerminalDev-1/Cosmic
Earlier v0.7 Checkpoints: 50-min Β· 75-min


What Changed in Stage 4 (75m β†’ 100m, --aligned)

  • Fixed Cross-Example State Bleed (--aligned): Stages 1–3 sliced random mid-document 512-token windows without resetting ScopedAttention v2's slow 1,024-token state at <|eot|>, causing 75m to drift off-prompt when started from state = 0 at inference.
  • Stage 4 (--aligned): Trains all 4.13B weights with every example starting cleanly at t = 0 (state = 0, matching live --infer bit-for-bit) and answer-only masked CE loss (0xFFFF masks User: prompt & padding tokens).
  • Verified t=0 Drop: Honest aligned t=0 val_BPC plunged 1.8659 β†’ 0.6910 (-1.1749 BPC in one 25-min stage!), stopping cross-domain drift on 3/4 unseen prompts (apples math stayed on apples, Three.js cube stayed on Scene/PerspectiveCamera/PCFSoftShadowMap/OrbitControls, Python palindrome stayed on typed Python string code).

Verified Metrics (100-min Checkpoint)

  • Total / Active Parameters: 4,132,721,664 (4.13B) / 499.41M (L=20, D=1536, F_exp=1792, 24E/Top-2, Hybrid BF16 Shared Trunk + Block-64 INT8-SR Experts + Pinned-RAM Cosmic Optimizer v4)
  • Strict Causality QA: [QA PASS] past_diff = 0.00e0, future_diff = 12.1550
  • Single 8 GB GPU Footprint: 5.21 GB active / 5.78 GB peak VRAM (91–100% GPU util, 57–70 Β°C, zero WDDM spillover)
  • Final Aligned t=0 val_BPC: 0.6910 (742 cumulative steps, 0 WIPEs)
  • Lossless 4-Bit Cosmic Compression (cosmic_v07_4b_omni_100m_cb4.ccosmic-cb): 3.85 GB vs 7.70 GB BF16 (2.00Γ— smaller), RMSE = 0.00127, verified live at Post-Compression val_BPC = 0.6969 (delta = +0.0059).

Files Included

  • cosmic_v07_4b_omni_100m_cb4.ccosmic-cb β€” Lossless 4-bit deployment checkpoint (3.85 GB)
  • cosmic_v07_4b_omni_100m.ccosmic β€” Full resumable CSM7 training checkpoint (8.21 GB)
  • cosmic_bpe_6144.cbpe β€” BPE-6144 tokenizer trained on cosmic_omni_v4
  • Full Pure-Rust + native CUDA source (src/, cuda/cosmic_gpu.cu, Cargo.toml, build.rs, build_cosmic_gpu.bat)
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support