VIDRAFT released POCKET-27B-Pi, a 27B-parameter coding agent built on a Qwen3.8-27B backbone with a pi coding adapter merged directly into the weights, distributed as a single Apache-2.0-licensed GGUF file. The Q4_K_M variant weighs 16.5 GB (16,547,400,320 bytes) and the Q6_K variant 22.1 GB (22,082,529,920 bytes). The model's hybrid attention architecture — 16 full-attention layers and 48 linear-attention layers whose KV state does not grow with context — enables a 64K context window to fit on a single 24 GB GPU. With 4 key-value heads and 256 head_dim, the f16 KV cache at 64K tokens is ~4.0 GiB; llama.cpp quantized caches reduce this to ~2.13 GiB (q8_0) or ~1.13 GiB (q4_0). Combined with Q4_K_M weights (~15.4 GiB), total VRAM usage stays under 24 GB with headroom. On Terminal-Bench 2.1 (48 shared tasks, one-hour budget, thinking disabled), POCKET-27B-Pi Q4_K_M completed 28 tasks (58.3%) versus 19 (39.6%) for base Qwen3.8-27B, a 47% relative improvement. It also outperformed the full-precision 53.8 GB pi build by 33% at 3.3× smaller size. Q4_K_M matched Q6_K exactly at 39/62 tasks, supporting Q4_K_M as the recommended format. Agent efficiency improved: median 15 turns versus 36.5 for unmodified POCKET-27B, with zero runs hitting the 100-turn cap versus 14. Deployment uses llama-server with 65536 context, q8_0 KV cache, and thinking disabled, exposing an OpenAI-compatible API for offline inference.
Read original
dev.to