Maple
Fit a large MoE model into limited GPU memory by removing experts used less often in the target domain.
What does it do?
MAPLE passes calibration data made up of technical, algorithmic, and reasoning tokens through Gemma 4, recording how often each expert is selected per token and the size of its activation. Based on those results, it removes 80 less-active experts from each layer and adjusts the router for the 48 retained experts. It quantizes the retained weights using importance information and packages them into a single 4.75GB binary. The provided reference result shows the model running entirely in GPU memory on a 6GB laptop GPU. Results depend on the calibration data, and the page states that multilingual performance outside the target domain declines.
Key features
- Measure expert selection frequency per token and activation size using calibration data
- Remove less-active experts and adjust the router for the retained experts
- Quantize retained weights into a single 4.75GB binary
- Provide results for running the Gemma 4 26B reference implementation on a 6GB GPU