Google's Gemma 4 E2B it as a 4-bit MNN bundle, with its vision and audio encoders, for chatting on your phone with TokForge.
Published by TokForge for on-device inference.
| What it is | Vision chat model (text + images) |
| Format | MNN bundle, 4-bit HQQ weights (block 64), with vision and audio encoders |
| Runs on | Android phones (CPU); also listed in TokForge for iOS |
| Phone class | 8 GB RAM or more (TokForge catalog) |
| Download | 3.74 GB (12 files) |
| Base model | google/gemma-4-E2B-it |
| License | Apache-2.0 |
Runs on-device in the TokForge app.
To run it outside TokForge, build MNN with LLM support and use its llm_demo tool
(see the MNN-LLM docs):
# clone MNN source
git clone https://github.com/alibaba/MNN.git
# compile
cd MNN
mkdir build && cd build
cmake .. -DMNN_LOW_MEMORY=true -DMNN_CPU_WEIGHT_DEQUANT_GEMM=true -DMNN_BUILD_LLM=true -DMNN_SUPPORT_TRANSFORMER_FUSE=true
make -j
# run
./llm_demo /path/to/gemma-4-E2B-it-MNN/config.json prompt.txt
Collections: TokForge Chat Models (MNN), TokForge Gemma Models (MNN), TokForge Vision Models.
| File | Size | What it is |
|---|---|---|
audio.mnn |
1.43 MB | Audio encoder graph |
audio.mnn.weight |
590 MB | Audio encoder weights |
config.json |
678 B | MNN runtime settings |
export_args.json |
1.06 KB | Export settings used for the conversion |
llm.mnn |
2.28 MB | Model graph |
llm.mnn.json |
4.90 MB | Model graph as JSON (reference copy) |
llm.mnn.weight |
1.44 GB | Model weights |
llm_config.json |
1.28 KB | Model settings and chat template |
ple_embeddings_int4.bin |
1.47 GB | Per-layer embeddings (int4) |
tokenizer.mtok |
10.1 MB | Tokenizer |
visual.mnn |
1.06 MB | Vision encoder graph |
visual.mnn.weight |
226 MB | Vision encoder weights |
Gemma 4 E2B it is the smallest instruction-tuned Gemma 4 model from Google. Next to the language model it has a vision encoder and an audio encoder; this bundle carries all three.
| Architecture | Gemma 4 (35 layers, hidden size 1536, sliding-window and full attention) |
| Quantization | 4-bit HQQ weights, block size 64; per-layer embeddings 4-bit in ple_embeddings_int4.bin |
| Encoders | Vision (visual.mnn) and audio (audio.mnn) |
| Chat template | Gemma 4 turn format, in llm_config.json |
On Android, TokForge reads photos you attach to a chat with this bundle's own vision encoder. Gemma 4's audio encoder is included as well.
TokForge applies these by itself on Android; you do not need to set them.
| Setting | Value |
|---|---|
| Backend | CPU |
| Precision | Normal or higher (TokForge raises Low to Normal for Gemma 4) |
| KV cache | Default (no quantized KV cache for Gemma 4) |
| Thinking | Off |
| Speculative decoding | Off |
This is the MNN export of Gemma 4 E2B it made by the taobao-mnn team with MNN's
llmexport: 4-bit HQQ weights with block size 64 and
4-bit embeddings (export_args.json records the settings). Most files here are byte-identical to their
taobao-mnn/gemma-4-E2B-it-MNN repo.
Apache-2.0, as Google releases Gemma 4 (license).
Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo darkmaniac7/Gemma-4-E2B-it-MNN ./model-foldergoogle/gemma-4-E2B-it