maple
A compression pipeline that removes inactive experts from MoE language models for a specific domain.
What does it do?
MAPLE measures each expert’s activation during actual inference and chooses which experts to retain using a score that combines frequency and energy. In a published example tailored to Python programming, algorithms, and STEM reasoning, it produced a GGUF model of Gemma 4 26B-A4B by removing 80 experts from each layer and retaining 48. The provided 4.75GB model can be downloaded from Hugging Face and run with llama.cpp.
Key features
- Measure expert activation during inference to select pruning targets
- Provide scripts to remove experts from MoE models for a specific domain
- Provide a 4.75GB GGUF model for Python, algorithm, and STEM reasoning
- Download the model from Hugging Face and run it with llama.cpp