Instructions to use JMingo/gemma-4-12B-it-qat-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 JMingo/gemma-4-12B-it-qat-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 JMingo/gemma-4-12B-it-qat-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf JMingo/gemma-4-12B-it-qat-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf JMingo/gemma-4-12B-it-qat-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf JMingo/gemma-4-12B-it-qat-GGUF:BF16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf JMingo/gemma-4-12B-it-qat-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf JMingo/gemma-4-12B-it-qat-GGUF:BF16
Use Docker
docker model run hf.co/JMingo/gemma-4-12B-it-qat-GGUF:BF16
- Llama new
- LM Studio
- Jan
- Ollama
How to use JMingo/gemma-4-12B-it-qat-GGUF with Ollama:
ollama run hf.co/JMingo/gemma-4-12B-it-qat-GGUF:BF16
- Unsloth Desktop
- Pi
How to use JMingo/gemma-4-12B-it-qat-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf JMingo/gemma-4-12B-it-qat-GGUF:BF16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "JMingo/gemma-4-12B-it-qat-GGUF:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use JMingo/gemma-4-12B-it-qat-GGUF with Docker Model Runner:
docker model run hf.co/JMingo/gemma-4-12B-it-qat-GGUF:BF16
- Lemonade
How to use JMingo/gemma-4-12B-it-qat-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull JMingo/gemma-4-12B-it-qat-GGUF:BF16
Run and chat with the model
lemonade run user.gemma-4-12B-it-qat-GGUF-BF16
List all available models
lemonade list
- Hermes Agent
How to use JMingo/gemma-4-12B-it-qat-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 JMingo/gemma-4-12B-it-qat-GGUF:BF16
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:9931/v1 hermes config set model.default JMingo/gemma-4-12B-it-qat-GGUF:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use JMingo/gemma-4-12B-it-qat-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf JMingo/gemma-4-12B-it-qat-GGUF:BF16
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:9931/v1 \ --custom-model-id "JMingo/gemma-4-12B-it-qat-GGUF:BF16" \ --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"
Near-lossless GGUF quants of:
Chat template has been updated (2026-07-15 version).
Original QAT Specifications
The base QAT model was trained with the following specifications:
- Text & Draft Models: 4-bit
- Multimodal Projector (
mmproj): BF16
Quantization Error Evaluation
- Dequantization: Quantized weights were dequantized to F32 for evaluation.
- Error Calculation: Quantization error metrics (compared to the BF16 baseline) were computed and accumulated in F64 precision to prevent numerical underflow and precision loss.
Metrics:
- MAE (Mean Absolute Error)
- RMSE (Root Mean Squared Error)
- Max Error
Interpretation of Metrics: These error metrics do not directly reflect actual model performance. This is because imatrix optimization intentionally increases measured error by downweighting less important parameters to improve overall performance. However, these metrics remain useful for estimating how close the quantized model is to the original, lossless quality.
gemma-4-12B-it-qat
| Model | MAE | RMSE | Max Error |
|---|---|---|---|
JMingo/gemma-4-12B-it-qat-BF16.gguf (Baseline) |
0.00000000 | 0.00000000 | 0.00000000 |
JMingo/gemma-4-12B-it-qat-Q4_0.gguf |
0.00001161 | 0.00001969 | 0.00122070 |
idkwhattoputherenow/gemma-4-12B-it-qat-q4_0-unquantized-q4_0-maxerr.gguf |
0.00001319 | 0.00002255 | 0.00122070 |
unsloth/gemma-4-12B-it-qat-UD-Q4_K_XL.gguf |
0.00001645 | 0.00002537 | 0.00390625 |
google/gemma-4-12b-it-qat-q4_0.gguf |
0.00032522 | 0.00067853 | 0.01940918 |
lmstudio-community/gemma-4-12B-it-QAT-Q4_0.gguf |
0.00032522 | 0.00067853 | 0.01940918 |
mradermacher/gemma-4-12B-it-qat-q4_0-unquantized.i1-Q4_0.gguf |
0.00002872 | 0.00009840 | 0.04531860 |
ggnoy/gemma-4-12B-it-qat-q4-bim-v2.gguf |
0.00002873 | 0.00009699 | 0.03878784 |
dahara1/gemma-4-12B-it-qat-ja-Q4_0.gguf |
0.00005232 | 0.00021027 | 0.04718876 |
dahara1/gemma-4-12B-it-qat-ja-Q8_0.gguf |
0.00005324 | 0.00006941 | 0.00268555 |
dahara1/gemma-4-12B-it-qat-ja-UD-Q8_K_XL.gguf |
0.00004886 | 0.00006646 | 0.00268555 |
mtp-gemma-4-12B-it-qat
| Model | MAE | RMSE | Max Error |
|---|---|---|---|
JMingo/mtp-gemma-4-12B-it-qat-BF16.gguf (Baseline) |
0.00000000 | 0.00000000 | 0.00000000 |
JMingo/mtp-gemma-4-12B-it-qat-Q4_0.gguf |
0.00002353 | 0.00003937 | 0.00219727 |
unsloth/mtp-gemma-4-12B-it.gguf |
0.00003323 | 0.00005117 | 0.00390625 |
- Downloads last month
- 1,019
4-bit
16-bit
Model tree for JMingo/gemma-4-12B-it-qat-GGUF
Base model
google/gemma-4-12B