Instructions to use bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-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 bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-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 bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-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 bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:Q4_K_M
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 bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:Q4_K_M
Use Docker
docker model run hf.co/bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-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": "bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-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/bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:Q4_K_M
- Ollama
How to use bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF with Ollama:
ollama run hf.co/bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:Q4_K_M
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": "bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF with Docker Model Runner:
docker model run hf.co/bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:Q4_K_M
- Lemonade
How to use bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.ThinkingCap-gemma-4-26B-A4B-it-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-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 bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:Q4_K_M
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 bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:Q4_K_M
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 "bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:Q4_K_M" \ --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"
bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF
We recommend ThinkingCap-gemma-4-26B-A4B-it-MXFP4_MOE.gguf over Q4_K_M at this size: it is the file evaluated below, and it held up better on our math benchmarks. Pull it with -hf bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:MXFP4_MOE.
GGUF / llama.cpp quantizations of bottlecapai/ThinkingCap-gemma-4-26B-A4B-it β ThinkingCap's shorter-thinking post-training applied to gemma-4-26B-A4B-it, a mixture-of-experts model with image input.
β‘οΈ Full model description, evaluation results, the measured thinking-token reduction and recommended sampling: see the main model card at bottlecapai/ThinkingCap-gemma-4-26B-A4B-it.
As in the base model, thinking is off unless the request turns it on (enable_thinking=True); the usage examples below turn it on.
Expected performance
ThinkingCap-gemma-4-26B-A4B-it-MXFP4_MOE.gguf (MXFP4 / Q5_1 experts, Q8_0 attention, dense and embedding), served by llama.cpp, against the bf16 checkpoint of the main card, on nine of its benchmarks. AA-LCR, ΟΒ²-bench and LongBench v2 are not yet covered.
| Benchmark (questions Γ seeds) | bf16 acc % | GGUF acc % | Ξ pp [95% CI] | Thinking tokens, bf16 β GGUF (mean / median / p95) | Ξ mean thinking [95% CI] |
|---|---|---|---|---|---|
| GPQA-Diamond (198 Γ 3) | 79.0 | 78.3 | β0.7 [β2.9, +1.6] | 4,284 / 1,998 / 15,502 β 4,310 / 2,008 / 16,316 | +0.6% [β5.6, +7.1] |
| MMLU-Pro (400 Γ 1) | 84.0 | 83.0 | β1.0 [β3.1, +1.1] | 2,112 / 963 / 8,445 β 1,942 / 931 / 7,761 | β8.0% [β13.7, β2.1] |
| MMMLU (600 Γ 1) | 85.8 | 86.2 | +0.4 [β1.3, +2.1] | 706 / 364 / 2,341 β 728 / 348 / 2,287 | +3.1% [β4.0, +10.8] |
| AIME 2026 (30 Γ 2) | 86.7 | 85.0 | β1.7 [β6.2, +2.0] | 8,963 / 6,490 / 24,506 β 10,349 / 6,460 / 27,924 | +15.5% [+1.8, +31.0] |
| HMMT Feb 2026 (33 Γ 1) | 74.2 | 84.8 | +10.7 [+0.1, +22.0] | 14,717 / 10,451 / 43,514 β 11,033 / 8,072 / 30,010 | β25.0% [β36.1, β13.2] |
| HMMT Nov 2025 (30 Γ 1) | 80.9 | 83.3 | +2.4 [β6.9, +10.7] | 10,542 / 7,184 / 28,254 β 11,433 / 6,194 / 26,935 | +8.5% [β7.2, +27.2] |
| LiveCodeBench v6 (175 Γ 1) | 77.0 | 73.7 | β3.3 [β7.0, +0.4] | 8,375 / 6,306 / 25,083 β 8,401 / 6,924 / 23,264 | +0.3% [β6.6, +7.9] |
| IFBench (300 Γ 3) | 78.7 | 78.0 | β0.7 [β2.1, +0.7] | 5,585 / 4,530 / 13,033 β 5,969 / 4,670 / 13,832 | +6.9% [+0.6, +14.3] |
| RealWorldQA (765 Γ 1) | 70.6 | 75.8 | +5.2 [+2.9, +7.5] | 533 / 211 / 1,941 β 623 / 205 / 2,005 | +16.9% [β8.1, +57.1] |
- bf16 is the main card's checkpoint on the same questions, every card seed averaged per question, so the MMLU-Pro and MMMLU subsets (uniform random samples of the full test sets) do not reproduce the card's full-set numbers exactly. Ξ is GGUF minus bf16; the interval is a 95% bootstrap over questions. Thinking tokens count the reasoning trace only, over question Γ seed.
- The GGUF ran on llama.cpp
bfd73a8with the main card's sampling β thinking on, temperature 1.0, top_p 0.95, top_k 64 β and a 65,536-token cap. - Note the unquantized BF16 GGUF on the same llama.cpp server thinks 6.1% longer than the bf16 checkpoint on AIME 2026 and 14.7% longer on GPQA-Diamond.
About GGUF and quantization
GGUF is a single-file model format for running LLMs locally with llama.cpp and compatible runtimes (LM Studio, Ollama, Jan, β¦). The quantized files below store the weights at 4.3 to 8.5 bits per weight instead of the checkpoint's 16.
Every file keeps the weights that run on every token at 8-bit Q8_0: the attention projections, the dense feed-forward block, and the token embedding, which is also the output head. The router stays in F32. The files differ in how they store the routed experts, which hold 90% of the 25.2B parameters while only 8 of 128 run per token; the last layer's experts are kept one step higher than the rest. MXFP4 is 4-bit floating point with a shared scale per block of 32 weights, the format family of NVFP4.
The Q6_K, Q4_K, Q5_1, IQ3_S and IQ4_NL tensors are quantized with an importance matrix (activation statistics from a chat-formatted calibration corpus with reasoning traces, which steer where the rounding error lands); it is included as ThinkingCap-gemma-4-26B-A4B-it-imatrix.gguf for anyone building other sizes.
Files
| File | Experts: gate/up Β· down | Size |
|---|---|---|
ThinkingCap-gemma-4-26B-A4B-it-Q8_0.gguf |
Q8_0 Β· Q8_0 |
26.9 GB |
ThinkingCap-gemma-4-26B-A4B-it-Q6_K.gguf |
Q6_K Β· Q8_0 |
23.3 GB |
ThinkingCap-gemma-4-26B-A4B-it-Q4_K_M.gguf |
Q4_K Β· Q5_1 |
17.0 GB |
ThinkingCap-gemma-4-26B-A4B-it-MXFP4_MOE.gguf |
MXFP4 Β· Q5_1 |
16.6 GB |
ThinkingCap-gemma-4-26B-A4B-it-IQ4_XS.gguf |
IQ3_S Β· IQ4_NL |
13.6 GB |
mmproj-ThinkingCap-gemma-4-26B-A4B-it-f16.gguf |
vision projector | 1.19 GB |
ThinkingCap-gemma-4-26B-A4B-it-imatrix.gguf |
importance matrix | 57 MB |
Usage (llama.cpp)
# serve an OpenAI-compatible endpoint, thinking on, with the base model's recommended sampling
llama-server -hf bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF:MXFP4_MOE \
--jinja --chat-template-kwargs '{"enable_thinking":true}' --reasoning-format deepseek \
--temp 1.0 --top-p 0.95 --top-k 64 -ub 2048 -b 2048
# or download the file and chat in the terminal
huggingface-cli download bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF \
ThinkingCap-gemma-4-26B-A4B-it-MXFP4_MOE.gguf --local-dir .
llama-cli -m ThinkingCap-gemma-4-26B-A4B-it-MXFP4_MOE.gguf --jinja \
--chat-template-kwargs '{"enable_thinking":true}' --temp 1.0 --top-p 0.95 --top-k 64
With --reasoning-format deepseek the server returns the thinking in reasoning_content and the answer in content. A client can also turn thinking on per request with "chat_template_kwargs": {"enable_thinking": true}. Keep the temperature at the recommended 1.0; greedy decoding can loop.
Vision (image input)
Image input needs the multimodal projector mmproj-ThinkingCap-gemma-4-26B-A4B-it-f16.gguf (in this repo) loaded alongside any of the text files. llama-server -hf β¦ downloads and loads it automatically.
- LM Studio / Jan / Ollama, β¦: download the
mmproj-*.gguffrom this repo; LM Studio detects it and enables image input. - llama.cpp CLI:
huggingface-cli download bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF \
ThinkingCap-gemma-4-26B-A4B-it-MXFP4_MOE.gguf mmproj-ThinkingCap-gemma-4-26B-A4B-it-f16.gguf --local-dir .
llama-mtmd-cli -m ThinkingCap-gemma-4-26B-A4B-it-MXFP4_MOE.gguf \
--mmproj mmproj-ThinkingCap-gemma-4-26B-A4B-it-f16.gguf -ub 2048 -b 2048 \
--image photo.jpg -p "Describe this image."
- llama-server: add
--mmproj mmproj-ThinkingCap-gemma-4-26B-A4B-it-f16.ggufwhen serving a local file.
Keep -ub 2048 -b 2048 for image input. Gemma 4 attends bidirectionally across an image's tokens, so the whole image must fit in one micro-batch, and with llama.cpp's default of 512 a larger image aborts the server (GGML_ASSERT ... non-causal attention requires n_ubatch >= n_tokens, llama.cpp bfd73a8).
Where to find us
Need even more efficiency? Our enterprise versions go further β fewer thinking tokens still, tuned to your workload, at matched accuracy on your own tasks. Built for AI labs, inference providers and enterprises running models at scale. Deployed on your infrastructure, or in the cloud and region you choose. Talk to our team
License
Released under the base model's own license, Apache 2.0 (see the Gemma 4 license page).
- Downloads last month
- 16,678
Model tree for bottlecapai/ThinkingCap-gemma-4-26B-A4B-it-GGUF
Base model
google/gemma-4-26B-A4B