MojoLlama
Archived Mojo/MAX quantizer and serving research repository (read-only history)
Brought by drakestapleton
MojoLlama / src / mojollama / mojo_engine / gpt_oss_weights.mojo
| 1 | // Auto-generated GPT-OSS weight indices (436 files) |
| 2 | // n_embd=2880 n_layers=24 |
| 3 | // n_experts=32 n_experts_per_tok=4 |
| 4 | |
| 5 | @extern("load_weight") |
| 6 | def _load_w(idx: Int64) abi("C") -> Int64: ... |
| 7 | @extern("free_weight") |
| 8 | def _free_w(p: Int64) abi("C") -> None: ... |
| 9 | @extern("weight_size") |
| 10 | def _w_size(idx: Int64) abi("C") -> Int64: ... |
| 11 | |
| 12 | comptime EMB: Int64 = 0 |
| 13 | comptime EMB_F32: Int64 = 1 |
| 14 | comptime META: Int64 = 434 |
| 15 | comptime OUT_NORM: Int64 = 435 |
| 16 | |
| 17 | comptime L0_attn_norm: Int64 = 2 |
| 18 | comptime L0_down_e: Int64 = 3 |
| 19 | comptime L0_down_info: Int64 = 4 |
| 20 | comptime L0_ffn_norm: Int64 = 5 |
| 21 | comptime L0_gate_e: Int64 = 6 |
| 22 | comptime L0_gate_info: Int64 = 7 |
| 23 | comptime L0_k_info: Int64 = 8 |
| 24 | comptime L0_k_w: Int64 = 9 |
| 25 | comptime L0_o_f32: Int64 = 10 |
| 26 | comptime L0_o_info: Int64 = 11 |
| 27 | comptime L0_o_w: Int64 = 12 |
| 28 | comptime L0_q_info: Int64 = 13 |
| 29 | comptime L0_q_w: Int64 = 14 |
| 30 | comptime L0_router: Int64 = 15 |
| 31 | comptime L0_up_e: Int64 = 16 |
| 32 | comptime L0_up_info: Int64 = 17 |
| 33 | comptime L0_v_info: Int64 = 18 |
| 34 | comptime L0_v_w: Int64 = 19 |
| 35 | |
| 36 | comptime N_EXPERTS: Int64 = 32 |
| 37 | comptime N_EXP_PER_TOK: Int64 = 4 |
| 38 | comptime N_LAYERS: Int64 = 24 |
| 39 | comptime N_EMBD: Int64 = 2880 |
| 40 | comptime N_HEAD: Int64 = 64 |
| 41 | comptime N_KV_HEAD: Int64 = 8 |
| 42 | comptime HEAD_DIM: Int64 = 64 |
| 43 | comptime VOCAB_SIZE: Int64 = 201088 |
| 44 | comptime N_FF: Int64 = 2880 |
| 45 | comptime LAYER_STRIDE: Int64 = 18 |
| 46 |