--- language: en library_name: mlx tags: - mlx - mtp - speculative-decoding - draft-model base_model: - google/gemma-4-31B-it pipeline_tag: image-text-to-text --- # Gemma-4-31B MTP See Gemma-4-31B in action: [demonstration videos](https://youtube.com/xcreate) This draft model contains the **Multi-Token Prediction (MTP)** layers from **[google/gemma-4-31B-it-assistant](https://huggingface.co/google/gemma-4-31B-it-assistant)** for use alongside the [Gemma-4-31B-MLX](https://huggingface.co/models?search=inferencerlabs/gemma-4-31b-mlx) model as a speculative decoder for improved performance. Q4.5-bit quant typically achieves higher throughput with less RAM usage at no loss in quality in our coding test. #### Tested on a M3 Ultra 512GB RAM using [Inferencer app v1.11.5](https://inferencer.com)
| Without decoder | ~15.7 tokens/s ~34.8 GiB (debug build) |
| With decoder | ~34.7 tokens/s ~34.8 GiB (debug build) |
Enable speculative decoding in Inference Contols: