Google's Gemma 4 E4B 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 | 12 GB RAM or more (TokForge for iOS catalog; the Android app does not list it today) |
| Download | 5.51 GB (12 files) |
| Base model | google/gemma-4-E4B-it |
| License | Apache-2.0 |
Runs on-device in the TokForge app.
Gemma-4-E4B-it-MNN and download it.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-E4B-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 |
593 MB | Audio encoder weights |
config.json |
693 B | MNN runtime settings |
export_args.json |
1.13 KB | Export settings used for the conversion |
llm.mnn |
3.46 MB | Model graph |
llm.mnn.json |
7.55 MB | Model graph as JSON (reference copy) |
llm.mnn.weight |
2.90 GB | Model weights |
llm_config.json |
1.42 KB | Model settings and chat template |
ple_embeddings_int4.bin |
1.76 GB | Per-layer embeddings (int4) |
tokenizer.mtok |
10.1 MB | Tokenizer |
visual.mnn |
1.06 MB | Vision encoder graph |
visual.mnn.weight |
227 MB | Vision encoder weights |
Gemma 4 E4B it is the larger of the two small instruction-tuned Gemma 4 models from Google. Next to the language model it has a vision encoder and an audio encoder; this bundle carries all three.
| Architecture | Gemma 4 (42 layers, hidden size 2560, 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 |
Exported by TokForge with MNN's llmexport
(TokForge's MNN build): 4-bit HQQ weights with block size 64 and 4-bit embeddings (export_args.json records the
settings). It uses the same file layout as taobao-mnn/gemma-4-E4B-it-MNN.
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-E4B-it-MNN ./model-foldergoogle/gemma-4-E4B-it