Downloads · 30 days
58
29% of all-time downloads
h0ney-badger/qwen2.5-coder-7b-pyc-distill
qwen2.5-coder-7b-pyc-distill is a text generation model from h0ney-badger. Use it when you need the model to write or continue text. It is set up for gguf. The card lists the license as apache-2.0.
A QLoRA fine-tune of Qwen2.5-Coder-7B-Instruct, specialized for Python and C by self-distillation from the larger Qwen2.5-Coder-14B-Instruct teacher. Trained entirely on locally-generated, execution-verified synthetic…
Downloads · 30 days
58
29% of all-time downloads
All-time downloads
201
Public
Repo size
10.9 GB
Likes
0
Public
Click a slice to open those files.
.gguf5.4 GB · 100%
From the Hugging Face model README
A QLoRA fine-tune of Qwen2.5-Coder-7B-Instruct, specialized for Python and C by self-distillation from the larger Qwen2.5-Coder-14B-Instruct teacher. Trained entirely on locally-generated, execution-verified synthetic data on a single 16 GB consumer GPU (RTX 5070 Ti).
TL;DR — On a held-out, execution-scored eval it lifts the base model from 60.8% → 74.2% pass@1: C jumps (47% → 64%) and Python jumps too (78% → 87%). It also writes complete, interactive programs from natural asks, not just bare functions. Specialized for Python/C — read the honest caveats below.
Same eval set, same Q5_K_M quant, same prompts. The base is the exact weights this model was fine-tuned from, so this isolates what the fine-tune did.
| Model | Python | C | Total |
|---|---|---|---|
| Qwen2.5-Coder-7B-Instruct (base) | 77.8% (42/54) | 47.0% (31/66) | 60.8% (73/120) |
| This model | 87.0% (47/54) | 63.6% (42/66) | 74.2% (89/120) |
| Δ | +9.2 | +16.6 | +13.4 |
pass@1 = the model's code was compiled/run against held-out tests and had to pass. Numbers carry ±1–2 samples of run-to-run sampling noise (temperature 0.2).
gcc-compiled-and-run against their tests; only samples that pass are kept.
The teacher's C prompt is constrained to emit self-contained code (all #includes)
with explicit function/type contracts.Run with the chat template applied and low temperature (~0.2) — via
llama-serverorllama-cli -cnv. Raw-pcompletion mode at default temp will underperform.
The eval is execution-based on a dedicated 120-sample set that is disjoint from the training data (exact + fuzzy dedup). It is deliberately not HumanEval or MBPP: the point was to avoid the "benchmaxxing" trap of training toward a public benchmark (or worse, contaminating on it). The trade-off is honesty over comparability — these numbers are meaningful relative to the base on this set, not directly comparable to leaderboard scores.
main(), self-contained solution"). A neutral benchmark would
likely show a smaller gap.Q5_K_M GGUF (~5.1 GB), runs anywhere llama.cpp does.
# llama.cpp
llama-server -m qwen-coder-7b-mine-Q5_K_M.gguf -ngl 99 -c 4096
# or LM Studio: drop the .gguf into ~/.lmstudio/models/<folder>/ and load it
There is also a Python-only 1.5B sibling (941 MB, runs on CPU) built by the same pipeline — see the repo.
Built as a learning project in honest, contamination-controlled small-model distillation. The interesting artifact is the reproducible pipeline — see the repo.