MagistrTheOne commited on
Commit
7f24bbd
·
verified ·
1 Parent(s): da321c3

MAGI-7B-MoE — initial architecture checkpoint

Browse files
Files changed (5) hide show
  1. PROBE_NOT_BASE.json +10 -0
  2. README.md +110 -0
  3. magi_7b_moe_v0.1.yaml +111 -0
  4. model.safetensors +3 -0
  5. train_meta.json +107 -0
PROBE_NOT_BASE.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "claim_class": "RUNTIME_PROBE_NOT_BASE",
3
+ "final_loss": 3.2434604167938232,
4
+ "model": "MAGI-7B-MoE",
5
+ "production_checkpoint": false,
6
+ "status": "OK",
7
+ "steps": 50,
8
+ "tokenizer": "magi_bringup_8k_v0.1",
9
+ "tokenizer_note": "bringup_8k \u2014 forbidden for BASE / MAGI_TOKENIZER_V1 path"
10
+ }
README.md ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ tags:
4
+ - magi
5
+ - mixture-of-experts
6
+ - moe
7
+ - language-model
8
+ - transformer
9
+ - nullxes
10
+ ---
11
+
12
+ # MAGI-7B-MoE
13
+
14
+ **MAGI-7B-MoE** is an experimental sparse Mixture-of-Experts language model developed by **NULLXES** as part of the MAGI model family.
15
+
16
+ MAGI is a research program focused on sparse model architectures, expert routing, scalable training systems, and synthetic intelligence.
17
+
18
+ ## Architecture
19
+
20
+ MAGI-7B-MoE uses a decoder-only sparse Mixture-of-Experts architecture.
21
+
22
+ Current architecture configuration:
23
+
24
+ - Decoder-only Transformer
25
+ - Sparse Mixture-of-Experts
26
+ - 64 routed experts
27
+ - 1 shared expert
28
+ - Top-4 expert routing
29
+ - 3 dense layers
30
+ - 29 MoE layers
31
+
32
+ The complete architecture configuration included with this release is available in:
33
+
34
+ `magi_7b_moe_v0.1.yaml`
35
+
36
+ ## Release status
37
+
38
+ This repository contains an **early MAGI architecture checkpoint**.
39
+
40
+ The checkpoint was produced to validate:
41
+
42
+ - MAGI model construction
43
+ - CUDA/H200 execution
44
+ - forward and backward passes
45
+ - sparse expert routing
46
+ - router behavior
47
+ - optimization
48
+ - gradient flow
49
+ - checkpoint serialization
50
+ - end-to-end MAGI training infrastructure
51
+
52
+ This checkpoint is **not a production-ready base model**.
53
+
54
+ It uses the temporary MAGI bring-up tokenizer:
55
+
56
+ `magi_bringup_8k_v0.1`
57
+
58
+ It must not be represented as a checkpoint trained with the final `MAGI_TOKENIZER_V1`.
59
+
60
+ The internal artifact metadata is retained in `PROBE_NOT_BASE.json` for reproducibility and release provenance.
61
+
62
+ ## Initial training validation
63
+
64
+ Hardware:
65
+
66
+ - NVIDIA H200
67
+ - CUDA
68
+ - BF16 supported
69
+
70
+ Training configuration:
71
+
72
+ - Steps: 50
73
+ - Sequence length: 1,024
74
+ - Batch size: 1
75
+ - Tokens processed: 51,200
76
+ - Learning rate: 3e-4
77
+
78
+ Observed training result:
79
+
80
+ - Initial loss: 9.4176
81
+ - Final loss: 3.2435
82
+ - Loss delta: 6.1741
83
+ - Final dead experts: 0
84
+ - Final router entropy: 4.0884
85
+ - Final expert imbalance ratio: 2.9494
86
+ - Mean throughput: ~1,392.7 tokens/s
87
+
88
+ Training status:
89
+
90
+ `OK`
91
+
92
+ These values describe an architecture bring-up run and should not be interpreted as downstream model-quality benchmarks.
93
+
94
+ ## Checkpoint
95
+
96
+ Weights are distributed as:
97
+
98
+ `model.safetensors`
99
+
100
+ Optimizer state is intentionally not included in this public package.
101
+
102
+ ## MAGI
103
+
104
+ MAGI is developed by NULLXES.
105
+
106
+ The broader MAGI program explores scalable sparse neural architectures and training infrastructure for synthetic intelligence systems.
107
+
108
+ ---
109
+
110
+ © 2026 NULLXES
magi_7b_moe_v0.1.yaml ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MAGI-7B-MoE v0.1 — SCALE_0
2
+ # First real member of the MAGI Sparse-MoE family (recipe prover before 35B).
3
+ # NOT a disposable bring-up toy. BASE training waits for MAGI_TOKENIZER_V1.
4
+ # Dense MAGI-7B is A/B reference only — not the scaling path.
5
+
6
+ meta:
7
+ name: MAGI-7B-MoE
8
+ version: v0.1
9
+ program_parent: MAGI-5.5GTBS
10
+ status: SCALE_0
11
+ role: magi_family_scale_0_recipe_prover
12
+ from_zero: true
13
+ model_class: moe_decoder
14
+ primary_role: sparse_moe_scale_0
15
+ parent_family: magi_35b_moe
16
+ topology_source: configs/magi_35b_moe_v0.1.yaml
17
+ claim_class_topology: CALCULATED
18
+ hf_architecture: MagiForCausalLM
19
+ canonical_training_target: true
20
+ scaling_path: true
21
+ production_pretraining_allowed: false
22
+ blocked_until: MAGI_TOKENIZER_V1
23
+ next_phase_ref: data/program/MAGI_NEXT_PHASE_v0.1.yaml
24
+ notes: "Train BASE only after tokenizer freeze. bringup_8k is runtime probe only."
25
+
26
+ architecture:
27
+ type: decoder_only_prenorm_sparse_moe
28
+ d_model: 2048
29
+ n_layers: 32
30
+ n_dense_layers: 3
31
+ n_moe_layers: 29
32
+ n_heads: 16
33
+ n_kv_heads: 8
34
+ d_head: 128
35
+ d_ff_dense: 5632
36
+ d_ff_expert: 512
37
+ n_routed_experts: 64
38
+ n_shared_experts: 1
39
+ top_k: 4
40
+ vocab_size: 8192
41
+ tied_embeddings: true
42
+ norm: rmsnorm
43
+ rmsnorm_eps: 1.0e-6
44
+ activation: swiglu
45
+ positional: rope
46
+ rope_theta: 1000000.0
47
+ bias: false
48
+ attention: gqa
49
+ train_context: 4096
50
+ infer_context: 8192
51
+ vocab_note: "8192 is temporary architecture default for meta/runtime probes; BASE retargets to MAGI_TOKENIZER_V1 vocab after freeze"
52
+
53
+ moe:
54
+ gate: sigmoid_normalize_topk
55
+ gate_dtype: fp32
56
+ capacity_factor_train_min: 1.0
57
+ capacity_factor_train_max: 1.25
58
+ load_balance: aux_loss_free_bias
59
+ router_z_loss_coeff: 1.0e-5
60
+ bias_update_rate: 1.0e-3
61
+ hierarchical_routing_hooks: true
62
+
63
+ init:
64
+ emb_std: 0.02
65
+ residual_std_formula: "0.02 / sqrt(2 * n_layers)"
66
+ claim_class: HYPOTHESIS
67
+
68
+ precision:
69
+ proxy: bf16
70
+ production: bf16
71
+ master_weights: fp32
72
+ router_loss_softmax: fp32
73
+ loss: fp32
74
+
75
+ hardware:
76
+ target: H200_SXM
77
+ proxy_gpu: H200
78
+ gpu_vram_gb: 141
79
+ dtype: bfloat16
80
+ recommended_batch: 1
81
+ recommended_seq: 2048
82
+ notes: "Sparse MoE; Adam stores ALL experts (~96GB). Active/token ~1B."
83
+
84
+ tokenizer:
85
+ production_id: MAGI_TOKENIZER_V1
86
+ production_artifact: tokenizer/artifacts/magi_tokenizer_v1.json
87
+ production_status: MISSING_PENDING_SWEEP
88
+ bringup_probe_id: magi_bringup_8k_v0.1
89
+ bringup_probe_config: configs/tokenizer_bringup_8k_v0.1.yaml
90
+ bringup_probe_artifact: tokenizer/artifacts/magi_bringup_8k_v0.1.json
91
+ bringup_pretraining_allowed: false
92
+ bringup_checkpoint_allowed: false
93
+
94
+ training_plan:
95
+ r0_tokens: "1e9-3e9"
96
+ r1_tokens: "1e10-3e10"
97
+ flagship_after_r1: configs/magi_35b_moe_v0.1.yaml
98
+
99
+ hf:
100
+ model_type: magi
101
+ architecture: MagiForCausalLM
102
+ use_cache: true
103
+ return_dict: true
104
+ tie_word_embeddings: true
105
+
106
+ expected_param_count:
107
+ total: 6456870912
108
+ active_per_token: 966526976
109
+ cognitive_cycle_1pass: 966526976
110
+ cognitive_cycle_2pass: 1933053952
111
+ claim_class: CALCULATED
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33d85ed2191bf4431016792e8e242e781e5aa6f9bb89ba6d5363cbe9cc93fdbf
3
+ size 25828190096
train_meta.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "checkpoint": {
3
+ "config_path": "/workspace/NULLXES-MAGI-5.5GTBS/configs/magi_7b_moe_v0.1.yaml",
4
+ "consumed_tokens": 51200,
5
+ "global_step": 50,
6
+ "loss": 3.2434604167938232,
7
+ "model_name": "MAGI-7B-MoE",
8
+ "step": 50,
9
+ "tokenizer_id": "magi_bringup_8k_v0.1"
10
+ },
11
+ "manifest": {
12
+ "active_parameters_per_token": null,
13
+ "artifacts": {
14
+ "model": {
15
+ "bytes": 25828190096,
16
+ "kind": "model",
17
+ "path": "model.safetensors",
18
+ "sha256": "33d85ed2191bf4431016792e8e242e781e5aa6f9bb89ba6d5363cbe9cc93fdbf"
19
+ },
20
+ "optimizer": {
21
+ "bytes": 51660189376,
22
+ "kind": "optimizer",
23
+ "path": "optimizer.pt",
24
+ "sha256": "19b47e3c092027e028720be82556d8a05d41382e4e6defb9d46febf3a05c8e83"
25
+ },
26
+ "rng": {
27
+ "bytes": 10240,
28
+ "kind": "rng",
29
+ "path": "rng.pt",
30
+ "sha256": "bcf2ed3771d2fcc72e66ebc1e516684f616af72ae6deabc1300e9d38ac461e89"
31
+ }
32
+ },
33
+ "checkpoint_format": "magi_single_gpu_v0.3",
34
+ "checkpoint_schema_version": "1",
35
+ "compute_dtype": "bf16",
36
+ "config_path": "/workspace/NULLXES-MAGI-5.5GTBS/configs/magi_7b_moe_v0.1.yaml",
37
+ "config_sha256": "b1ce9fe752e5b7ffa7771218cf636fd079d89ee83c2aebf5c2c04ebdf0cdca8a",
38
+ "consumed_samples": 50,
39
+ "consumed_tokens": 51200,
40
+ "dataset_manifest_id": "MAGI_DATA_MANIFEST_v0.1",
41
+ "dataset_manifest_sha256": "22fbaf1f8e36b823d8e8db50aa4b47e70035eb6f6571440a56285e3313b552fe",
42
+ "global_step": 50,
43
+ "manifest_version": "1.0",
44
+ "mixture_id": "base_mixture_v0_1",
45
+ "model_architecture": "MagiForCausalLM",
46
+ "model_name": "MAGI-7B-MoE",
47
+ "model_revision": "v0.1",
48
+ "parallelism": {
49
+ "cp": 1,
50
+ "dp": 1,
51
+ "ep": 1,
52
+ "pp": 1,
53
+ "tp": 1
54
+ },
55
+ "parameter_dtype": "float32",
56
+ "run_id": "c6a1d557-e620-4704-9102-f11f31637801",
57
+ "state_sections": [
58
+ "model",
59
+ "optimizer",
60
+ "rng",
61
+ "config",
62
+ "tokenizer"
63
+ ],
64
+ "tokenizer_id": "magi_bringup_8k_v0.1",
65
+ "tokenizer_sha256": "ac8cc35bf57b99b6c5b848600d45a1fc1875bc56fd9817b16f041ea36ca2911e",
66
+ "total_parameters": 6456870912,
67
+ "train_config_sha256": "5a3be59ddc2e3155205fbec690a345f3253df31dfbca2301d329ddbf60a95cd5",
68
+ "world_size": 1
69
+ },
70
+ "metrics": {
71
+ "consumed_tokens": 51200,
72
+ "final_dead_experts": 0,
73
+ "final_grad_norm": 0.9999998242570162,
74
+ "final_imbalance_ratio": 2.9493534564971924,
75
+ "final_router_entropy": 4.088359355926514,
76
+ "first_loss": 9.417561531066895,
77
+ "global_step": 50,
78
+ "last_loss": 3.2434604167938232,
79
+ "loss_delta": 6.174101114273071,
80
+ "loss_improved": true,
81
+ "mean_tok_s": 1392.7007314726904,
82
+ "status": "OK",
83
+ "steps": 50
84
+ },
85
+ "optimizer": "optimizer.pt",
86
+ "rng": "rng.pt",
87
+ "tokenizer_artifact": "/workspace/NULLXES-MAGI-5.5GTBS/tokenizer/artifacts/magi_bringup_8k_v0.1.json",
88
+ "tokenizer_id": "magi_bringup_8k_v0.1",
89
+ "tokenizer_path": "/workspace/NULLXES-MAGI-5.5GTBS/tokenizer/artifacts/magi_bringup_8k_v0.1.json",
90
+ "train_config": {
91
+ "amp_dtype": "bf16",
92
+ "batch_size": 1,
93
+ "beta1": 0.9,
94
+ "beta2": 0.95,
95
+ "eps": 1e-08,
96
+ "lr": 0.0003,
97
+ "max_grad_norm": 1.0,
98
+ "model_config": "/workspace/NULLXES-MAGI-5.5GTBS/configs/magi_7b_moe_v0.1.yaml",
99
+ "profile": "/workspace/NULLXES-MAGI-5.5GTBS/configs/magi_7b_train_h200_v0.1.yaml",
100
+ "seed": 42,
101
+ "seq_len": 1024,
102
+ "steps": 50,
103
+ "use_amp": true,
104
+ "weight_decay": 0.1
105
+ },
106
+ "weights": "model.safetensors"
107
+ }