Instructions to use divinetribe/gemma-4-12B-it-abliterated-4bit-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use divinetribe/gemma-4-12B-it-abliterated-4bit-mlx with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("divinetribe/gemma-4-12B-it-abliterated-4bit-mlx") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use divinetribe/gemma-4-12B-it-abliterated-4bit-mlx with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "divinetribe/gemma-4-12B-it-abliterated-4bit-mlx"
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": "divinetribe/gemma-4-12B-it-abliterated-4bit-mlx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use divinetribe/gemma-4-12B-it-abliterated-4bit-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "divinetribe/gemma-4-12B-it-abliterated-4bit-mlx"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "divinetribe/gemma-4-12B-it-abliterated-4bit-mlx" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "divinetribe/gemma-4-12B-it-abliterated-4bit-mlx", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use divinetribe/gemma-4-12B-it-abliterated-4bit-mlx 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 "divinetribe/gemma-4-12B-it-abliterated-4bit-mlx"
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 divinetribe/gemma-4-12B-it-abliterated-4bit-mlx
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use divinetribe/gemma-4-12B-it-abliterated-4bit-mlx with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "divinetribe/gemma-4-12B-it-abliterated-4bit-mlx"
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 "divinetribe/gemma-4-12B-it-abliterated-4bit-mlx" \ --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"
gemma-4-12B-it-abliterated-4bit-mlx
Uncensored Gemma 4 12B on Apple Silicon — the light one. Abliterated, 4-bit MLX, 11 GB and happy on a 24 GB Mac. No cloud, no API key, no refusals.
A 4-bit MLX build of an abliterated Gemma 4 12B, packaged for Apple Silicon. This is the lightweight tier of the divinetribe roster — it runs comfortably on a 32 GB Mac where the 31B is tight.
- Base model: OpenYourMind/gemma-4-12B-it-abliterated-uncensored
- Quantization: 4-bit, group size 64 (MLX)
- Architecture: Gemma 4 (unified) — converted with mlx-vlm
Use with MLX
pip install mlx-vlm
python -m mlx_vlm.generate --model divinetribe/gemma-4-12B-it-abliterated-4bit-mlx --prompt "Hello" --max-tokens 256
Drop-in for the claude-code-local stack — point MLX_MODEL at this repo.
Note
"Abliterated" suppresses the model's built-in refusal direction so it won't refuse benign-but-edgy requests. It is not a capability upgrade, and you remain bound by the upstream Gemma license. Use it responsibly.
Abliteration by OpenYourMind. MLX conversion + quantization by divinetribe.
More abliterated MLX models
Part of the Abliterated MLX for Apple Silicon collection — 11 uncensored models converted for Macs, from Gemma 4 12B up to Llama 3.3 70B, plus Qwen3, Qwen3-VL, Hermes 4 and Muse Glimmer 30B.
Part of Claude Code Local
This model is one of the fighters in Claude Code Local (3.2k★), which runs Claude Code 100% on-device on Apple Silicon through an MLX-native Anthropic-API server. Not sure which local model to run as an agent? Check the Agent-12 local agent leaderboard: real agent tasks, judged by the filesystem, same hardware for every row.
Built by Matt Macosko in Arcata, CA. Open to work on local-AI and Apple Silicon inference: matt@ineedhemp.com.
- Downloads last month
- 211
4-bit
Model tree for divinetribe/gemma-4-12B-it-abliterated-4bit-mlx
Base model
google/gemma-4-12B