Instructions to use FINAL-Bench/POCKET-27B-Pi-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 FINAL-Bench/POCKET-27B-Pi-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 FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf FINAL-Bench/POCKET-27B-Pi-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 FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf FINAL-Bench/POCKET-27B-Pi-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 FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M
Use Docker
docker model run hf.co/FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use FINAL-Bench/POCKET-27B-Pi-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FINAL-Bench/POCKET-27B-Pi-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": "FINAL-Bench/POCKET-27B-Pi-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M
- Ollama
How to use FINAL-Bench/POCKET-27B-Pi-GGUF with Ollama:
ollama run hf.co/FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use FINAL-Bench/POCKET-27B-Pi-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FINAL-Bench/POCKET-27B-Pi-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": "FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use FINAL-Bench/POCKET-27B-Pi-GGUF with Docker Model Runner:
docker model run hf.co/FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M
- Lemonade
How to use FINAL-Bench/POCKET-27B-Pi-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.POCKET-27B-Pi-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use FINAL-Bench/POCKET-27B-Pi-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 FINAL-Bench/POCKET-27B-Pi-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 FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use FINAL-Bench/POCKET-27B-Pi-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FINAL-Bench/POCKET-27B-Pi-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 "FINAL-Bench/POCKET-27B-Pi-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"
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M# Run inference directly in the terminal:
llama cli -hf FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_MBuild 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 FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M# Run inference directly in the terminal:
./build/bin/llama cli -hf FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_MUse Docker
docker model run hf.co/FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_MPOCKET-27B-Pi-GGUF
The coding-specialist POCKET model. A 27B coding agent that reads the repository, runs the commands, checks the tests and finishes the job, packed into a single GGUF file that runs on one workstation GPU. Built for the pi coding agent.
+47% coding ability over the original Qwen3.8-27B, at Q4. Coding ability on Terminal-Bench 2.1, same GPU, same 48 tasks, same one-hour limit: the original Qwen3.8-27B solved 39.6%, the pi model at full precision (53.8 GB) solved 43.8%, and the 16.5 GB POCKET-27B-Pi solved 58.3%. That is 47% more tasks than the original and 33% more than the full-precision pi model.
| Original model | Pi model | Our model | |
|---|---|---|---|
| Qwen3.8-27B, original weights | Qwen3.8-27B-pi-adapted, full precision | POCKET-27B-Pi Q4_K_M | |
| File size | 22.4 GB | 53.8 GB | 16.5 GB |
| Coding tasks solved | 39.6% | 43.8% | 58.3% |
- 33% more tasks solved than the full-precision original, in a file 3.3 times smaller (28 against 21 on the same 48 tasks). The small build runs faster on the same GPU, so it finishes more jobs inside the time limit.
- About 1.5 times as many tasks solved as POCKET-27B (28 against 19 on the same 48 tasks).
- Fewer than half the turns per task (median 15 against 36.5), so every job costs less time and fewer tokens.
- Finishes inside the budget: none of its 50 head-to-head runs reached the 100-turn cap. POCKET-27B reached it 14 times.
- The small build keeps the full score: Q4_K_M and Q6_K solved 39 and 39 on 62 head-to-head tasks.
- One file, no adapter at serving time: the coding adapter is merged into the weights, so any GGUF runtime loads it as a regular model.
- Your code stays on your machine. No API, no upload, no per-token bill.
Pick your setup
Files
| File | Size | Use it for | SHA-256 |
|---|---|---|---|
POCKET-27B-Pi-Q4_K_M.gguf |
16.5 GB | Recommended. A single 24 GB GPU, the fastest agent loop | 2428bb45ff065f8f98f8529d383d6bdbc9b79558b307d34ed5830c317a28831a |
POCKET-27B-Pi-Q6_K.gguf |
22.1 GB | Highest fidelity build, 32 GB GPUs and up, 57 tokens per second on an RTX PRO 6000 | 5d51e92ec352f071780bb83624bb206a34aad84bd3e2cd5197abd00f0b093cad |
Both builds are reproducible: rebuilding from the same inputs gives the same SHA-256.
Results
POCKET-27B-Pi on Terminal-Bench 2.1 (measured on these GGUF files)
One attempt per task, thinking off, a 100-step budget and one hour per task, under the pi harness, sampling at temperature 0.8 with top-p 1.0. Every build ran under identical settings and is compared head to head on the tasks both builds completed.
| Build | File size | Tasks solved, same 48 tasks | Score |
|---|---|---|---|
| Our model: POCKET-27B-Pi Q4_K_M | 16.5 GB | 28 | 58.3% |
| Our model: POCKET-27B-Pi Q6_K | 22.1 GB | 27 | 56.3% |
| Pi model: Qwen3.8-27B-pi-adapted, full precision | 53.8 GB | 21 | 43.8% |
| Original model: Qwen3.8-27B, original weights (POCKET-27B) | 22.4 GB | 19 | 39.6% |
All four builds ran on the same GPU with eight parallel agent sessions and one hour per task, and are compared on the 48 tasks every build completed. Head to head, pair by pair:
| Comparison | Tasks | Result |
|---|---|---|
| POCKET-27B-Pi Q4_K_M against the full-precision original | 50 | 30 against 23 solved |
| POCKET-27B-Pi Q6_K against the full-precision original | 50 | 29 against 23 solved |
| POCKET-27B-Pi Q6_K against POCKET-27B | 50 | 29 against 19 solved |
| POCKET-27B-Pi Q4_K_M against POCKET-27B | 49 | 29 against 19 solved |
| POCKET-27B-Pi Q4_K_M against Q6_K | 62 | 39 against 39 solved |
| Work per task, Q6_K, same 50 tasks | POCKET-27B-Pi | POCKET-27B |
|---|---|---|
| Median agent turns | 15 | 36.5 |
| Runs that reached the 100-turn cap | 0 | 14 |
POCKET-27B-Pi solved 14 tasks that POCKET-27B did not. The quantized builds were evaluated themselves, on real agent tasks, so the numbers above describe the files you download.
The coding adapter inside (reported by its authors, full precision)
POCKET-27B-Pi carries the pi coding adapter merged into its weights. Its authors report, under the pi harness with one attempt per task:
| Benchmark | Qwen3.8-27B | Qwen3.8-27B, xhigh thinking |
With the pi adapter, thinking off |
|---|---|---|---|
| SWE-bench Pro (hard 51) | 39.2% | 74.5% | 64.7% |
| Terminal-Bench 2.1 | 41.0% | 54.2% | 56.6% |
- SWE-bench Pro (hard 51): 39.2% to 64.7%, 15 tasks newly solved.
- Terminal-Bench 2.1: 39.5% to 55.8% on 86 paired tasks, 16 tasks newly solved (p = 0.0013).
- Level with maximum-effort thinking on Terminal-Bench 2.1, without thinking, while generating about 4.5 times fewer tokens per task.
- Less work per solved task: 8 turns against 18 on Terminal-Bench 2.1 and 23 against 59 on SWE-bench Pro, on the tasks both solve.
| Median per task, against the base model with thinking | With the pi adapter | Base model with thinking |
|---|---|---|
| Generated tokens, SWE-bench Pro | 9.4k | 48.8k |
| Generated tokens, Terminal-Bench 2.1 | 3.7k | 16.5k |
| Model calls, SWE-bench Pro | 21 | 61 |
| Model calls, Terminal-Bench 2.1 | 9 | 19 |
Our own baseline agrees with theirs: POCKET-27B, which carries the unchanged base weights, solved 38.0% in our run, next to the 39.5% they report for the base model.
Quick start
Serve it with llama.cpp:
llama-server -hf FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M \
-ngl 999 -c 65536 --port 8080 --alias pocket-27b-pi \
--temp 0.8 --top-p 1.0 --top-k 0 --min-p 0 \
--chat-template-kwargs '{"enable_thinking":false}'
This is the configuration of our evaluation. Thinking off is what the model is tuned for: it reaches the answer through short notes between tool calls instead of a long reasoning block. Temperature 0.8 with top-p 1.0 is the sampling it was trained with.
Running several agents at once? Add -np 8 -c 524288 to give eight sessions a 65,536-token window each.
Use with pi
Install pi (Node.js 22.19 or newer):
npm install -g --ignore-scripts @earendil-works/pi-coding-agent
Add the server to ~/.pi/agent/models.json:
{
"providers": {
"local": {
"baseUrl": "http://localhost:8080/v1",
"api": "openai-completions",
"apiKey": "dummy",
"models": [{ "id": "pocket-27b-pi" }]
}
}
}
"api": "openai-completions" matters: it is the API the model was trained and evaluated with.
pi --provider local --model pocket-27b-pi --print "Find out why the tests in tests/test_parser.py fail and fix the bug."
| Setting | Value |
|---|---|
| API | OpenAI chat completions |
| Thinking | off |
| Context window | 65,536 |
| Max output tokens | 32,768 |
| Sampling | temperature 0.8, top-p 1.0, top-k 0, min-p 0 |
Any OpenAI-compatible coding agent can use the same endpoint.
Run it with Llama.app (macOS)
Install Llama.app and launch it once. On first launch it creates
~/.config/llama/models.user.ini.Register the model. It is a single file, so there is no adapter line:
cat >> ~/.config/llama/models.user.ini <<EOF [FINAL-Bench/POCKET-27B-Pi] hf-repo = FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M temp = 0.8 ctx-size = 32768 EOFRestart Llama.app and choose FINAL-Bench/POCKET-27B-Pi from the model list. The app downloads the 16.5 GB file on first use.
How it is built
POCKET-27B-Pi combines two Apache-2.0 releases and the POCKET packaging:
- Qwen/Qwen3.8-27B, the base model.
- harness-hub/Qwen3.8-27B-pi-adapted, a LoRA adapter trained with reinforcement learning to work as the model behind the pi coding agent.
- POCKET packaging. The adapter is merged into the base weights (
llama-export-lora), giving a standalone model with no LoRA at serving time, then quantized with llama.cpp to Q4_K_M and Q6_K. The merge was checked against the adapter-on-base reference before quantization, and each quantized build was then measured on real agent tasks.
How the adapter was trained, as published by its authors:
| Method | AsyncGRPO reinforcement learning (TRL), LoRA r = 32 |
| Environment | Harbor tasks served by OpenEnv, rollouts in sandboxes, tool calls screened by safeagents |
| Harness | pi |
| Tasks | 750 scale800 tasks interleaved with 300 TermGrade tasks |
| Reward | the task verifier's correctness score, plus a tool-efficiency bonus |
| Rollouts | 8 per task, temperature 0.8, thinking off |
The model learned from verifier rewards: it was paid for tasks that actually pass their tests, and for getting there with fewer tool calls.
The POCKET family
| Model | What it is for |
|---|---|
| POCKET-27B-Pi (this model) | Coding agents on one GPU |
| POCKET-Darwin-180B | Flagship math and science reasoning on a desktop AI machine |
| POCKET-35B | On-device mixture-of-experts model for laptops and phones |
| POCKET-26B | Mobile and multilingual chat |
| POCKET-27B | General chat and vision at 27B |
νκ΅μ΄ μμ½
POCKET-27B-Pi λ μ½λ© μ λ¬Έ POCKET λͺ¨λΈμ λλ€. μ μ₯μλ₯Ό μ½κ³ , λͺ λ Ήμ μ€ννκ³ , μνμ λλ € κ°λ©° μΌμ λλ΄λ 27B μ½λ© μμ΄μ νΈλ₯Ό GGUF νμΌ νλμ λ΄μμ΅λλ€.
- Q4 μΈλ°λ μ€λ¦¬μ§λ Qwen3.8-27B λλΉ μ½λ© λ₯λ ₯ +47% μ λλ€. κ°μ κ·Έλν½μΉ΄λ, κ°μ Terminal-Bench 2.1 κ³Όμ 48κ°, κ°μ 1μκ° μ νμμ μ€λ¦¬μ§λ Qwen3.8-27B λ 39.6%, μ μ λ°λ pi λͺ¨λΈ(53.8GB)μ 43.8%, 16.5GB POCKET-27B-Pi λ 58.3% λ₯Ό νμμ΅λλ€.
- κ³Όμ νλλ₯Ό λλ΄λ λ° μ°λ λ¨κ³κ° μ λ° μ΄νμ λλ€(μ€μκ° 15λ¨κ³ λ 36.5λ¨κ³). 100λ¨κ³ νλκΉμ§ κ° μ€νμ΄ ν 건λ μμ΅λλ€.
- 16.5GB(Q4_K_M) κ° 22.1GB(Q6_K)μ κ°μ μμ κ³Όμ λ₯Ό νμμ΅λλ€(62κ³Όμ μμ 39 λ 39). 24GB κ·Έλν½μΉ΄λ ν μ₯μ΄λ©΄ λ©λλ€.
- κΈ΄ γμκ°γ λ¨κ³ μμ΄ λ°λ‘ μΌν©λλ€. μμ λ μ½λ© μ΄λν°λ μκ°μ λ μ±λ‘ μ΅λ κ°λ μκ° λͺ¨λμ κ°μ μμ€μ Terminal-Bench 2.1 μ μλ₯Ό λ΄λ©°, μμ±νλ κΈμ μλ μ½ 4.5λΆμ 1 μ λλ€(μ΄λν° μ μμ λ°ν).
- μ΄λν°λ₯Ό κ°μ€μΉμ ν©μ³ νμΌ νλλ‘ μ€νν©λλ€. μ½λκ° λ°μΌλ‘ λκ°μ§ μκ³ API μκΈλ μμ΅λλ€.
License
Apache-2.0. Built on Qwen/Qwen3.8-27B (Apache-2.0) and harness-hub/Qwen3.8-27B-pi-adapted (Apache-2.0).
Made by VIDRAFT.
- Downloads last month
- 603
4-bit
6-bit
Model tree for FINAL-Bench/POCKET-27B-Pi-GGUF
Base model
Qwen/Qwen3.8-27B
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M# Run inference directly in the terminal: llama cli -hf FINAL-Bench/POCKET-27B-Pi-GGUF:Q4_K_M