Instructions to use Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF", filename="ThinkingCap-Qwen3.6-27B-Q4_K_M.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 Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-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 Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-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 Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF:Q4_K_M
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 Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF:Q4_K_M
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 Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-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": "Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF:Q4_K_M
- Ollama
How to use Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF with Ollama:
ollama run hf.co/Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF:Q4_K_M
- Unsloth Studio
How to use Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-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 Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-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 Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF to start chatting
- Pi
How to use Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF:Q4_K_M
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": "Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-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 Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-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:8080/v1 hermes config set model.default Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-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:8080/v1 \ --custom-model-id "Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-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"
- Docker Model Runner
How to use Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF with Docker Model Runner:
docker model run hf.co/Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF:Q4_K_M
- Lemonade
How to use Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF-Q4_K_M
List all available models
lemonade list
ThinkingCap: Qwen 3.6 27B - GGUF
This is a GGUF quantized version of bottlecapai/ThinkingCap-Qwen3.6-27B. It contains the Q4_K_M quantization, providing a balanced trade-off between memory efficiency and reasoning quality for local inference frameworks like llama.cpp.
Capability of Qwen3.6-27B with 50% less thinking tokens on average, and over 90% less in best cases. Achieved via finetuning Qwen3.6-27B (Qwen Team, 2026) with state-of-the-art algorithms on a curated set of problems of various domains and difficulty. We designed the finetuning to be as minimally invasive as possible, preserving all of the original answer quality and style of Qwen, while being more token efficient.
We rigorously evaluate the resulting checkpoint across general reasoning, non-reasoning multiple-choice question answering, everyday multi-turn conversations, system prompt adherence, safety, math, code and agentic use cases. Due to the high variability of reasoning quality at Qwen-recommended sampling temperature 1.0, we run each benchmark with multiple seeds and do statistical significance testing on all the results. We evaluate both in domain (holdout parts of selected datasets included in training) and out of domain.
Out-of-domain token efficiency
| Benchmark | Accuracy | Thinking tokens | |||
|---|---|---|---|---|---|
| Base | Ours | Base | Ours | Reduction | |
| Knowledge & reasoning | |||||
| GPQA-Diamond | 85.5 ±1.4 | 83.8 ±1.9 | 10,777 | 3,351 | ↓ 67.8% |
| SuperGPQA | 64.0 ±0.2 | 64.0 ±0.1 | 8,246 | 3,384 | ↓ 58.4% |
| MMLU-Pro | 85.9 ±0.2 | 85.4 ±0.2 | 3,455 | 1,290 | ↓ 53.7% |
| MMLU-Redux | 93.9 ±0.1 | 93.9 ±0.1 | 947 | 406 | ↓ 44.8% |
| C-Eval | 90.6 ±0.7 | 90.3 ±0.6 | 1,279 | 663 | ↓ 47.1% |
| Math & code | |||||
| HMMT (Nov 2025) | 88.0 ±3.7 | 84.7 ±3.7 | 39,277 | 27,388 | ↓ 38.0% |
| LiveCodeBench | 80.7 ±0.6 | 84.3 ±1.0 | 15,744 | 10,158 | ↓ 41.1% |
| Long-context & multimodal | |||||
| LongBench v2 | 62.6 ±3.6 | 60.2 ±1.7 | 1,765 | 1,091 | ↓ 39.1% |
| RealWorldQA | 82.4 ±0.7 | 81.9 ±1.2 | 2,959 | 913 | ↓ 48.5% |
| AA-LCR | 76.2 ±3.0 | 74.2 ±2.2 | 2,455 | 1,337 | ↓ 45.5% |
| Instruction following & agentic | |||||
| System-prompt adherence | 80.6 ±1.2 | 81.5 ±1.8 | 1,737 | 976 | ↓ 40.0% |
| Claw-Eval think/task | 87.0 ±1.9 | 84.4 ±1.2 | 919 | 689 | ↓ 25.2% |
| Macro average | 81.5 | 80.7 | — | — | ↓ 45.8% |
Claw-Eval thinking tokens are per-task (agentic; not a single-turn trace).
Settings
- Models: base
Qwen/Qwen3.6-27Bvsbottlecapai/ThinkingCap-Qwen3.6-27B(shown asOursin the table). - Seeds: 5 per condition; thinking on; cells are mean ± 95% CI across seeds.
- Decoding: thinking on; sampling
temperature=1.0, top_p=0.95, top_k=20, min_p=0.0. - Max generation tokens: 100,000 for the general suite (gpqa_diamond, mmlu_pro, longbench_v2, realworldqa) and AA-LCR; 250,000 for HMMT; 32,768 for supergpqa and livecodebench; 16,384 for ceval and mmlu_redux; 15,000 for llm-system-prompts-benchmark; 49,152 for Claw-Eval.
In-domain evals
Holdout test splits of datasets whose train splits are part of the finetuning mix — quality retention on in-distribution tasks.
| Benchmark | Accuracy | Thinking tokens | |||
|---|---|---|---|---|---|
| Base | Ours | Base | Ours | Reduction | |
| GSM8K | 93.3 ±1.5 | 96.5 ±0.3 | 3,175 | 648 | ↓ 74.1% |
| ARC-Challenge | 97.0 ±0.3 | 97.6 ±0.4 | 966 | 335 | ↓ 51.5% |
| ARC-Easy | 99.3 ±0.2 | 99.4 ±0.2 | 566 | 260 | ↓ 44.5% |
| CommonsenseQA | 86.7 ±0.7 | 88.2 ±0.9 | 1,118 | 273 | ↓ 64.1% |
| OpenBookQA | 96.0 ±0.5 | 96.7 ±0.6 | 858 | 248 | ↓ 59.5% |
| QASC | 91.7 ±0.7 | 92.2 ±0.5 | 1,258 | 348 | ↓ 61.9% |
| SciQ | 97.0 ±0.2 | 97.5 ±0.2 | 766 | 276 | ↓ 48.3% |
| Macro average | 94.4 | 95.4 | — | — | ↓ 57.7% |
Guardrails preservation
| Benchmark | SAFE % | Thinking tokens | |||
|---|---|---|---|---|---|
| Base | Ours | Base | Ours | Reduction | |
| Nemotron-Safety | 98.9 ±0.8 | 99.0 ±0.4 | 1,242 | 933 | ↓ 23.8% |
| HEx-PHI | 99.9 ±0.2 | 100.0 ±0.0 | 693 | 543 | ↓ 20.0% |
| Macro average | 99.4 | 99.5 | — | — | ↓ 21.9% |
GGUF Local Usage (llama.cpp)
To run this model locally, you will need a framework capable of handling Q4_K_M GGUF files. llama.cpp is highly recommended.
# Clone and build llama.cpp (if you haven't already)
git clone [https://github.com/ggerganov/llama.cpp](https://github.com/ggerganov/llama.cpp)
cd llama.cpp
make -j
# Run the model locally
./llama-cli -hf Abiray/ThinkingCap-Qwen3.6-27B-Q4_K_M-GGUF -p "Explain quantum computing in simple terms."
- Downloads last month
- 559
4-bit
