Views
No views yet
| Spec | Value |
|---|---|
| Base model | google/gemma-4-e2b-it |
| Architecture | Gemma 4 with Per-Layer Embeddings (PLE) |
| Parameters | 5.1B total, 2.3B active |
| Hidden size | 1536 |
| Layers | 35 |
| Attention heads | 8 (1 KV head) |
| Vocab size | 262,144 |
| Context window | 128K tokens |
| Quantization | 4-bit affine (group size 64) |
| Download size | 2.5 GB |
| License | Apache 2.0 |
google/gemma-4-e2b-it using mlx-lm with Gemma 4 support from ml-explore/mlx-lm PR #1095:python -m mlx_lm convert --hf-path google/gemma-4-e2b-it -q --q-bits 4 --mlx-path ./gemma-4-e2b-it-lm-4bit1from mlx_lm import load, generate
2
3model, tokenizer = load("jorch/gemma-4-e2b-it-lm-4bit")
4response = generate(model, tokenizer, prompt="What is machine learning?", verbose=True, max_tokens=512)1import MLXLLM
2import MLXLMCommon
3
4let configuration = ModelConfiguration(id: "jorch/gemma-4-e2b-it-lm-4bit")
5let container = try await LLMModelFactory.shared.loadContainer(configuration: configuration)mlx-community/gemma-4-e2b-it-4bit model was converted with mlx-vlm and includes vision/audio towers. That conversion is missing critical text model weights (norm, per_layer_projection_norm, per_layer_model_projection), making it incompatible with text-only LLM loaders.mlx-lm which properly extracts and preserves all 1,338 text model weight keys.