Views
No views yet
pip install -U mlx-vlmGemma 4 support requiresmlx-vlm >= 0.4.3. Standardmlx-lmdoes not yet support thegemma4architecture.
1python -m mlx_vlm generate \
2 --model TxemAI/gemma-4-31B-uncensored-heretic-mlx-4bit \
3 --prompt "Your prompt here" \
4 --max-tokens 5121python -m mlx_vlm generate \
2 --model TxemAI/gemma-4-31B-uncensored-heretic-mlx-4bit \
3 --prompt "Describe this image." \
4 --image path/to/image.jpg \
5 --max-tokens 5121from mlx_vlm import load, generate
2
3model, processor = load("TxemAI/gemma-4-31B-uncensored-heretic-mlx-4bit")
4
5response = generate(
6 model,
7 processor,
8 prompt="Your prompt here",
9 max_tokens=512,
10 temperature=0.7,
11)
12print(response)| Precision | Peak RAM | Gen speed | Quality |
|---|---|---|---|
| BF16 (full) | ~62 GB | slowest | reference |
| Q8 | ~34 GB | ~14.5 tok/s | near-lossless |
| Q4 (this model) | ~29 GB | ~16.9 tok/s | good |
<|channel>thought) on reasoning-heavy prompts — this is expected behaviour.1python -m mlx_vlm convert \
2 --hf-path llmfan46/gemma-4-31B-it-uncensored-heretic \
3 --mlx-path ./gemma-4-31B-uncensored-heretic-mlx-4bit \
4 --quantize --q-bits 4