Gemma-4-E2B-it-GPTQ-Multimodal-a16w4
Compiled Gemma 4 E2B instruction model for SiMa Modalix, with text, image and audio input and text output. Part of the Neat 0.6.0 test collection.
Build settings
- Context: 4,096 tokens; n128 prefill.
- Vision input: 480 × 480.
- Audio input: up to 30 seconds per clip; 16 kHz mono; 12 compiled audio layers.
- Decoder, PLE projections and untied LM head: symmetric GPTQ INT4 G256.
- Vision/audio encoder and projector Linear weights: symmetric RTN INT8 per output channel; small audio convolutions remain BF16.
- INT8 embedding tables and KV cache; language filter sharing enabled automatically.
- Model SDK 3.0.0; exact source/build provenance in compilation.json and recipe.yaml.
Runtime requirement: a matching LLiMa runtime with the Gemma 4 audio-support implementation.
This build includes local changes on feature/327-gemma4-audio; the recorded base commit alone does not include those changes.
Download and run
hf download simaai/Gemma-4-E2B-it-GPTQ-Multimodal-a16w4 --local-dir Gemma-4-E2B-it-GPTQ-Multimodal-a16w4
llima run ./Gemma-4-E2B-it-GPTQ-Multimodal-a16w4
The unpacked package contains devkit/ and elf_files/, including 214 MLA executables.
compile.sh records the compilation command; set MODEL_DIR to the matching prequantized checkpoint.
The prequantized input used here is models--simaai--Gemma-4-E2B-it-GPTQ-Multimodal-Safetensors and is not linked to a published Hub repository.
Validation
Full compilation completed with exit code 0. Local llima-deploy unpacking completed and all ELF files were checked.
Uploaded file contents are verified against Hub checksums. Modalix runtime generation and latency have not been tested.
The preceding GPU weight-quantization comparison used identical inputs, greedy decoding and reasoning disabled. These results do not include SiMa activation quantization or compiled-model execution:
| Evaluation | Original BF16 | Quantized |
|---|---|---|
| Vision | 23/34 | 23/34 |
| High-resolution OCR | 6/6 | 6/6 |
| Short text | 10/20 | 10/20 |
| Hard text, up to 4K context | 6/18 | 5/18 |
| Mean language CER, 400 audio clips (lower is better) | 7.59% | 8.96% |
The hard-text set repeats four tasks at different lengths; it is a small diagnostic suite. See evaluation.json for scope and scoring details.
Base model: google/gemma-4-E2B-it. The source model's Apache 2.0 license applies.
Recompilation
To build for an 8,192-token context, recompile the matching source checkpoint with this repository's compile.sh in a compatible SiMa Model Compiler and LLiMa compilation environment. Change --max_num_tokens 4096 to --max_num_tokens 8192 in the script, then follow its source-checkpoint and output-directory instructions.
The context budget includes input and generated tokens. A larger context increases KV-cache memory requirements and must fit the target device. The downloadable artifacts use a 4,096-token context; any performance measurements in this card refer to that build.