Qwen3.8 27B Pi needs about 20.1 GB of memory at Q4_K_M (a 17.4 GB file) with an 8K context window, so it fits on a 24 GB GPU. This repository has 26 quants, from 0.0 GB to 54.7 GB (BF16). Longer context needs more: at 32K tokens the KV cache alone adds about 8.7 GB.
Qwen3.8‑27B‑Pi – a 27‑billion‑parameter model fine‑tuned for iterative coding tasks
Qwen3.8‑27B‑Pi is a 27‑billion‑parameter model built on Qwen3.8‑27B. It is fine‑tuned for the Pi agent harness, focusing on reading repositories, editing files, running tools, and responding to feedback. The model supports text and image input and includes MTP layers for speculative decoding.
Good at
- Iterative coding and debugging
- Tool‑guided task completion
- Reasoning with efficient effort
Limits
- Large context size requires significant VRAM
- No native vision support without mmproj
- Requires llama.cpp b11279 or newer
Best for
- Automated code editing workflows
- Agent‑based tool integration
- Complex debugging loops
Who it’s for. Developers and researchers who need a model that can work through coding tasks step by step, using tool calls and feedback. The model is suitable for local deployment with sufficient GPU memory and a compatible llama.cpp build.
Quants & memory
| Quant | File | Est. memory | vs VRAM | Result | |
|---|---|---|---|---|---|
| — | 0.0 GB | 2.7 GB | Fits | Get file → | |
| IQ2_XXS | 8.9 GB | 11.6 GB | Too big | Get file → | |
| IQ2_XS | 9.1 GB | 11.8 GB | Too big | Get file → | |
| IQ2_S | 9.7 GB | 12.4 GB | Too big | Get file → | |
| IQ2_M | 10.5 GB | 13.2 GB | Too big | Get file → | |
| Q2_K | 10.8 GB | 13.5 GB | Too big | Get file → | |
| IQ3_XXS | 12.3 GB | 15.0 GB | Too big | Get file → | |
| Q3_K_S | 12.7 GB | 15.4 GB | Too big | Get file → | |
| IQ3_XS | 12.8 GB | 15.5 GB | Too big | Get file → | |
| Q3_K_M | 13.4 GB | 16.1 GB | Too big | Get file → | |
| Q3_K_L | 14.1 GB | 16.8 GB | Too big | Get file → | |
| IQ3_M | 14.9 GB | 17.5 GB | Too big | Get file → | |
| IQ4_XS | 15.5 GB | 18.2 GB | Too big | Get file → | |
| Q4_0 | 16.3 GB | 19.0 GB | Too big | Get file → | |
| Q4_K_S | 16.4 GB | 19.0 GB | Too big | Get file → | |
| IQ4_NL | 17.4 GB | 20.1 GB | Too big | Get file → | |
| Q4_K_M | 17.4 GB | 20.1 GB | Too big | Get file → | |
| Q4_1 | 17.8 GB | 20.5 GB | Too big | Get file → | |
| Q4_K_L | 18.8 GB | 21.5 GB | Too big | Get file → | |
| Q5_K_S | 19.6 GB | 22.2 GB | Too big | Get file → | |
| Q5_K_M | 20.9 GB | 23.6 GB | Too big | Get file → | |
| Q6_K_S | 22.9 GB | 25.5 GB | Too big | Get file → | |
| Q6_K | 23.9 GB | 26.5 GB | Too big | Get file → | |
| Q6_K_L | 25.0 GB | 27.6 GB | Too big | Get file → | |
| Q8_0 | 29.1 GB | 31.8 GB | Too big | Get file → | |
| BF16 | 54.7 GB (2 parts) | 57.3 GB | Too big | Get file → |
For 8‑GB VRAM, use IQ2_XXS (8.88 GB) or IQ2_XS (9.09 GB). For 16‑GB VRAM, Q4_K_M (17.44 GB) balances size and performance. For 32‑GB VRAM, Q6_K (23.86 GB) or Q8_0 (29.12 GB) provide higher fidelity.
What GPU do you need for Qwen3.8 27B Pi?
These figures add the file size, an fp16 KV cache at an 8K context window (worked out from this model’s own header) and about 0.5 GB for the runtime. They are estimates, so leave a little headroom, and expect to use less context or a smaller quant if you are right at the limit.
- 4 GB VRAM: the best quant that fits is the main file (0.0 GB file, about 2.7 GB in use).
- 6 GB VRAM: the best quant that fits is the main file (0.0 GB file, about 2.7 GB in use).
- 8 GB VRAM: the best quant that fits is the main file (0.0 GB file, about 2.7 GB in use).
- 12 GB VRAM: the best quant that fits is IQ2_XS (9.1 GB file, about 11.8 GB in use).
- 16 GB VRAM: the best quant that fits is IQ3_XS (12.8 GB file, about 15.5 GB in use).
- 24 GB VRAM: the best quant that fits is Q5_K_M (20.9 GB file, about 23.6 GB in use).
- 32 GB VRAM: the best quant that fits is Q8_0 (29.1 GB file, about 31.8 GB in use).
- 48 GB VRAM: the best quant that fits is Q8_0 (29.1 GB file, about 31.8 GB in use).
Which Qwen3.8 27B Pi quant should you choose?
Q4_K_M is the usual starting point for Qwen3.8 27B Pi: it balances file size and quality well. Here it is a 17.4 GB file.
The Q8_0 file is 29.1 GB, about 1.7 times the size of Q4_K_M. It keeps the weights closer to the original, which only matters if you have the memory to spare.
If memory is tight, the smallest file is the first one in the table at 0.0 GB, with the quality trade-offs that come with fewer bits.
New to quant names? Read GGUF quantization explained.
Specifications
Architecture from the GGUF header
Source
Frequently asked questions about Qwen3.8 27B Pi
How much VRAM does Qwen3.8 27B Pi need?
About 20.1 GB at Q4_K_M with an 8K context window. That is the 17.4 GB file, plus the KV cache and roughly 0.5 GB of runtime overhead. Smaller quants need less and longer context needs more.
Can I run Qwen3.8 27B Pi on an 8 GB GPU?
Yes, with the smaller files: the 0.0 GB file needs about 2.7 GB at 8K context. Larger quants in this repository do not fit in 8 GB.
What is the file size of Qwen3.8 27B Pi GGUF?
It depends on the quant: file is 0.0 GB, IQ2_XXS is 8.9 GB, IQ2_XS is 9.1 GB, IQ2_S is 9.7 GB, IQ2_M is 10.5 GB, Q2_K is 10.8 GB and 20 more.
What context length does Qwen3.8 27B Pi support?
The GGUF header lists a trained context length of 262,144 tokens (256K). The KV cache grows with the context you use: about 2.2 GB at 8K and 8.7 GB at 32K.
Where can I download Qwen3.8 27B Pi GGUF?
The files are on Hugging Face in the bartowski/bytkim_Qwen3.8-27B-pi-GGUF repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.
What license does Qwen3.8 27B Pi use?
Hugging Face lists the license as apache-2.0. Licenses can differ between the quantized files and the original model, so check the repository and the base model before commercial use.
Can I run Qwen3.8‑27B‑Pi on 8 GB VRAM?
Use the IQ2_XXS or IQ2_XS quantizations; they fit within 8 GB VRAM with approximate 11.6–11.8 GB memory usage at 8k context.
Does this model support image input?
Yes, image input is supported with the mmproj projector files included in the repo.
What llama.cpp release is required?
The quants were made with llama.cpp release b11279; that release or newer is needed to run them.