Instructions to use TokenBender/Apprentice-v0.5 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 TokenBender/Apprentice-v0.5 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 TokenBender/Apprentice-v0.5 # Run inference directly in the terminal: llama cli -hf TokenBender/Apprentice-v0.5
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf TokenBender/Apprentice-v0.5 # Run inference directly in the terminal: llama cli -hf TokenBender/Apprentice-v0.5
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 TokenBender/Apprentice-v0.5 # Run inference directly in the terminal: ./build/bin/llama cli -hf TokenBender/Apprentice-v0.5
Use Docker
docker model run hf.co/TokenBender/Apprentice-v0.5
- Llama new
- LM Studio
- Jan
- Ollama
How to use TokenBender/Apprentice-v0.5 with Ollama:
ollama run hf.co/TokenBender/Apprentice-v0.5
- Unsloth Desktop
- Pi
How to use TokenBender/Apprentice-v0.5 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf TokenBender/Apprentice-v0.5
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": "TokenBender/Apprentice-v0.5" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use TokenBender/Apprentice-v0.5 with Docker Model Runner:
docker model run hf.co/TokenBender/Apprentice-v0.5
- Lemonade
How to use TokenBender/Apprentice-v0.5 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TokenBender/Apprentice-v0.5
Run and chat with the model
lemonade run user.Apprentice-v0.5-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use TokenBender/Apprentice-v0.5 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf TokenBender/Apprentice-v0.5
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 TokenBender/Apprentice-v0.5
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use TokenBender/Apprentice-v0.5 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf TokenBender/Apprentice-v0.5
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 "TokenBender/Apprentice-v0.5" \ --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"
Apprentice v0.5 (Qwen3.8-27B, 10.96 GB)
Apprentice v0.5 is a 10.96 GB drop-in GGUF extracted from frozen Qwen/Qwen3.8-27B using Chantless capability extraction โ zero LoRA, zero fine-tuning, zero speed tax.
I collected personal research trajectories over a 1.5-month period alongside DeepSWE trajectories present in the open, annotated them for recurrent issues, and extracted a 10.96 GB model that cures Qwen3.8's overthinking while keeping long-horizon coding intact. It runs on a 16 GB GPU or 24 GB MacBook with 64K lossless f16 KV cache on stock llama.cpp.
Built using Chantless - https://github.com/DeusExperiments/chantless
Results
Files & Provenance
| File | Size | SHA-256 | Description |
|---|---|---|---|
Qwen3.8-27B-Apprentice-v0.5.gguf |
10.96 GB |
d6ae6b2c117d1634d1b51f413a6cc62645e82f389c3e44146696290a5017de11 |
Final extracted GGUF ready for stock llama.cpp |
masks/qwen38-27b-apprentice-v0.5-extract-mask.json |
10.8 KB |
884e04fea80fc6c8ca1c0f89f9b156c96885ca5e9f7b732af92aac5840946fb7 |
Stage-1 chantless.mask/v3 extraction mask |
masks/qwen38-27b-apprentice-v0.5-overlay.json |
4.5 KB |
234e40a565e93f8695afdd14f83d3052e33b2c2804c793b4942e987a92b8a9a0 |
Stage-2 Apprentice v0.5 overlay mask (+0 B size delta) |
- Base model:
Qwen/Qwen3.8-27B(pinned revision1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0, F16 GGUF SHA-25605f18ee2b177c76c34a827a1bcada598a9bfd99f939ddcb8b37a9e47874f6599)
How to Use
1. Download the GGUF
huggingface-cli download TokenBender/Apprentice-v0.5 Qwen3.8-27B-Apprentice-v0.5.gguf --local-dir .
(You can also launch directly with -hf TokenBender/Apprentice-v0.5 in recent llama.cpp builds.)
2. Serve with llama.cpp (OpenAI-compatible API)
Recommended sampling: temp=0.6, top_p=0.95, top_k=20, and do not enable DRY or repetition penalties (Apprentice v0.5 suppresses looping natively without breaking code tokens). Keep the KV cache at lossless f16 (-ctk f16 -ctv f16).
16 GB GPU / 24 GB MacBook (64K context):
llama-server \
-m Qwen3.8-27B-Apprentice-v0.5.gguf \
-ngl 99 \
-c 65536 \
-fa on \
--jinja \
-ctk f16 -ctv f16 \
--temp 0.6 --top-p 0.95 --top-k 20 \
--host 127.0.0.1 --port 8080
With DFlash2 speculative decoding (optional, 24 GB+ VRAM / A100 / H100):
huggingface-cli download z-lab/Qwen3.8-27B-DFlash2-GGUF Qwen3.8-27B-DFlash2-Q8_0.gguf --local-dir .
llama-server \
-m Qwen3.8-27B-Apprentice-v0.5.gguf \
-md Qwen3.8-27B-DFlash2-Q8_0.gguf \
-ngl 99 -ngld 99 \
--spec-type draft-dflash2 \
--spec-draft-n-max 11 \
-c 65536 \
-fa on \
--jinja \
-ctk f16 -ctv f16 \
--temp 0.6 --top-p 0.95 --top-k 20 \
--host 127.0.0.1 --port 8080
(On 40 GB+ GPUs such as A100 or H100, you can increase -c up to 262144.)
3. Quick CLI Test (llama-cli)
llama-cli \
-m Qwen3.8-27B-Apprentice-v0.5.gguf \
-ngl 99 \
-c 65536 \
-fa on \
--jinja \
-ctk f16 -ctv f16 \
--temp 0.6 --top-p 0.95 --top-k 20 \
-p "Write a lock-free SPSC ring buffer in C++20."
4. Rebuilding from Base + Masks
To inspect or rebuild the Stage-1 extracted base from pinned Qwen/Qwen3.8-27B using masks/qwen38-27b-apprentice-v0.5-extract-mask.json, see the Chantless CLI at github.com/DeusExperiments/chantless.
Built using Chantless - https://github.com/DeusExperiments/chantless
- Downloads last month
- 539
We're not able to determine the quantization variants.
Model tree for TokenBender/Apprentice-v0.5
Base model
Qwen/Qwen3.8-27B





