Downloads · 30 days
23
4% of all-time downloads
abhiindian1986/gemma-4-26B-A4B-mlx
gemma-4-26B-A4B-mlx is a text generation model from abhiindian1986. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as gemma.
This model was converted to MLX format from google/gemma-4-26B-A4B using mlxlm.convert at full BF16 precision (no quantization). Refer to the original model card for more details on the model.
Downloads · 30 days
23
4% of all-time downloads
All-time downloads
631
Public
Parameters
25.2B
102 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors50.5 GB · 100%
From the Hugging Face model README
This model was converted to MLX format from 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-lm
mlx_lm.generate \
--model your-username/gemma-4-26B-A4B-mlx \
--prompt "The future of AI is" \
--max-tokens 256
from mlx_lm import load, generate
from mlx_lm.sample_utils import make_sampler
model, tokenizer = load("your-username/gemma-4-26B-A4B-mlx")
sampler = make_sampler(temp=1.0, top_p=0.95, top_k=64)
response = generate(
model=model,
tokenizer=tokenizer,
prompt="The future of AI is",
max_tokens=256,
sampler=sampler,
verbose=True,
)
print(response["text"])
Note: In current
mlx-lmversions, sampling parameters (temperature,top_p,top_k) must be passed via asamplerobject created withmake_sampler(), not as direct keyword arguments togenerate().
This model was converted with the following command:
mlx_lm.convert \
--hf-path google/gemma-4-26B-A4B \
--mlx-path models/gemma-4-26B-A4B-mlx
google/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.