Instructions to use ToPo-ToPo/gemma-4-26B-A4B-it-mlx-6bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use ToPo-ToPo/gemma-4-26B-A4B-it-mlx-6bit 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("ToPo-ToPo/gemma-4-26B-A4B-it-mlx-6bit") config = load_config("ToPo-ToPo/gemma-4-26B-A4B-it-mlx-6bit") # 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) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use ToPo-ToPo/gemma-4-26B-A4B-it-mlx-6bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "ToPo-ToPo/gemma-4-26B-A4B-it-mlx-6bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ToPo-ToPo/gemma-4-26B-A4B-it-mlx-6bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use ToPo-ToPo/gemma-4-26B-A4B-it-mlx-6bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "ToPo-ToPo/gemma-4-26B-A4B-it-mlx-6bit"
Configure Hermes
# 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 ToPo-ToPo/gemma-4-26B-A4B-it-mlx-6bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ToPo-ToPo/gemma-4-26B-A4B-it-mlx-6bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "ToPo-ToPo/gemma-4-26B-A4B-it-mlx-6bit"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "ToPo-ToPo/gemma-4-26B-A4B-it-mlx-6bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
ToPo-ToPo/gemma-4-26B-A4B-it-mlx-6bit
MLX 6bit conversion of google/gemma-4-26b-a4b-it (Gemma 4 26B-A4B, MoE / 128 experts), made with mlx-vlm 0.6.6.
Provenance (self-converted, re-quantized)
- Source:
ToPo-ToPo/gemma-4-26B-A4B-it-mlx-8bit, dequantized to bf16 and quantized again to 6 bits. It was not made from the original bf16 weights, so the weights went through two rounding steps. - Quantization: 6-bit affine (group_size=64, ~6.72 bpw). The MoE router projections stay at 8 bits, as in the 4bit / 8bit conversions.
- Tool: mlx-vlm 0.6.6 (
mlx_vlm convert -d, then-q --q-bits 6 --q-group-size 64). The conversion stopped at the processor save step (the copiedtokenizer.jsonwas read-only) before writing the quantization block, so thequantization/quantization_configentries inconfig.jsonwere added by hand (same layout as the 4bit conversion, withbits: 6). - Validated: loads and answers in Japanese under mlx-vlm 0.6.6.
Measurements (Apple Silicon, mlx-vlm 0.6.6, same prompt)
| 8bit | 6bit | |
|---|---|---|
| Peak memory | 28.0 GB | 21.7 GB |
| Generation | 11.6 tok/s | 6.1 tok/s |
In our agent evaluation (tool calling, multi-step CAD/CAE jobs) this 6bit build completed the tasks but was about half as fast as the 8bit build and made one path-copying mistake in a report, so we kept using 8bit.
Usage
from mlx_vlm import load
model, processor = load("ToPo-ToPo/gemma-4-26B-A4B-it-mlx-6bit")
- Downloads last month
- 197
Model size
26B params
Tensor type
U32
Β·
BF16 Β·
Hardware compatibility
Log In to add your hardware
6-bit