Text Generation
MLX
Safetensors
gemma4
apple-silicon
quantized
mixed-precision
axquant
axq
development
gemma-4
4bit
4-bit precision
vision
Instructions to use AutomatosX/AX-gemma-4-12b-MLX-AXQ-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use AutomatosX/AX-gemma-4-12b-MLX-AXQ-4bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("AutomatosX/AX-gemma-4-12b-MLX-AXQ-4bit") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use AutomatosX/AX-gemma-4-12b-MLX-AXQ-4bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "AutomatosX/AX-gemma-4-12b-MLX-AXQ-4bit" --prompt "Once upon a time"
| { | |
| "ax_engine": { | |
| "decode_kernel": null, | |
| "fused_mtp": null, | |
| "kernel_evidence": "unmeasured", | |
| "model_manifest": "model-manifest.json", | |
| "preferred_group_size": 32 | |
| }, | |
| "compatible_runtimes": [ | |
| { | |
| "compatibility_level": "B", | |
| "manifest": "config.json", | |
| "mtp_support": "runtime-dependent", | |
| "name": "mlx-lm", | |
| "notes": [ | |
| "Standard backbone inference is the compatibility target.", | |
| "AXQuant MTP metadata may be ignored by MLX-LM." | |
| ], | |
| "standard_inference": true, | |
| "standard_mlx_weights": true, | |
| "support_level": "standard-inference" | |
| } | |
| ], | |
| "created_at": "2026-08-02T18:29:42.232556Z", | |
| "kv_cache": null, | |
| "memory_policy": { | |
| "kv_cache_precision": "runtime-default", | |
| "mtp_buffers": "not-required", | |
| "prefix_cache": "runtime-managed", | |
| "unified_memory_safety_margin": "benchmark-required" | |
| }, | |
| "mtp": { | |
| "acceptance_retention": null, | |
| "detected": false, | |
| "draft_tokens": null, | |
| "enabled_by_default": false, | |
| "head_precision": null, | |
| "measured_speedup": null, | |
| "optimized": false, | |
| "recommended_temperature_max": null, | |
| "sidecar_file": null, | |
| "verification_mode": null | |
| }, | |
| "optimization_scope": "text-path", | |
| "primary_runtime": { | |
| "compatibility_level": "A", | |
| "manifest": "model-manifest.json", | |
| "mtp_support": "native", | |
| "name": "ax-engine", | |
| "notes": [ | |
| "Runtime claims require a passing AX Engine doctor and benchmark report." | |
| ], | |
| "standard_inference": true, | |
| "standard_mlx_weights": true, | |
| "support_level": "optimized" | |
| }, | |
| "schema_version": "axquant.runtime.v1" | |
| } | |