How to use from the
Use from the
MLX library
# Make sure mlx-lm is installed
# pip install --upgrade mlx-lm

# Generate text with mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("kloodia/gemma-4-e4b-executorch")

prompt = "Write a story about Einstein"
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True
)

text = generate(model, tokenizer, prompt=prompt, verbose=True)

Gemma 4 E4B — ExecuTorch MLX

Text decoder of google/gemma-4-E4B-it, exported for React Native ExecuTorch (MLX, iOS).

File Role
mlx/gemma4_e4b_mlx_int4.pte MLX program, 4-bit linears, context 2048, prefill chunk 64
tokenizer.json Hugging Face tokenizer
tokenizer_config.json Tokenizer config

Audio and vision encoders are not included.

Downloads last month
15
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for kloodia/gemma-4-e4b-executorch

Quantized
(397)
this model