Porting Stanford's Memorilla to 4-bit Gemma 4 on a Single Strix Halo—and a Shuffled-Doc Quirk
DataPhreak · reddit · 2026-11-25
- Background: Stanford SNAP's Memorilla is a 190M Perceiver module that compresses a question plus document embeddings into 16 soft memory tokens prepended to a frozen LLM; upstream only trained/tested it on full-precision Qwen3-8B across four H100s.
- What the author did: ported it to 4-bit Gemma 4 26B-A4B on a single AMD Strix Halo, releasing the adapter (Apache 2.0) on Hugging Face and open-sourcing training and verification code on GitHub with raw bench data.
- Evaluation: 500 test rows per benchmark, each run three ways with paired bootstrap 95% CIs — closed book (frozen 4-bit Gemma alone), wrong documents (right question, shuffled docs from another collection), and memory (question + right docs).
- Key finding: the shuffled-document control showed an interesting quirk that the original paper's main results table didn't cover; the author calls for testing the official Memorilla-Qwen3-8B checkpoint the same way.
- Code, training scripts, and the shuffled-doc eval harness are all open source.
More from Infra
- Omarchy now installs in under 5 seconds on AMD 495, DHH marvels at the optimization — AnushElangovan · 2026-11-25
- ERNIE 5.5 Flash Preview runs at 510 tok/s on 2x RTX PRO 6000 Blackwell — festr__ · 2026-11-25
- NVIDIA ships VeRL container on NGC with preinstalled deps for RL with vLLM — NVIDIAAI · 2026-11-25
- Home lab blues: electrician finally coming tomorrow to install a 30A circuit for GPU rack — TheZachMueller · 2026-11-25
- Dell's AI server backlog hits $132B, up 619% YoY, exceeding its entire annual revenue — BenBajarin · 2026-11-25
- Baseten ships read-only HF Trusted Publishers, first inference provider to pull private weights without long-lived tokens — baseten · 2026-11-25