Downloads · 30 days
248
5% of all-time downloads
mlx-community/gemma-4-12b-coder-fable5-composer2.5
gemma-4-12b-coder-fable5-composer2.5 is a text generation model from mlx-community. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as apache-2.0.
Added a Jinja chat template so the model can format conversations correctly and work smoothly with mlx-lm chat-style inference.
Downloads · 30 days
248
5% of all-time downloads
All-time downloads
4.8K
Public
Parameters
11.9B
47.7 GB on disk
Likes
5
Public
Click a slice to open those files.
.safetensors23.8 GB · 100%
From the Hugging Face model README
Added a Jinja chat template so the model can format conversations correctly and work smoothly with mlx-lm chat-style inference.
This repository contains a non-quantized MLX-converted version of yuxinlu1/gemma-4-12B-coder-fable5-composer2.5-v1.
The model has been converted to MLX format for local inference on Apple Silicon Macs using the mlx-lm library.
Install the required dependency:
pip install --upgrade mlx-lm
Run inference from Python:
from mlx_lm import load, generate
# Load the non-quantized MLX model.
model, tokenizer = load("mlx-community/gemma-4-12b-coder-fable5-composer2.5")
prompt = "Write a Python script to sort a dictionary by its values."
messages = [{"role": "user", "content": prompt}]
formatted_prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
)
response = generate(
model,
tokenizer,
prompt=formatted_prompt,
verbose=True,
max_tokens=1024,
)
response = generate(
model,
tokenizer,
prompt=formatted_prompt,
verbose=True,
max_tokens=1024,
temp=0.0,
)
google/gemma-4-12B-ityuxinlu1/gemma-4-12B-coder-fable5-composer2.5-v1Free to use, modify, and redistribute under the Apache 2.0 license.