Stage 1 safetensors step 15521: README.md
Browse files1234567891011121314156 unmodified lines222324252627282930311 unmodified line3334353637---tags:- pretraining- ultramemv2- engram- normuon- recurrent-depth---# Cortex-OSS-Flash-1.0 (Stage 1 Pretraining Checkpoint)Resumable 4x A100-80GB Stage 1 pretraining checkpoint (weights, sharded NorMuon/AdamW optimizers, 4-way sharded Engram + UltraMemV2 sparse tables & Adam states, routing bias/EMA, and exact per-source streaming dataset cursors).## Checkpoint Summary- **Step**: 155216 unmodified lines- `sangraha_ver_rom`: 259,624,960 tokens (0.2596B)- `wikipedia_en`: 223,411,200 tokens (0.2234B)- **WSD LR schedule**: 2,000-step linear warmup, constant peak LR (`lr_scale = 1.0`, WSD decay NOT activated)- **Data mix**: 43.6% FineWeb-Edu (`int_score >= 4`), 21.8% UltraData-Stack-v3-L2 (`quality_score >= 5`), 13.6% Nemotron-CC-Math (`4plus`), 9.1% Scibase-filtered, 6.4% Sangraha (verified + romanized), 5.5% Wikipedia (`20231101.en`)- **Latest metrics**: `{"step": 15521, "stage": "S1-10L+probe", "loops": 12, "mean_loops": 9.977, "tbptt": 2, "lr_scale": 1.0, "tok_s": 203819.6, "tot_loss": 0.0, "lm_loss": 0.0, "ppl": 1.0, "echo_loss": 0.0, "aux_loss": 0.0, "gnorm_core": 0.0445, "gnorm_router": 0.2137, "router_entropy": 0.99721, "max_load_ratio": 3.474, "eng_gate": 0.4082, "mem_gate": 0.2488, "bridge_rms": 0.455, "tokens_seen": 4068737024, "tokens_seen_B": 4.068737, "wall_min": 213.32, "tok_fineweb_edu_M": 1774.819, "tok_ultradata_stack_v3_l2_M": 886.266, "tok_nemotron_cc_math_4plus_M": 554.127, "tok_scibase_filtered_M": 370.488, "tok_sangraha_ver_rom_M": 259.625, "tok_wikipedia_en_M": 223.411}`## Exact Resume Command (4x A100-80GB)```bashtorchrun --nproc_per_node=4 code/train_stage1_cortex.py \--manifest data_manifests/stage1_manifest.json \1 unmodified line--resume-dir checkpoint/latest \--micro-batch-size 64 \--grad-accum 1 \--seq-len 1024```1234567891011121314151617186 unmodified lines252627282930313233341 unmodified line363738394041---tags:- pretraining- safetensors- ultramemv2- engram- normuon- recurrent-depth---# Cortex-OSS-Flash-1.0 (Stage 1 Pretraining Checkpoint — Pure Safetensors)Resumable 4× A100-80GB Stage 1 pretraining checkpoint stored in pure **`.safetensors` + JSON** (zero `.pt` pickle files): dense weights (`model.safetensors`), sharded NorMuon/AdamW optimizers, 4-way sharded Engram + UltraMemV2 sparse tables & Adam states (`checkpoint/latest/rank-{0..3}.safetensors`), routing bias/EMA, and exact per-source streaming dataset cursors (`checkpoint/latest/rank-{0..3}_meta.json`).See `AGENTS.md` for complete project context, Session 1 lessons learned, and the exact fast-resume playbook.## Checkpoint Summary- **Step**: 155216 unmodified lines- `sangraha_ver_rom`: 259,624,960 tokens (0.2596B)- `wikipedia_en`: 223,411,200 tokens (0.2234B)- **WSD LR schedule**: 2,000-step linear warmup, constant peak LR (`lr_scale = 1.0`, WSD decay NOT activated)- **Depth & FIM**: Exact mean loop `10.00L`, `TBPTT = 2`, 50/50 PSM/SPM domain-weighted FIM (`50%` code, `10%` other), `2π + 0.25*tanh` FiLM clamp, Engram causal `DepthwiseConv1d(k=4)+SiLU`- **Latest metrics**: `{"step": 15521, "stage": "S1-10L+probe", "loops": 12, "mean_loops": 9.977, "tbptt": 2, "lr_scale": 1.0, "tok_s": 203819.6, "tot_loss": 0.0, "lm_loss": 0.0, "ppl": 1.0, "echo_loss": 0.0, "aux_loss": 0.0, "gnorm_core": 0.0445, "gnorm_router": 0.2137, "router_entropy": 0.99721, "max_load_ratio": 3.474, "eng_gate": 0.4082, "mem_gate": 0.2488, "bridge_rms": 0.455, "tokens_seen": 4068737024, "tokens_seen_B": 4.068737, "wall_min": 213.32, "tok_fineweb_edu_M": 1774.819, "tok_ultradata_stack_v3_l2_M": 886.266, "tok_nemotron_cc_math_4plus_M": 554.127, "tok_scibase_filtered_M": 370.488, "tok_sangraha_ver_rom_M": 259.625, "tok_wikipedia_en_M": 223.411}`## Exact Resume Command (4× A100-80GB)```bashtorchrun --nproc_per_node=4 code/train_stage1_cortex.py \--manifest data_manifests/stage1_manifest.json \1 unmodified line--resume-dir checkpoint/latest \--micro-batch-size 64 \--grad-accum 1 \--seq-len 1024 \--enable-fim --fim-rate-code 0.50 --fim-rate-other 0.10```
README.md+9-5