Instructions to use sneedjak/Adelic-Gemma-4-12B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use sneedjak/Adelic-Gemma-4-12B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="sneedjak/Adelic-Gemma-4-12B-GGUF", filename="adelic-gemma4-12b-Q6_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use sneedjak/Adelic-Gemma-4-12B-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 sneedjak/Adelic-Gemma-4-12B-GGUF:Q6_K # Run inference directly in the terminal: llama cli -hf sneedjak/Adelic-Gemma-4-12B-GGUF:Q6_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf sneedjak/Adelic-Gemma-4-12B-GGUF:Q6_K # Run inference directly in the terminal: llama cli -hf sneedjak/Adelic-Gemma-4-12B-GGUF:Q6_K
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 sneedjak/Adelic-Gemma-4-12B-GGUF:Q6_K # Run inference directly in the terminal: ./llama-cli -hf sneedjak/Adelic-Gemma-4-12B-GGUF:Q6_K
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 sneedjak/Adelic-Gemma-4-12B-GGUF:Q6_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf sneedjak/Adelic-Gemma-4-12B-GGUF:Q6_K
Use Docker
docker model run hf.co/sneedjak/Adelic-Gemma-4-12B-GGUF:Q6_K
- LM Studio
- Jan
- vLLM
How to use sneedjak/Adelic-Gemma-4-12B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sneedjak/Adelic-Gemma-4-12B-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": "sneedjak/Adelic-Gemma-4-12B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sneedjak/Adelic-Gemma-4-12B-GGUF:Q6_K
- Ollama
How to use sneedjak/Adelic-Gemma-4-12B-GGUF with Ollama:
ollama run hf.co/sneedjak/Adelic-Gemma-4-12B-GGUF:Q6_K
- Unsloth Studio
How to use sneedjak/Adelic-Gemma-4-12B-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 sneedjak/Adelic-Gemma-4-12B-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 sneedjak/Adelic-Gemma-4-12B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for sneedjak/Adelic-Gemma-4-12B-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use sneedjak/Adelic-Gemma-4-12B-GGUF with Docker Model Runner:
docker model run hf.co/sneedjak/Adelic-Gemma-4-12B-GGUF:Q6_K
- Lemonade
How to use sneedjak/Adelic-Gemma-4-12B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sneedjak/Adelic-Gemma-4-12B-GGUF:Q6_K
Run and chat with the model
lemonade run user.Adelic-Gemma-4-12B-GGUF-Q6_K
List all available models
lemonade list
Adèlic Gemma 4 12B (GGUF)
This repository contains the GGUF quantized weights for google/gemma-4-12B, specifically optimized and patched to run on the experimental Adèlic Condense infinite-context engine.
🛠️ Changelog (V2 Patch)
- Native ChatML Integration: Addressed a bug where the model would occasionally hallucinate fake user dialogue (e.g.,
<|im_start|>user). This was traced to a mismatch between the base Gemma templates and the model's SFT format. The industry-standard ChatML Jinja2 template is now permanently baked into the GGUF metadata, allowing standard engines (and Ollama) to automatically parse the conversational stops natively. - Native Multimodal Suppression: The
<image|>and<audio|>generation hallucination bug has been permanently eradicated via the Adèlic engine and Hugging Face generation configurations.
🚀 The Adèlic Project
This model is designed to be run on a custom fork of llama.cpp that features the Adèlic KV Condenser.
The Adèlic engine utilizes a specialized CUDA kernel that continuously evaluates the cosine similarity of tokens inside the KV cache. By aggressively pruning older, redundant historical tokens (similarity > 0.999) from the value cache on every single layer, the engine theoretically enables an infinite context window without running out of VRAM or destroying attention coherence.
Engine-Level Patches Included
- Unconditional KV Condensation: The Adèlic condenser runs unconditionally across all layers to enforce unbounded context.
- Multimodal Hallucination Killswitch: The Adèlic inference engine hardcodes negative-infinity bias for image/audio modalities, permanently curing the checkpoint's hallucination issue at high Top K sampling.
💾 Available Quantizations
| Filename | Format | Size | Recommended For |
|---|---|---|---|
adelic-gemma4-12b-Q6_K.gguf |
Q6_K | ~9.8 GB | 16GB VRAM GPUs (RTX 4080, T4, etc.) |
adelic-gemma4-12b-patched.gguf |
BF16/F16 | ~24 GB | 24GB+ VRAM environments (A100, RTX 4090) |
💻 How to Use
To use this model and activate the infinite-context condenser, you must use the official Adèlic fork of llama.cpp. Standard builds of llama.cpp will not have the required CUDA kernels for the infinite context window.
1. Clone & Build the Engine
# Clone the Adelic fork
git clone -b feature/gemma4-adelic https://github.com/sneed-and-feed/llama.cpp.git
cd llama.cpp
# Build with CUDA support (Includes both CLI and Server endpoints)
cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release -j 4 --target llama-cli --target llama-server
2. Run Inference
Because the ChatML template is baked directly into the GGUF, you can run conversational mode natively without any clunky reverse-prompt flags!
Option A: Terminal CLI
./build/bin/llama-cli \
-m /path/to/adelic-gemma4-12b-Q6_K.gguf \
-n 512 \
-c 4096 \
-ngl 999 \
-p "Explain the concept of quantum computing to a 5 year old:" \
--color on
Option B: OpenAI-Compatible API Server If you want to use the infinite-context model with UIs like SillyTavern, Open WebUI, or AnythingLLM, you can spin up the local server endpoint:
./build/bin/llama-server \
-m /path/to/adelic-gemma4-12b-Q6_K.gguf \
-c 4096 \
-ngl 999 \
--port 8080
💡 Pro-Tip: Forcing the Reasoning Block If you notice the model is instantly closing its own reasoning block (outputting
<|channel>thoughtfollowed immediately by<channel|>), you can physically force it to "think" by pre-filling the assistant's response.Simply append
<|channel>thought\nto the very end of your prompt! This drops the engine directly into the reasoning state, forcing it to generate logic tokens before answering.
📜 License
This model is subject to the official Gemma Terms of Use. By downloading or using these weights, you agree to the original Google Gemma License.
- Downloads last month
- 3,467
6-bit
Model tree for sneedjak/Adelic-Gemma-4-12B-GGUF
Base model
google/gemma-4-12B