Model guide
Gemma 3n E4B Instruct
Gemma 3n E4B is designed for device-oriented text, visual and audio input. The E4B label describes effective parameters, not the complete stored model, and support differs between native and converted workflows. Choose it for a supported multimodal application, not on the assumption that every local chat runner exposes its audio features.
At a glance
- Parameters
- 8B
- Accepts
- Text · Image · Audio · Video
- Returns
- Text
- Published context limit
- 32,768 tokens
- Model format
- safetensors · GGUF
- Software and download hosts
- Ollama · Transformers · MLX · llama.cpp · Google AI Edge. Follow the exact setup below; this list does not establish support for every format, input type or software version.
- Suggested compression
- Q4_K_M
- Model-weight download
- Q4_K_M weights · 4.24 GBbartowski (community conversion)google_gemma-3n-E4B-it-Q4_K_M.gguf
- Languages
- 140 languages for text · 35 languages for multimodal understanding, including audio tasks
- License
- Gemma Terms of Use
Will it fit?
Gemma 3n E4B Instruct · Q4_K_M download. Fit depends on your computer, the app you run it in and the conversation length you need. Audio processing and media companion files need additional memory.
Check on your computerBest for
- Rewrite an on-device notice into two short bullets while retaining its exception. The guide’s GGUF example exercises the text path.
Choose something else when
- For audio or pictures, use Google’s separate native processor workflow and budget that download.
Using image input
This GGUF walkthrough exercises text. Use the publisher’s processor and native model to try images.
Using audio
Use a client that supports this exact model's audio pipeline and the matching media companion when required. A text-only chat does not use speech. Measure peak memory for your audio workload.
First setup
Check a representative task
Use the text session from either the LM Studio or llama.cpp tab. This checks an instruction-following task without requiring a different multimodal download.
Turn this device notice into two bullet points, each under 15 words.
Keep the exception and do not invent opening hours.
Notice: The North entrance is closed on Tuesday. Use the South entrance.
Staff with a maintenance pass may still enter through the North entrance.
Check the result: one bullet directs ordinary visitors to the South entrance on Tuesday; the other preserves the maintenance-pass exception. No opening hours should be added.
This is a text-only check of the selected GGUF. To assess images or audio, use Google’s native Gemma 3n workflow with its processor and separately budgeted native model. Passing this prompt says nothing about those modalities.
This creates a 4,096-token copy of gemma3n:e4b named gemma-3n-e4b-it-short-context. Save the following as a file named Modelfile in your working folder:
FROM gemma3n:e4b
PARAMETER num_ctx 4096
Then run these commands from that folder:
ollama pull gemma3n:e4b
ollama create gemma-3n-e4b-it-short-context -f ./Modelfile
ollama run gemma-3n-e4b-it-short-context
Run the task check. While the model is loaded, run ollama ps in another terminal and check CONTEXT and PROCESSOR.
The recorded Ollama package is Q4_K_M: 7.63 GB of model weights and 2.14 GB of media companion weights. Use Ollama 0.40.0 or a supporting newer release. A Hugging Face GGUF or MLX checkpoint is a separate representation; choose the matching source and runner in the memory calculator.
See Ollama context settings and the Modelfile instructions.
Open LM Studio’s Discover tab, search for bartowski/google_gemma-3n-E4B-it-GGUF, and download google_gemma-3n-E4B-it-Q4_K_M.gguf (Q4_K_M, 4.24 GB). See the download files. Select the file in Chat, set context to 4,096, then load it. Run the text task check in this chat and compare the answer with the stated criteria. If it will not load, open LM Studio Model Will Not Load. This selected GGUF example checks text only. Google’s native Gemma 3n multimodal workflow uses separate processing components and must be planned separately.
Open a terminal in the extracted llama.cpp release folder. On Windows, replace ./llama-server below with .\llama-server.exe:
./llama-server -hf bartowski/google_gemma-3n-E4B-it-GGUF -hff google_gemma-3n-E4B-it-Q4_K_M.gguf --no-mmproj -c 4096 --host 127.0.0.1 --port 8080
The server downloads the selected model. Wait for the model to load, then open http://127.0.0.1:8080 in your browser. Run the text task check in the web interface. This selected download’s example is text-only; the check does not establish image or audio support. Keep the server terminal open; press Ctrl+C there to stop the server. The file list identifies the exact download. If the command fails: Unknown architecture? Update the runner. Allocation failed? Retry with less context or a smaller weight file.
The first command explicitly disables the image projector with --no-mmproj; the text result does not check image input.
The selected Gemma 3n GGUF repository does not identify a matching projector. Keep this download’s example text-only; do not attach images or audio and infer support from a text response. For multimodal input, use the Google Gemma 3n model card’s supported Transformers workflow with its processor and complete native model. That is a different download and memory workload. The llama.cpp multimodal instructions describe how to disable a projector explicitly.
Load the model, start a fresh chat and time your usual prompt. Record time until the first useful word and time until the full answer. Note the processor, context and output length when comparing another run. Use the same picture at the same resolution.
