Instructions to use google/gemma-4-E2B-it-qat-mobile-transformers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/gemma-4-E2B-it-qat-mobile-transformers with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("google/gemma-4-E2B-it-qat-mobile-transformers", device_map="auto") - Notebooks
- Google Colab
- Kaggle
How do we use MTP for speculative decoding?
#6
by pythiccoder - opened
In the docs it says
Multi-Token Prediction: All Gemma 4 models (E2B, E4B, 12B, 31B, and 26B A4B) include a dedicated draft model for speculative decoding, enabling significantly faster inference with no quality loss.
how do we use this draft model in practice? Were these heads removed from the mobile quants?
pythiccoder changed discussion title from How do we use MTP? to How do we use MTP for speculative decoding?