Downloads · 30 days
0
0% of all-time downloads
smdesai/gemma-4-E2B-coreml
gemma-4-E2B-coreml is a image-text-to-text model from smdesai. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Converted from google/gemma-4-E2B-it for on-device inference on Apple devices via CoreML.
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
96
Public
Repo size
12.8 GB
Likes
2
Public
Click a slice to open those files.
.bin26.8 GB · 100%
From the Hugging Face model README
Converted from google/gemma-4-E2B-it for on-device inference on Apple devices via CoreML.
| File | Size | Description |
|---|---|---|
model.mlpackage | 2.4 GB | Text decoder with stateful KV cache (int4 quantized) |
vision.mlpackage | 322 MB | Vision encoder (SigLIP-based, 16 transformer layers) |
model_config.json | — | Model configuration |
hf_model/tokenizer.json | 31 MB | Tokenizer |
import coremltools as ct
import numpy as np
# Load models
vision = ct.models.MLModel('vision.mlpackage')
decoder = ct.models.MLModel('model.mlpackage')
state = decoder.make_state()
# Process image → vision features → text generation
See CoreML-LLM for the full conversion pipeline and iOS sample app.
git clone https://github.com/john-rocky/CoreML-LLM
cd CoreML-LLM/conversion
pip install -r requirements.txt
python convert.py --model gemma4-e2b --context-length 512 --output ./output/gemma4-e2b