Instructions to use AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF", filename="adi-gemma3-12b-ablit-glm5.2-q4_k_m.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-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 AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-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 AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-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 AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-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 AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF:Q4_K_M
Use Docker
docker model run hf.co/AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-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": "AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF:Q4_K_M
- Ollama
How to use AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF with Ollama:
ollama run hf.co/AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF:Q4_K_M
- Unsloth Studio
How to use AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-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 AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-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 AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF with Docker Model Runner:
docker model run hf.co/AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF:Q4_K_M
- Lemonade
How to use AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.adi-gemma3-12b-ablit-glm5.2-GGUF-Q4_K_M
List all available models
lemonade list
adi-gemma3-12b-ablit-glm5.2
Part of the ADI (Advanced Data Intelligence) model line โ ADI Gemma series.
An uncensored, vision-capable, fully local model that reasons and answers like a frontier teacher. Built by distilling glm-5.2 general-knowledge responses into an abliterated Gemma-3-12B student with a light 4-bit QLoRA fine-tune, then merged, converted, and quantized to GGUF. The base's vision tower is preserved and shipped as a companion projector, and the abliterated base keeps its minimal-refusal behavior โ the fine-tune was kept light specifically to avoid re-aligning it.
Capabilities
| Size | Context | Input | Output | Tools |
|---|---|---|---|---|
| 6.8 GB | 128K | ๐ ฃ๐ผ๏ธ Text + Image | Text | โ |
| Base model | huihui-ai/gemma-3-12b-it-abliterated (abliterated Gemma-3-12B-it) |
| Teacher | glm-5.2 (responses distilled, thinking disabled) |
| Method | Light 4-bit QLoRA SFT (rank 16, 2 epochs) โ merge โ GGUF |
| Quantization | Q4_K_M (~6.8 GB text) + vision projector (mmproj, ~815 MB) |
| License | Gemma (Google Gemma Terms of Use) |
| Context | 128K (inherited from base) |
| Vision | Supported โ multimodal (image + text โ text) |
Run it
Pull directly into Ollama:
ollama run hf.co/AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF:Q4_K_M
It's multimodal โ pass an image to have it describe or reason over it:
ollama run adi-gemma3-12b-ablit-glm5.2 "What's in this image? /path/to/photo.jpg"
Or download the .gguf (text) + mmproj-*.gguf (vision projector) and point any
llama.cpp-based runtime at them.
What this model is
This is a knowledge distillation: a strong teacher (glm-5.2) generated
high-quality answers across a clean general-knowledge prompt set, and the
abliterated Gemma-3-12B student was fine-tuned to imitate them. The result reasons
and responds more like its teacher on general topics, keeps the base's uncensored
character, and retains native image understanding โ all while running on a
single consumer GPU.
What distillation does โ and doesn't do. It transfers the teacher's reasoning style and answer quality, not net-new facts. For raw factual recall, retrieval-augmented generation (RAG) is the right tool, not fine-tuning. What you get here is a 12B that structures and explains like a larger model on topics it already partly knows โ without the refusal behavior of an aligned model.
Uncensored behavior โ please read
This model is built on an abliterated base: the refusal direction has been suppressed, so it will attempt most requests rather than declining them. The fine-tune was intentionally kept light (2 epochs, benign-only data) to avoid re-introducing refusals. You are responsible for using it lawfully and ethically; it has weaker built-in safety guardrails than stock Gemma-3-12B-it.
Training
| Metric | Value |
|---|---|
| Training pairs | 2,000 (deterministic subset of a 4,982-pair clean set) |
| Epochs | 2 (kept light to preserve abliteration) |
| Steps | 500 |
| Final train loss | 0.9896 |
| LoRA rank / alpha | 16 / 16 |
| Trainable params | 68.5M |
| Precision | 4-bit QLoRA (nf4) |
| Peak VRAM | 10.42 GB |
| Hardware | single RTX 5060 Ti (16 GB) |
| Training time | 2.97 h (~22 s/step) |
The seed prompts were drawn from the human-written Databricks Dolly-15k dataset (filtered to remove items requiring an attached context passage, then deduplicated). The teacher was queried with thinking disabled so the student learns clean final answers rather than chain-of-thought.
Notes for re-builders
- Distilling onto an abliterated base is a balancing act. Any SFT can nudge an abliterated model back toward refusals. Two choices kept the behavior intact: benign-only training data (the GLM-5.2 set has zero refusals to re-learn) and a light touch (LoRA rank 16, 2 epochs). Spot-check refusals before/after.
- Gemma 3 uses FlexAttention (Triton). Expect a slow first
5โ8 steps while the attention kernels autotune and cache, then it settles (22 s/step on a 16 GB card). - 4-bit QLoRA via Unsloth with gradient checkpointing ("unsloth" mode), max_seq_length 2048, per-device batch 1 ร grad-accum 8, LoRA targeting all attention + MLP projections. Peak VRAM 10.42 GB.
- Vision: the LoRA targeted only the language layers; the vision tower is
carried through unchanged. GGUF conversion used llama.cpp's
convert_hf_to_gguf.py(Gemma3ForConditionalGeneration), with--mmprojproducing the vision projector. Ollama serves Gemma 3 vision natively.
Intended use
General-purpose local assistant with image understanding for users who want a capable, private, offline-capable model with minimal refusal behavior: explanations, reasoning, visual Q&A, and creative writing. Not intended as a source of authoritative facts without retrieval, and not a substitute for your own safety review.
License
Gemma โ governed by Google's Gemma Terms of Use and Prohibited Use Policy, inherited via the abliterated base model. This is more restrictive than Apache-2.0; review both before redistribution or deployment. Distilled training data was generated using glm-5.2; review the teacher model's terms as well.
Built at theLAB โ Learning. Algorithms. Breakthroughs.
- Downloads last month
- -
4-bit
Model tree for AdvancedDataIntelligence/adi-gemma3-12b-ablit-glm5.2-GGUF
Base model
google/gemma-3-12b-pt