K2 Horizon 7B Experimental Repository Fine Tune
This Q4_K_M GGUF is an experimental fine-tune of IFM/K2-Horizon-7B. In paired testing, the checkpoint improved faulty-file and faulty-symbol localization. The repository repair gain was small, short coding pass rates fell, and the model rarely recognized repaired code as clean. This checkpoint is intended for research on repository localization.
Load the model
Use a llama.cpp build with K2 Horizon support. Evaluation used llama.cpp revision 4625240437c6821ee5c2da99e12d4817c6a8f07f.
sha256sum -c SHA256SUMS
llama-server -m K2-Horizon-7B-repo-experimental-Q4_K_M.gguf \
-ngl 99 -c 16384 -np 1 --no-webui --host 127.0.0.1 --port 18737
Evaluation
The reference is the untouched IFM model converted to FP16 GGUF. Both models used the same task prompts and decoding settings within each benchmark.
| Metric | Paired tasks | Base FP16 | Tuned Q4_K_M | Change | Paired 95% interval |
|---|---|---|---|---|---|
| Repository repair | 67 | 10.45% | 11.94% | +1.49 pp | −6.49 to +10.00 pp |
| Faulty-file localization | 71 | 39.44% | 60.56% | +21.13 pp | +12.50 to +37.50 pp |
| Faulty-symbol localization | 66 | 30.30% | 37.88% | +7.58 pp | +1.25 to +15.56 pp |
| Repaired snapshot correctly marked clean | 18 | 5.56% | 11.11% | +5.56 pp | −15.38 to +19.05 pp |
| HumanEval+ pass@1 | 164 | 82.93% | 66.46% | −16.46 pp | −24.39 to −9.15 pp |
| MBPP+ pass@1 | 378 | 71.96% | 62.70% | −9.26 pp | −14.02 to −4.50 pp |
Repository tasks came from a subset of SWE-bench Verified spanning seven repositories. The custom evaluation used source excerpts and structured edits, with repair correctness graded by the SWE-bench verifier. Four repair pairs were excluded for infrastructure failures. Repository intervals are bootstrapped by repository. These results describe the subset and harness used here. Short coding was scored with EvalPlus v0.3.1.
Training and provenance
Attention LoRA was trained on compact pre-fix source excerpts, structured edits and localization targets, repaired controls, and short Python coding tasks. The final run processed 5.04 million input tokens in 152 optimizer steps. The selected adapter checkpoint was from step 142. The adapter was merged into the base weights in FP32, converted to FP16 GGUF, and quantized to Q4_K_M.
- Base model revision, published by the Institute of Foundation Models under Apache 2.0.
- Nebius SWE-rebench OpenHands trajectories, with issue and repair examples adapted from passing trajectories. Dataset attribution to Nebius under CC BY 4.0.
- Together CoderForge Preview, a screened subset of passing trajectories with permissive repository license labels.
- Google Research MBPP, with prompts adapted from the train split and screened for overlap with EvalPlus. Dataset attribution to Google Research under CC BY 4.0.