Views
No views yet
google/gemma-4-E4B-it for Apple Silicon inference with mlx-lm.| Field | Value |
|---|---|
| Source model | google/gemma-4-E4B-it |
| Format | MLX safetensors |
| Weight dtype | bfloat16 |
| Tensor check | 665 tensors, all mlx.core.bfloat16 |
| Local conversion tool | mlx-lm |
| License | Apache 2.0 / Gemma license terms from upstream |
1mlx_lm.convert \
2 --hf-path google/gemma-4-E4B-it \
3 --mlx-path gemma-4-e4b-it-MLX-bf16 \
4 --dtype bfloat16pip install mlx-lm1from mlx_lm import load, generate
2
3model, tokenizer = load("majentik/gemma-4-e4b-it-MLX-bf16")
4
5messages = [{"role": "user", "content": "Explain Singapore's MRT system in one paragraph."}]
6prompt = tokenizer.apply_chat_template(
7 messages,
8 add_generation_prompt=True,
9 return_dict=False,
10)
11
12response = generate(model, tokenizer, prompt=prompt, max_tokens=256, verbose=True)
13print(response)majentik, such as: