Runs in the browser · Multimodal (any-to-any)
Run Gemma-4-E4B-it in your browser
Gemma-4-E4B-it downloads 4.07 GB over WebGPU (q4f16), or 3.18 GB over WebAssembly (q8), to handle text, image, and audio from one checkpoint entirely in the tab with Transformers.js. No install, no server.
Multimodal (any-to-any) · onnx-community/gemma-4-E4B-it-ONNX
- Parameters
- 8.00B
- Pipeline task
- custom
Reading
The E4B name is an effective/active-param label (like Gemma 3n), not the real stored parameter count: this checkpoint stores about 8.0B params, not 4B. Any-to-any multimodal generation (text, image and audio in and out) has no stable transformers.js pipeline() task yet; expect to wire the encoders and decoder manually. This is a multi-gigabyte download. Between the file size and current browser memory limits, it is impractical to run on most machines today.
The WASM build downloads smaller here: 3.18 GB (q8) against 4.07 GB (q4f16) for WebGPU. The CPU-fallback quant compresses tighter than the GPU pick for this model.
Will it run in your browser?
Checking for WebGPU support…
All measured variants
| Variant | Size |
|---|---|
| q8 WASM pick | 3.18 GB |
| q4 | 3.95 GB |
| fp16 | 4.06 GB |
| q4f16 WebGPU pick | 4.07 GB |
| fp32 | 6.09 GB |
Sizes measured from the HuggingFace API file tree for onnx-community/gemma-4-E4B-it-ONNX, not estimated.
Use it with Transformers.js
There is no stable transformers.js pipeline() call for this model yet, and no verified low-level snippet either (see the Reading panel above). Check the model card on HuggingFace for current usage examples.
Sources
Same job, different size
FAQ
WebGPU or WASM for Gemma-4-E4B-it, in practice?
Chrome, Edge, and Safari 26+ run the WebGPU build (q4f16) on the GPU. Firefox has WebGPU on Windows and Apple Silicon Macs but not everywhere yet. Any browser without a WebGPU adapter falls back automatically to the WebAssembly build (q8) on CPU: same model, slower to load, slower to run.
What does q4f16 mean for Gemma-4-E4B-it?
The WebGPU build here uses q4f16: 4-bit weights with some layers kept at 16-bit for stability: WebGPU's usual smallest clean build. The WASM fallback uses q8: 8-bit integers: about a quarter the size of fp32, with a smaller quality trade than 4-bit.
Sizes measured 2026-08-01 from the HuggingFace API. Last validated 2026-08-03. See all browser models or the methodology.