Downloads · 30 days
0
NZM0/gemma-4-E2B-it-webgpu-w4
gemma-4-E2B-it-webgpu-w4 is a text generation model from NZM0. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
A text-only, browser-oriented distribution derived from Google DeepMind's official QAT W4A16 checkpoint:
Downloads · 30 days
0
Access
Public
Updated Aug 22, 2026
Repo size
3.2 GB
Likes
0
Public
Click a slice to open those files.
.safetensors1.9 GB · 58%
From the Hugging Face model README
A text-only, browser-oriented distribution derived from Google DeepMind's official QAT W4A16 checkpoint:
Base model: google/gemma-4-E2B-it-qat-w4a16-ct
This distribution is designed for the Gemma 4 JavaScript runtimes in:
Runtime / source code: https://github.com/NZM0/gemma4-js
Important: This is not a standard Transformers checkpoint.
AutoModel.from_pretrained()is not expected to load this distribution.
google/gemma-4-E2B-it-qat-w4a16-ctThe original checkpoint is published by Google DeepMind on Hugging Face.
This repository contains a derivative distribution of the original checkpoint. The following changes were made:
lm_head.weight that is not used by this runtime.model.language_model.embed_tokens_per_layer.weight
(the per-layer embedding / PLE tensor) from BF16 to signed symmetric W4.[-7, 7].32.No additional training or fine-tuning was performed.
core.safetensors
ple-w4/
├── manifest.json
├── ple-00000-of-00064.bin
├── ple-00001-of-00064.bin
├── ...
└── ple-00063-of-00064.bin
Approximate model-data size:
| Component | Approximate size |
|---|---|
| CORE | 1.73 GiB |
| PLE W4 | 1.23 GiB |
| Total | 2.96 GiB |
The source PLE tensor has shape:
[262144, 8960]
and is stored as BF16 in the original checkpoint.
This distribution stores it as:
signed symmetric W4
integer range: [-7, 7]
group size: 32
scale dtype: BF16
zero point: none
The original PLE occupies approximately 4.38 GiB. The W4 representation, including BF16 scales, occupies approximately 1.23 GiB.
This distribution is intended for the accompanying Gemma 4 JavaScript runtimes.
The project currently includes:
The Custom WebGPU runtime supports both local-file loading and remote loading from a Hugging Face repository.
For remote loading, use this repository's resolve URL as the model base URL:
https://huggingface.co/NZM0/gemma-4-E2B-it-webgpu-w4/resolve/main
See the runtime repository for complete usage instructions.
This is a text-only distribution.
Vision and Audio components present in the original multimodal Gemma 4 checkpoint are intentionally not included.
This repository is a custom browser-oriented model-data format.
It is not intended to be loaded directly with standard Transformers, vLLM, or Compressed Tensors APIs.
The base checkpoint google/gemma-4-E2B-it-qat-w4a16-ct is published under the
Apache License 2.0.
This derivative distribution is provided under the Apache License 2.0.
See LICENSE for the complete license text.
The modifications made to the original checkpoint are documented in Modifications from the original checkpoint above.
Gemma is a trademark of Google LLC. Use of the Gemma name here is solely to identify the upstream model from which this distribution was derived.
This project is not affiliated with or endorsed by Google or Google DeepMind.