Views
No views yet
google/gemma-4-26B-A4B using mlx_lm.convert at full BF16 precision (no quantization). Refer to the original model card for more details on the model.google/gemma-4-26B-A4B (base, non-instruction-tuned)pip install -U mlx-lm1mlx_lm.generate \
2 --model your-username/gemma-4-26B-A4B-mlx \
3 --prompt "The future of AI is" \
4 --max-tokens 2561from mlx_lm import load, generate
2from mlx_lm.sample_utils import make_sampler
3
4model, tokenizer = load("your-username/gemma-4-26B-A4B-mlx")
5
6sampler = make_sampler(temp=1.0, top_p=0.95, top_k=64)
7
8response = generate(
9 model=model,
10 tokenizer=tokenizer,
11 prompt="The future of AI is",
12 max_tokens=256,
13 sampler=sampler,
14 verbose=True,
15)
16print(response["text"])Note: In currentmlx-lmversions, sampling parameters (temperature,top_p,top_k) must be passed via asamplerobject created withmake_sampler(), not as direct keyword arguments togenerate().
1mlx_lm.convert \
2 --hf-path google/gemma-4-26B-A4B \
3 --mlx-path models/gemma-4-26B-A4B-mlxgoogle/gemma-4-26B-A4B-it as the source instead.mlx-lm. For multimodal (image+text) support, use mlx-vlm with an MLX-converted instruction-tuned variant.