Experimenting with Ternary Model Fine-tuning for Agentic Coding

professormunchies · reddit · 2026-07-19

The author attempts post-training fine-tuning on true ternary/binary low-bit models like PrismML Bonsai 8B, aiming to make it function more like an agentic coding model, and tests it on 10 Python issues from SWE-rebench-v1.

Key Background

Fine-tuning Method

Results

| Run | patch rate | pass rate | training loss | notes |

|---|---:|---:|---:|---|

| base 8B (unfine-tuned) | 50% | 0% | - | - |

| QAT, trained only last 18 layers | 40% | 0% | 1.0 | Falls into repetitive loops |

| QAT, trained by "gradient impact layers" | 40% | 0% | 1.0 | Loop issue fixed, runs more stable |

| QAT, trained all 36 layers | 30% | 0% | 0.91 | Most stable, but worst patch rate |

Conclusion Leanings

Original post →

More from coding & agent

coding & agent channel →