Downloads · 30 days
50
3% of all-time downloads
TxemAI/gemma-4-31B-uncensored-heretic-mlx-4bit
gemma-4-31B-uncensored-heretic-mlx-4bit is a machine learning model from TxemAI. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for mlx-vlm. The card lists the license as apache-2.0.
MLX conversion of llmfan46/gemma-4-31B-it-uncensored-heretic, a fine-tune of Google's Gemma 4 31B Instruct. Quantized to ~7.4 bits per weight using mlx-vlm v0.4.3 on Apple Silicon.
Downloads · 30 days
50
3% of all-time downloads
All-time downloads
1.7K
Public
Parameters
31.3B
28.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors28.8 GB · 100%
How the weights are stored.
U3230.7B · 98%
From the Hugging Face model README
MLX conversion of llmfan46/gemma-4-31B-it-uncensored-heretic, a fine-tune of Google's Gemma 4 31B Instruct. Quantized to ~7.4 bits per weight using mlx-vlm v0.4.3 on Apple Silicon.
If you have enough RAM, the Q8 version offers near-lossless quality.
pip install -U mlx-vlm
Gemma 4 support requires
mlx-vlm >= 0.4.3. Standardmlx-lmdoes not yet support thegemma4architecture.
Text only
python -m mlx_vlm generate \
--model TxemAI/gemma-4-31B-uncensored-heretic-mlx-4bit \
--prompt "Your prompt here" \
--max-tokens 512
With image
python -m mlx_vlm generate \
--model TxemAI/gemma-4-31B-uncensored-heretic-mlx-4bit \
--prompt "Describe this image." \
--image path/to/image.jpg \
--max-tokens 512
Python API
from mlx_vlm import load, generate
model, processor = load("TxemAI/gemma-4-31B-uncensored-heretic-mlx-4bit")
response = generate(
model,
processor,
prompt="Your prompt here",
max_tokens=512,
temperature=0.7,
)
print(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 |
Q4 is the recommended version for machines with 32 GB unified memory (M2/M3 Pro, M1 Max, M3 Max).
<|channel>thought) on reasoning-heavy prompts — this is expected behaviour.python -m mlx_vlm convert \
--hf-path llmfan46/gemma-4-31B-it-uncensored-heretic \
--mlx-path ./gemma-4-31B-uncensored-heretic-mlx-4bit \
--quantize --q-bits 4