Model Compression Reduces VRAM Usage for Large Language Models
The Maple method achieves sub-2-bits-per-weight compression for MoE LLMs, reducing Gemma 4 26B-A4B's VRAM usage from 9.92 GB to 4.75 GB, enabling execution on 6 GB laptop GPUs.
Model Compression and VRAM Optimization
Model compression techniques are enabling significant reductions in VRAM usage for large language models (LLMs), making high-capacity models more accessible on consumer hardware. The Maple method, described in MAPLE: Manifold-Activated Pruning of Latent Experts, achieves sub-2-bits-per-weight (BPW) structural compression for Mixture-of-Experts (MoE) LLMs. By compressing Gemma 4 26B-A4B from 9.92 GB to 4.75 GB (1.48 effective bits/param), Maple enables full in-VRAM execution on 6 GB laptop GPUs with a throughput of 45.4 tokens per second (TPS). This is accomplished by excising 80 dormant multilingual and general conversational experts, preserving the active 48-expert manifold for deductive reasoning and syntax generation. The pre-built 4.75 GB GGUF container is available on Hugging Face, with direct execution supported via llama.cpp for low-latency inference on consumer-grade hardware.
Pruning Pipeline and Domain-Specific Customization
The Maple pruning pipeline offers a domain-agnostic approach to optimizing Mixture-of-Experts (MoE) models for specialized applications. As outlined in the project's documentation, the process begins with calibration, where users execute engine/maple_profile.py using a custom text corpus to assess routing frequency and activation energy via llama-imatrix. Next, the pipeline selects experts based on a composite energy metric, generating an expert selection map in engine/expert_selection_map.json. Finally, the container assembly phase uses engine/maple_build.py to construct a sub-2-BPW GGUF container optimized for 100% in-VRAM edge execution. This method enables domain-specific customization without requiring modifications to the core pruning logic, making it adaptable to fields such as medicine, finance, and legal analysis.
Technical Implementation and Performance Metrics
MAPLE employs a composite frequency-energy metric to identify and prune dormant experts in the Gemma 4 26B-A4B model, reducing the number of experts from 128 to 48 across 30 layers while retaining 79.88% of the activation mass. This metric is defined as $s_{e,l} = C_{e,l} \\_\cdot \\_\sqrt{\bar{\sigma}_{e,l} + \\_\epsilon}$, where $C_{e,l}$ represents the empirical token activation frequency and $\bar{\sigma}_{e,l}$ is the mean input channel activation energy. To mitigate the effects of softmax denominator shrinkage across layers, MAPLE applies a cascaded normalization suppression by multiplying expert scales by $0.795$, resulting in a cumulative suppression factor of approximately $0.001$ over 30 layers. However, the implementation also introduces challenges, such as the DRY Sampler Interference, where the --dry-allowed-length 2 penalty inadvertently disrupts Python syntax by penalizing essential 2-character keywords.
Sources and reporting notes
Based on published source material. No independent hands-on testing is claimed.