Show HN: Maple – Sub-2-BPW Moe Pruning to Run Gemma 4 26B at 45 TPS on a 6GB GPU...

@show

Show HN: Maple – Sub-2-BPW Moe Pruning to Run Gemma 4 26B at 45 TPS on a 6GB GPU github.com · 4 points · 1 comments · HN thread

TL;DR Aman Sachan's MAPLE project prunes Gemma 4 26B-A4B (a mixture-of-experts model) from 128 to 48 routed experts per layer, cutting the GGUF file from 9.92 GB to 4.75 GB so it fits entirely in a 6 GB laptop GPU. The author reports 45.4 tokens/second versus 6.9 for the unpruned model offloaded partially, with an average 93.8% fidelity on four small coding and reasoning tests. The pruning is tuned for Python, algorithms and STEM reasoning, and the repo includes the scripts and a Hugging Face upload.

  • Removes 80 of 128 routed experts per layer, keeping 48, which the author says captures 79.88% of forward-pass activation mass on a calibration corpus of about 1,979 tokens.
  • Expert importance is scored with a composite of routing frequency and mean input activation energy, profiled with llama-imatrix.
  • Reported result: 4.75 GB file (1.48 effective bits per parameter), 100% of layers in VRAM, 45.4 tokens/s and 22.0 ms per token, versus 6.9 tokens/s with 16 of 30 layers offloaded for the original.
  • Fidelity on four small tests (Fibonacci, binary search tree, Rayleigh scattering, syllogisms) averages 93.8%; the BST test drops to 75% with short context.
  • The author lists failure modes: a layer-0 embedding proxy for routing failed, scaling expert outputs compounded to near zero, and the DRY sampler broke Python syntax.
  • The method is described as domain-agnostic, so users can recalibrate for other fields using their own corpus.

Discussion The thread is essentially empty: a single top-level comment with no replies. It is enthusiastic, welcoming the work as another step toward local LLM inference on modest consumer GPUs. No critical or technical questions about the benchmarks, the small test suite, or the quality tradeoffs were raised.

  • Welcomes local inference on low-VRAM consumer GPUs (most): The only commenter praises the project as a step forward for running capable models locally on constrained hardware. No one has yet tested the claims or questioned the methodology.

#MoEPruning #LocalLLM #Gemma4 #Quantization #GGUF #ShowHN