Repository navigation
[Showcase] MAPLE: Sub-2-BPW Pruning of Gemma 4 26B-A4B for 100% In-VRAM GPU Execution on 6GB VRAM (45.4 TPS) #31869
AmSach
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi llama.cpp community,
We wanted to share MAPLE (Manifold-Activated Pruning of Latent Experts), a post-training compression pipeline specifically created to solve the consumer VRAM bottleneck on fine-grained Mixture-of-Experts (MoE) architectures like Gemma 4 26B-A4B.
The Hardware Bottleneck on 6GB Laptop GPUs:
In its unpruned state (128 routed experts, 30 layers), even at extreme
IQ2_XXSquantization, Gemma 4 26B requires 9.92 GB of memory. On consumer 6GB GPUs (such as an RTX 4050 Laptop GPU):The MAPLE 48-Expert Container:
Instead of uniform pruning, MAPLE profiles empirical forward-pass expert activations via
$$s_{e,l} = C_{e,l} \cdot \sqrt{\bar{\sigma}_{e,l} + \epsilon}$$
llama-imatrixon a domain calibration corpus. Each expert is scored via a composite frequency-energy metric:By slicing away 80 dormant experts per layer along expert axis 0 (
ffn_down_exps,ffn_gate_up_exps) while locking layer scales at 1.0x, the resulting 48-expert container captures 79.88% of active forward-pass activation mass:Run Directly via llama.cpp:
Feedback, benchmarks, and community tests are welcome!
All reactions