Instructions to use DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M
Use Docker
docker model run hf.co/DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M
- Ollama
How to use DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF with Ollama:
ollama run hf.co/DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M
- Unsloth Studio
How to use DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF to start chatting
- Pi
How to use DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M
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 DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M
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 "DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF with Docker Model Runner:
docker model run hf.co/DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M
- Lemonade
How to use DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF-Q4_K_M
List all available models
lemonade list
OpenYourMind Gemma 4-12B-IT Abliterated — GGUF
DuoNeural | 2026-06-04
Community GGUF quantizations of OpenYourMind/gemma-4-12B-it-abliterated-uncensored.
All credit for the abliteration goes to OpenYourMind, who were the first team to publish an abliterated Gemma 4-12B-IT (June 3, 2026). DuoNeural's contribution here is the GGUF quantization pipeline only — we wanted the community to have accessible quants for this excellent work.
Original Model — OpenYourMind
OpenYourMind/gemma-4-12B-it-abliterated-uncensored
Full BF16 weights of an abliterated, uncensored variant of google/gemma-4-12B-it. Gemma 4's encoder-free unified multimodal stack is fully intact — text, image, and audio inputs flow straight into a single decoder-only transformer. Drop-in replacement for the original at the architecture level.
Abliteration method (OpenYourMind):
- Residual-stream refusal directions (one per decoder layer) extracted via diff-in-means on a labeled harmful/harmless prompt set
- Applied as per-matrix delta on residual-write modules using their custom abliteration framework
- Multimodal preservation: no separate vision/audio towers to graft back — encoder-free architecture means weights are unchanged outside the residual-write targets
Key properties:
- Uncensored across standard refusal axes
- Reasoning preserved (configurable thinking mode)
- Multimodal: text + image + audio carried forward
- Drop-in shape compatibility with
google/gemma-4-12B-it
Architecture
| Property | Value |
|---|---|
| Architecture | Gemma4UnifiedForConditionalGeneration (model_type: gemma4_unified) |
| Total Parameters | ~11.95B (dense) |
| Decoder Layers | 48 |
| Hidden Size | 3840 |
| Attention | 16 heads / 8 KV heads, hybrid sliding-window (1024) + global (full) attention, p-RoPE |
| Vocabulary | 262,144 |
| Context Length | up to 256K tokens |
| Modalities | Text, Image, Audio (encoder-free / unified) |
GGUF Quantizations (DuoNeural)
Generated using llama.cpp with importance matrix (imatrix, wikitext-2 calibration) for optimal low-bit quality.
| File | Size | Recommended for |
|---|---|---|
oym_ablit-Q3_K_L.gguf |
~6.2 GB | 8GB VRAM / low-end / large context |
oym_ablit-Q4_K_M.gguf |
~7.5 GB | Recommended — best size/quality tradeoff |
oym_ablit-Q5_K_M.gguf |
~9.2 GB | High quality, 12GB cards |
oym_ablit-Q8_0.gguf |
~12.7 GB | Near-lossless, 16GB+ cards |
Usage
Ollama:
ollama run hf.co/DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF:Q4_K_M
llama.cpp:
./llama-cli -m oym_ablit-Q4_K_M.gguf --chat-template gemma -p "Your prompt" -n 512
LM Studio / Jan / Open WebUI: search DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF
Original Model Usage (from OpenYourMind)
For full multimodal inference, use the original BF16 weights with their recommended setup:
from transformers import AutoProcessor, AutoModelForMultimodalLM
repo = "OpenYourMind/gemma-4-12B-it-abliterated-uncensored"
processor = AutoProcessor.from_pretrained(repo)
model = AutoModelForMultimodalLM.from_pretrained(
repo, dtype="bfloat16", device_map="auto",
)
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": [
{"type": "image", "url": "path/to/image.jpg"},
{"type": "text", "text": "Describe this image in detail."},
]},
]
inputs = processor.apply_chat_template(
messages, add_generation_prompt=True, tokenize=True,
return_tensors="pt", return_dict=True, enable_thinking=False,
).to(model.device)
input_len = inputs["input_ids"].shape[-1]
out = model.generate(**inputs, max_new_tokens=512)
print(processor.decode(out[0][input_len:], skip_special_tokens=True))
Text-only, audio, and video work through the same class. Place image content before text, audio after text. Requires a recent transformers with Gemma 4 unified classes.
Best practices (OpenYourMind):
- Sampling:
temperature=1.0, top_p=0.95, top_k=64 - Thinking mode:
enable_thinking=Trueinapply_chat_template; useprocessor.parse_responseto separate reasoning block from final answer - Do not feed previous-turn thoughts back into multi-turn history
Hardware for BF16: ~24 GB — fits a single 24GB GPU for modest context, 40–80GB for long context and multimodal batches.
Support OpenYourMind
- Discord: discord.gg/rhUZY5GEZr
- Bitcoin Donations:
bc1qsvfduzj9fjs9fugpc52yver3f2g8fp7xjxecdv
Related
- Original BF16: OpenYourMind/gemma-4-12B-it-abliterated-uncensored
- DuoNeural independent abliteration (BF16): DuoNeural/Gemma4-12B-IT-Abliterated
- DuoNeural GGUFs (our own abliteration): DuoNeural/Gemma4-12B-IT-Abliterated-GGUF
About DuoNeural
Open AI research lab at the intersection of human and artificial intelligence. Post-training dynamics · Mechanistic interpretability · Abliteration research · 32+ open-access papers.
| Platform | Link |
|---|---|
| 🤗 HuggingFace | huggingface.co/DuoNeural |
| 📚 Zenodo | zenodo.org/communities/duoneural |
| 🐦 X | @DuoNeural |
| [email protected] |
Quantization work open access. Original model license: Gemma (inherits from google/gemma-4-12B-it).
- Downloads last month
- 2,551
3-bit
4-bit
5-bit
8-bit
Model tree for DuoNeural/OpenYourMind-Gemma4-12B-IT-Abliterated-GGUF
Base model
google/gemma-4-12B