Instructions to use google/gemma-4-E2B-it-assistant with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/gemma-4-E2B-it-assistant with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("google/gemma-4-E2B-it-assistant") model = AutoModelForCausalLM.from_pretrained("google/gemma-4-E2B-it-assistant", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Up to 4.23x faster inference with a DSpark draft model for gemma-4-E2B-it (167 --> 709 tokens/s; beats MTP on 7/9 benchmarks)
#3 opened 14 days ago
by
rasyosef
Up to 3.74x faster inference with a DFlash2 speculative decoding draft model for gemma-4-E2B-it (167 --> 626 tokens/s)
#2 opened about 1 month ago
by
rasyosef