Instructions to use LuffyTheFox/Gemma4-12B-QAT-Genesis 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 LuffyTheFox/Gemma4-12B-QAT-Genesis 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 LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0 # Run inference directly in the terminal: llama cli -hf LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0 # Run inference directly in the terminal: llama cli -hf LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0
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 LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0
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 LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0
Use Docker
docker model run hf.co/LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0
- LM Studio
- Jan
- vLLM
How to use LuffyTheFox/Gemma4-12B-QAT-Genesis with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LuffyTheFox/Gemma4-12B-QAT-Genesis" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LuffyTheFox/Gemma4-12B-QAT-Genesis", "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/LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0
- Ollama
How to use LuffyTheFox/Gemma4-12B-QAT-Genesis with Ollama:
ollama run hf.co/LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0
- Unsloth Studio
How to use LuffyTheFox/Gemma4-12B-QAT-Genesis 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 LuffyTheFox/Gemma4-12B-QAT-Genesis 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 LuffyTheFox/Gemma4-12B-QAT-Genesis to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for LuffyTheFox/Gemma4-12B-QAT-Genesis to start chatting
- Pi
How to use LuffyTheFox/Gemma4-12B-QAT-Genesis with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0
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": "LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use LuffyTheFox/Gemma4-12B-QAT-Genesis with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0
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 LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use LuffyTheFox/Gemma4-12B-QAT-Genesis with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0
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 "LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0" \ --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 LuffyTheFox/Gemma4-12B-QAT-Genesis with Docker Model Runner:
docker model run hf.co/LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0
- Lemonade
How to use LuffyTheFox/Gemma4-12B-QAT-Genesis with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull LuffyTheFox/Gemma4-12B-QAT-Genesis:Q4_0
Run and chat with the model
lemonade run user.Gemma4-12B-QAT-Genesis-Q4_0
List all available models
lemonade list
âš¡ https://web.tribute.tg/d/KIH âš¡ If you like this Genesis LLM release you can donate to me via @Tribute bot in Telegram messenger and support future Genesis LLM development.
Gemma4-12B-QAT-Genesis
This is vanilla Gemma4-12B-QAT version from Google.
I distilled training and quantization noise from all tensors in it. Everything else left unchanged.
According to my tests she is perfect for roleplay, and works fast even on lowend GPUs.
Join the Discord for updates, roadmaps, projects, or just to chat.
âš¡ Why Genesis project exists? During training, ALL models don't just learn knowledge - they also accumulate random noise in their tensors. This noise builds up and creates something I call the Noise Gate - a fundamental barrier that stops LLM models from learning further and makes them unstable, verbose, and prone to hallucinations. My approach reduces this noise. It repairs the signal without touching the learned knowledge and gradient. The result is a model that finally speaks clearly, follows instructions, and remembers context - because it's no longer fighting its own internal chaos.
~60% faster with MTP
Ships with an MTP (multi-token-prediction) draft head for speculative decoding — roughly 60% faster generation with identical output (the model verifies every drafted token, so quality is unchanged — pure speed). This release is tuned to pair well with the included MTP head.
llama.cpp:
llama-server \
-m Gemma4-12B-QAT-Uncensored-HauhauCS-Balanced-Q4_K_M.gguf \
-md mtp-gemma-4-12B-it.gguf --spec-type draft-mtp \
-ngl 99 -fa on
Note: the MTP speedup was currently tested by me through llama.cpp (llama-server / llama-cli).
Downloads
| File | Type | Size |
|---|---|---|
gemma-4-12b-it-qat-q4_0.gguf |
Q4_0 (text) | 6.98 GB |
mmproj-gemma-4-12b-it-qat-q4_0.gguf |
mmproj (vision) | 175 MB |
mtp-gemma-4-12B-it.gguf |
MTP speculative drafter | 254 MB |
Recommended settings from Unsloth
temperature 1.0top_k 64top_p 0.95min_p disabled
Specs
- 12B dense · 256K (262144) context
- Vision (image input) via mmproj
- Based on Gemma 4 12B by Google DeepMind
Compatibility
- Works with llama.cpp, LM Studio, Jan, koboldcpp, and other GGUF runtimes.
- Multi-GPU + LM Studio: I've personally noticed Gemma 4 can crash under LM Studio's tensor-split mode — use a single GPU (layer-split or priority order) for this model.
Acknowledgements
- Google DeepMind — Gemma 4.
- The included
mtp-gemma-4-12B-it.ggufspeculative draft head comes from Unsloth's Gemma 4 release — many thanks to the Unsloth team for it.
- Downloads last month
- 693
4-bit