Lightweight FIM autocomplete model for Python, built on Qwen2.5-Coder-0.5B.
Quill is a 0.5B parameter code-completion model designed for Fill-in-the-Middle (FIM) tasks in IDEs and editors. It runs comfortably on consumer hardware and is one of the few publicly available 0.5B models trained specifically for autocomplete.
Part of the Minsore family · minsore.com
<fim_prefix>, <fim_suffix>, <fim_middle>Evaluated against 0.5B–1B code models. All runs used temperature=0.0, raw FIM mode (--chat-template none).
| Benchmark | Quill 1 Preview | Arche-Codium 0.5B | Granite 4.0 1B | Qwen2.5-Coder 0.5B |
|---|---|---|---|---|
| HumanEval@50 | 54.0% | 96.0% | 58.0% | 52.0% |
| HumanEval-Infilling (EditSim) | 0.423 | 0.053 | 0.041 | 0.045 |
| HumanEval-Infilling (Exact Match) | 16% | 0% | 0% | 0% |
| NextBench v0.2 (autocomplete) | 45.0% | 5.0% | 25.0% | 41.7% |
| Delulu FIM (EditSim) | 0.318 | 0.087 | 0.041 | 0.035 |
📌 Key insight: On FIM-specific benchmarks, Quill outperforms competitors by 8–10×. On pure code generation (HumanEval), it matches the base model — training added FIM capability without hurting generation.
llama-server -m quill-1-preview.Q4_K_M.gguf \
--port 8080 \
-ngl 99 \
--chat-template none
Requirements: any GPU with ≥2 GB VRAM (full offload), or partial CPU offload as fallback.
curl http://localhost:8080/infill \
-H "Content-Type: application/json" \
-d '{
"input_prefix": "def add(a, b):\n ",
"input_suffix": "\n\nprint(add(2, 3))",
"n_predict": 64,
"temperature": 0.0
}'
Response:
{
"content": "return a + b",
"stop": true
}
import requests
def fim_complete(prefix, suffix, max_tokens=64):
r = requests.post("http://localhost:8080/infill", json={
"input_prefix": prefix,
"input_suffix": suffix,
"n_predict": max_tokens,
"temperature": 0.0,
"stop": ["<fim_end>", "<|endoftext|>"],
})
return r.json()["content"]
print(fim_complete(
"def fib(n):\n if n <= 1:\n return n\n return ",
"\n\nprint(fib(10))"
))
# → "fib(n - 1) + fib(n - 2)"
| Parameter | Value | Notes |
|---|---|---|
n_predict |
128–256 | Works best on short completions |
temperature |
0.0 | Deterministic; for creative variation use 0.2 |
repeat_penalty |
1.1 | Prevents number-looping |
stop |
`["<fim_end>", "< | endoftext |
--chat-template |
none |
Required. Quill is not a chat model |
repeat_penalty=1.1)| Base model | Qwen2.5-Coder-0.5B-Instruct |
| Method | QLoRA (r=16, α=16) |
| Data | Mixed FIM + Python instruction data |
| Epochs | 1 |
| Context | 1024 tokens |
| FIM tokens | <fim_prefix>, <fim_suffix>, <fim_middle>, <fim_pad> |
| File | Size | Description |
|---|---|---|
quill-1-preview.Q4_K_M.gguf |
~400 MB | Ready to use (recommended) |
quill-1-preview-f16.gguf |
~1 GB | Full precision GGUF |
lora/ |
~35 MB | LoRA adapter for fine-tuning |
pattern_hit to 70%+Apache 2.0 — same as the base Qwen2.5-Coder-0.5B model.
Minsore — Ukrainian AI lab building open language models.
⭐ If Quill is useful, star the repo and share your results.
Qwen/Qwen2.5-Coder-0.5B-Instruct