Instructions to use google/gemma-4-E4B-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/gemma-4-E4B-it with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("google/gemma-4-E4B-it") model = AutoModelForMultimodalLM.from_pretrained("google/gemma-4-E4B-it", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- AMD Developer Cloud
Commit History
-
fix: embed chat_template in tokenizer_config.json
Verified signatureThe `chat_template` field is missing from `tokenizer_config.json`. The template exists as a separate `chat_template.jinja` file, but `AutoTokenizer.from_pretrained()` only reads from `tokenizer_config.json`. This causes `apply_chat_template()` to fail in transformers.js and other non-Python tooling. Gemma 2 and Gemma 3 models include this field correctly. This PR embeds the existing `chat_template.jinja` content into `tokenizer_config.json` so tokenizers can find it without needing a separate file loader. Discovered while building [wandler](https://github.com/runpod-labs/wandler), an OpenAI-compatible inference server powered by transformers.js. See also: https://huggingface.co/google/gemma-4-E2B-it/discussions/8 (same fix for E2B by @piero-atelico)65dfb12
-
Update response schema (#16)
- Update response schema (1d9dc276ebaec3b1a92712a47a0a1e54e38a5b84) Co-authored-by: Matthew Carrigan <Rocketknight1@users.noreply.huggingface.co>83df0a8
-
Preparing for release!
Co-authored-by: Rocketknight1 <Rocketknight1@users.noreply.huggingface.co> Co-authored-by: RyanMullins <RyanMullins@users.noreply.huggingface.co> Co-authored-by: pcuenq <pcuenq@users.noreply.huggingface.co> Co-authored-by: bebechien <bebechien@users.noreply.huggingface.co> Co-authored-by: osanseviero <osanseviero@users.noreply.huggingface.co> Co-authored-by: douglas reid <douglas reid@users.noreply.huggingface.co>292a7e2