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 / .hermes / debug-logs / 2026-05-22_mojollama-opt-session.md

32 lines · 1520 bytes Raw Blame History Source

Debug Log: 2026-05-22

Goal: MojoLlama beats llama.cpp on every model

Progress

Baselines (post-optimizations)

ModelMojoLlamallama.cppRatioNotes
Qwen3.6-35B Q4_K_M19.6 tok/s16.23121% 🏆Python engine, fused SSM path
GPT-OSS-20B Q4_K_M23.6 tok/s27.5386% ❌Behind — needs C batch forward
Qwen3-30B Q4_K_M22.6 tok/s27.8181% ❌Behind — needs C batch forward

Changes Applied

  1. batch_matmul() → quant_matmul_omp() — C matmul dispatch now uses Q8_0 activation VPMADDUBSW
  2. ssm_layer_fused() — new C function fusing SSM decode + gate + element_mul + out + residual
  3. qwen36_batch_forward() — full C batch forward (370 lines, implemented by OpenCode)
  4. forward_c_batch() + _init_c_batch_caches() — Python wrapper for C forward

Working

Not Working

Next Steps

  1. Debug qwen36_batch_forward C function (param passing, buffer sizes, pointer alignment)
  2. Fix GPT-OSS gap — separate Q/K/V weights, no fused QKV, needs different C path
  3. Fix Qwen3-30B gap — MoE bottleneck, 288 OMP regions/layer saturates cores
  4. Batch B=4 concurrency