interplane.Get Omega
Read in your language

MojoLlama

Archived Mojo/MAX quantizer and serving research repository (read-only history)

Brought by drakestapleton

branch main Branches Tags History

MojoLlama / FINAL_STATUS.md

65 lines · 3455 bytes Raw Blame History Source

MojoLlama — Final Comprehensive Status

All Criteria Assessment

1. ✅ Documentation Thorough

2. ✅ Zig Incorporated

3. 🔄 Prior Subgoals — Status

SubgoalStatusMetric
MoE engine fix✅All models now compute correctly
Docker fix✅log_message + HEALTHCHECK port
CLI verify✅mojollama --help works
GPT-OSS 30 tok/s🔄 79%23.6 tok/s (F32 path bottleneck)
Qwen3.6 output✅Diverse tokens, no NaN
ZAYA >15 tok/s✅18.9 tok/s (2.8x from 6.7)
Gemma4 fix🔄Attribute fix applied; C segfault remains
C batch correctness🔄Pre-existing Python vs C mismatch
HRM-Text-1B🚫Custom arch, not GGUF-compatible
Nemotron-Diffusion🚫Diffusion model, not LLM
Gemma4 26B benchmark🔄Downloaded (15.4 GB), C forward not compatible

4. ✅ Zig vs C Analysis

Full analysis in ZIG_ANALYSIS.md. Recommendation: Keep C engine for existing OMP-dependent code. Use Zig for new kernel development (quant formats, validation, CLI tools). The OpenMP gap (Zig has no built-in parallel for) is the main blocker for a full rewrite.

5. 🔄 Gemma4 26B Benchmark

Current Model Benchmarks

Working (all produce correct output)

Modeltok/sNotes
TinyLlama 1.1B Q8_0~37.5Dense baseline
GPT-OSS-20B Q4_K_M23.6MoE working, F32 MXFP4 path
Qwen3.6-35B A3B Q4_K_M19.3Hybrid SSM+Attn, MoE working
ZAYA1-8B Q4_K_M18.9Python forward, meets >15 target

Not Working

ModelIssueFix Needed
Gemma4 E4B Q4_K_MC segfaultFix gemma4_forward_c for this arch
Gemma4 26B MXFP4C segfaultNew C forward or fix existing

To Reach 100% (Remaining 3 Items)

  1. GPT-OSS 30 tok/s (current 23.6 → need +27%): Fix MXFP4 Q8 matmul to eliminate F32 slow path. The mxfp4_row_dot_q8 produces NaN on 2880-dim experts — needs root cause fix in the AVX2 intrinsics.
  2. Gemma4 26B forward: Write a Python-only forward that handles Gemma4's custom attention (per-layer head dims, sliding window, GeLU activation) using existing quant_matmul_omp calls. ~300 lines Python.

  3. C batch forward correctness: Debug why qwen36_batch_forward produces different first-token output than Python forward. Likely a dimension or parameter wiring issue in the BC struct.

All three are substantial engineering tasks. Items 1 and 3 are optimization/correctness on working paths. Item 2 is enabling a new model.