gemma-4
Collection
in mxfp4, mxfp8, and Deckard(qx) • 28 items • Updated • 2
How to use nightmedia/gemma-4-26B-A4B-cosine-slerp-mxfp8-mlx with MLX:
# Make sure mlx-vlm is installed
# pip install --upgrade mlx-vlm
from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
from mlx_vlm.utils import load_config
# Load the model
model, processor = load("nightmedia/gemma-4-26B-A4B-cosine-slerp-mxfp8-mlx")
config = load_config("nightmedia/gemma-4-26B-A4B-cosine-slerp-mxfp8-mlx")
# Prepare input
image = ["http://images.cocodataset.org/val2017/000000039769.jpg"]
prompt = "Describe this image."
# Apply chat template
formatted_prompt = apply_chat_template(
processor, config, prompt, num_images=1
)
# Generate output
output = generate(model, processor, formatted_prompt, image)
print(output)How to use nightmedia/gemma-4-26B-A4B-cosine-slerp-mxfp8-mlx with Pi:
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "nightmedia/gemma-4-26B-A4B-cosine-slerp-mxfp8-mlx"
# Install Pi:
npm install -g @mariozechner/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
"providers": {
"mlx-lm": {
"baseUrl": "http://localhost:8080/v1",
"api": "openai-completions",
"apiKey": "none",
"models": [
{
"id": "nightmedia/gemma-4-26B-A4B-cosine-slerp-mxfp8-mlx"
}
]
}
}
}# Start Pi in your project directory: pi
How to use nightmedia/gemma-4-26B-A4B-cosine-slerp-mxfp8-mlx with Hermes Agent:
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "nightmedia/gemma-4-26B-A4B-cosine-slerp-mxfp8-mlx"
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default nightmedia/gemma-4-26B-A4B-cosine-slerp-mxfp8-mlx
hermes
Brainwaves
arc arc/e boolq hswag obkqa piqa wino
mxfp8 0.488,0.652,0.868,0.588,0.398,0.733,0.642
qx86-hi 0.491,0.649,0.871,0.578,0.394,0.723,0.629
qx64-hi 0.496,0.662,0.866,0.578,0.404,0.726,0.642
mxfp4 0.507,0.675,0.855,0.586,0.376,0.718,0.639
Baseline model
arc arc/e boolq hswag obkqa piqa wino
gemma-4-26B-A4B-it
mxfp8 0.454,0.598,0.871,0.582,0.394,0.723,0.645
qx86-hi 0.472,0.605,0.873,0.565,0.386,0.712,0.644
qx64-hi 0.472,0.621,0.866,0.564,0.382,0.717,0.637
mxfp4 0.462,0.596,0.855,0.578,0.378,0.723,0.637
See parent model for instructions on install and use with Transformers.
-G
8-bit
Base model
aixsatoshi/gemma-4-26b-a4b-cosine-slerp