Downloads · 30 days
36
6% of all-time downloads
mach-kernel/gemma-3-12b-it-antislop-4b-mlx
gemma-3-12b-it-antislop-4b-mlx is a text generation model from mach-kernel. Use it when you need the model to write or continue text. It is set up for mlx.
MLX-optimized quantized version of sam-paech/gemma-3-12b-it-antislop for Apple Silicon.
Downloads · 30 days
36
6% of all-time downloads
All-time downloads
583
Public
Parameters
12.8B
15.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.8 GB · 99%
How the weights are stored.
U3212.8B · 100%
From the Hugging Face model README
MLX-optimized quantized version of sam-paech/gemma-3-12b-it-antislop for Apple Silicon.
| Setting | Value |
|---|---|
| Method | Mixed-precision (4-bit + 6-bit) |
| Predicate | mixed_4_6 |
| Group Size | 32 |
| Avg Bits/Weight | ~4.9 |
| mlx-lm Version | 0.24.1 |
Why mixed_4_6? This quantization strategy keeps sensitive layers at 6-bit precision while using 4-bit for less critical layers, providing better accuracy than uniform 4-bit quantization with minimal size increase.
Why group-size 32? Smaller group sizes (32 vs default 128) provide finer granularity during quantization, reducing quality loss at a slight memory overhead.
mlx_lm.convert \
--hf-path sam-paech/gemma-3-12b-it-antislop \
--mlx-path ./output \
-q \
--quant-predicate mixed_4_6 \
--q-group-size 32
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("mach-kernel/gemma-3-12b-it-antislop-4b-mlx")
prompt = "hello"
if tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)
This is a quantized version of gemma-3-12b-it-antislop, a Gemma 3 12B instruct model fine-tuned to reduce repetitive/cliche language patterns ("slop").