Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/MojoLlama/blob/main/src/mojollama/.workspace-state.md # MojoLlama Archived Mojo/MAX quantizer and serving research repository (read-only history) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `MojoLlama / src / mojollama / .workspace-state.md` 51 lines · 1927 bytes Raw Blame History Rendered 1 # Workspace State — 2026-05-20 2 3 ## Git 4 - Branch: `dev` 5 - HEAD: ``7e5e298`` — "refactor: organize workspace, add forward/ package, Gemma4 support" 6 - Pushed to both `origin` (OneDev) and `github` (GitHub) 7 8 ## Workspace Layout 9 10 ### src/mojollama/kernels/ (active) 11 | File | Purpose | 12 |------|---------| 13 | `turbo_engine_v7_moe.py` | Main MoE engine (56K, 1147 lines) | 14 | `turbo_engine_v77.py` | Dense fallback engine (15K) | 15 | `cengine_batch_instr.c/.so` | C batch_forward + SSM kernel (46K C, 54K SO) | 16 | `quant_kernels_omp.c/.so` | Quantized matmul OMP kernels (80K C, 43K SO) | 17 | `simd_ops.c/.so` | SIMD rms_norm, silu, residual_add, RoPE (8K C, 20K SO) | 18 | `gqa_attention.c/.so` | GQA attention C kernel (3.7K C, 16K SO) | 19 20 ### src/mojollama/kernels/forward/ (architecture forward passes) 21 - `__init__.py` — package init 22 - `base.py` — `ArchitectureForwardPass` ABC (28 lines) 23 - `gemma4.py` — `ForwardGemma4` (445 lines) 24 25 ### src/mojollama/kernels/subdirs/ 26 - `dsv4/` — DeepSeek V4 engine (4 files) 27 - `legacy-engine/` — 26 old Python engines 28 - `legacy-c/` — 55 old C files 29 - `benchmarks/` — bench_c_avx2.py 30 - `tests/` — test_quant_kernels.py 31 32 ### src/mojollama/root 33 - `benchmarks/` — 21 bench/server/profile scripts 34 - `tests/` — 11 test scripts 35 - 29 project files (studio.py, quantizer.py, server.py, etc.) 36 37 ## Gemma 4 Status 38 - ✅ Forward pass working (13.2 tok/s @32t, NaN=0) 39 - Features: per-layer projections, GeGLU, sliding window attn (512), Q/K norms, logit softcapping 40 - Architecture: ForwardGemma4 dispatched via arch_name == 'gemma4' 41 42 ## Falcon / Phi-4 43 - Blocked: no model files available 44 - Infrastructure ready (ArchitectureForwardPass ABC, dispatch hooks) 45 - Need to download test models to proceed 46 47 ## Key Commits 48 - ``7e5e298`` — Current HEAD (workspace + Gemma 4) 49 - ``c916b87`` — Lance Text 3B support 50 - ``1019103`` — Qwen3.6 concurrent server (47 tok/s) 51 - ``a8efdd1`` — GPT-OSS batch_forward fix