Image-Text-to-Text
GGUF
gemma4
heretic
abliterated
decensored
uncensored
volta
v100
sm_70
speculative-decoding
conversational
Instructions to use megabytes/gemma-4-12B-it-heretic-volta-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 megabytes/gemma-4-12B-it-heretic-volta-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 megabytes/gemma-4-12B-it-heretic-volta-gguf:Q4_0 # Run inference directly in the terminal: llama cli -hf megabytes/gemma-4-12B-it-heretic-volta-gguf:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf megabytes/gemma-4-12B-it-heretic-volta-gguf:Q4_0 # Run inference directly in the terminal: llama cli -hf megabytes/gemma-4-12B-it-heretic-volta-gguf:Q4_0
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 megabytes/gemma-4-12B-it-heretic-volta-gguf:Q4_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf megabytes/gemma-4-12B-it-heretic-volta-gguf:Q4_0
Use Docker
docker model run hf.co/megabytes/gemma-4-12B-it-heretic-volta-gguf:Q4_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use megabytes/gemma-4-12B-it-heretic-volta-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "megabytes/gemma-4-12B-it-heretic-volta-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": "megabytes/gemma-4-12B-it-heretic-volta-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/megabytes/gemma-4-12B-it-heretic-volta-gguf:Q4_0
- Ollama
How to use megabytes/gemma-4-12B-it-heretic-volta-gguf with Ollama:
ollama run hf.co/megabytes/gemma-4-12B-it-heretic-volta-gguf:Q4_0
- Unsloth Desktop
- Pi
How to use megabytes/gemma-4-12B-it-heretic-volta-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf megabytes/gemma-4-12B-it-heretic-volta-gguf:Q4_0
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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "megabytes/gemma-4-12B-it-heretic-volta-gguf:Q4_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use megabytes/gemma-4-12B-it-heretic-volta-gguf with Docker Model Runner:
docker model run hf.co/megabytes/gemma-4-12B-it-heretic-volta-gguf:Q4_0
- Lemonade
How to use megabytes/gemma-4-12B-it-heretic-volta-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull megabytes/gemma-4-12B-it-heretic-volta-gguf:Q4_0
Run and chat with the model
lemonade run user.gemma-4-12B-it-heretic-volta-gguf-Q4_0
List all available models
lemonade list
- Hermes Agent
How to use megabytes/gemma-4-12B-it-heretic-volta-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 megabytes/gemma-4-12B-it-heretic-volta-gguf: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 megabytes/gemma-4-12B-it-heretic-volta-gguf:Q4_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use megabytes/gemma-4-12B-it-heretic-volta-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf megabytes/gemma-4-12B-it-heretic-volta-gguf: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 "megabytes/gemma-4-12B-it-heretic-volta-gguf: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"
megabytes/gemma-4-12B-it-heretic-volta-gguf
This repository contains the complete Gemma 4 12B IT QAT Heretic suite specifically optimized for NVIDIA Volta (Compute Capability 7.0 / Tesla V100 / Titan V) GPUs.
Included Models
| File | Size | Format | Description |
|---|---|---|---|
gemma-4-12b-it-qat-heretic-volta-Q4_0.gguf |
6.8 GB | Q4_0 + Q8_0 |
Main LLM with Q8_0 token embeddings (avoids Q6_K stalls on Volta) and canonical chat template |
mmproj-gemma-4-12b-it-qat-heretic-volta-F16.gguf |
117 MB | F16 |
Multimodal vision projector mapped directly to Volta FP16 Tensor Cores |
mtp-gemma-4-12b-it-qat-heretic-volta-Q4_0.gguf |
242 MB | Q4_0 |
Multi-Token Prediction (MTP) speculative decoding assistant model |
Optimizations for Volta (sm_70)
- Avoidance of K-Quants (
Q6_KβQ8_0): Eliminates ALU unpacking bottlenecks on Volta CUDA cores for the 262k-token vocabulary. - Native FP16 Vision Projector (
F16): Runs vision embeddings directly on Volta's FP16 Tensor Cores without integer dequantization overhead. - Speculative Decoding Assistant (
Q4_0): Compressed to 242 MB to maximize speculative drafting throughput. - Canonical Delimiters & Chat Template: Fully aligned with Gemma 4 turn delimiters (
<|turn>,<turn|>) and Jinja chat templating.
Benchmark Performance (Tesla V100-PCIE-12GB)
| Workload | Throughput | Notes |
|---|---|---|
Synthetic Prompt (pp512) |
270.2 t/s | Raw base model throughput |
Synthetic Generation (tg128) |
50.5 t/s | Raw base model throughput |
| Text Generation (with MTP drafter) | 59.5 t/s | --spec-draft-n-max 2 --poll 100 |
| Multimodal Vision Ingestion | 94.4 t/s | Native F16 projector |
Recommended llama.cpp / llama-server Command
./llama-server \
-m ./gemma-4-12b-it-qat-heretic-volta-Q4_0.gguf \
--mmproj ./mmproj-gemma-4-12b-it-qat-heretic-volta-F16.gguf \
--model-draft ./mtp-gemma-4-12b-it-qat-heretic-volta-Q4_0.gguf \
--spec-type draft-mtp \
--spec-draft-n-max 2 \
--poll 100 \
-dev CUDA0 \
-ngl all \
-devd CUDA0 \
-ngld all \
--mmproj-offload \
--spec-draft-backend-sampling \
-fa on \
--jinja
- Downloads last month
- 413
Hardware compatibility
Log In to add your hardware
4-bit
Model tree for megabytes/gemma-4-12B-it-heretic-volta-gguf
Base model
google/gemma-4-12B Finetuned
google/gemma-4-12B-it