4B Qwen tuned with SFT+RL produces 81% faster Postgres query plans for $1,200

JeremyCMorgan · x · 2026-09-22

Rohan Bansal post-trained a 4B Qwen model with SFT plus agentic RL to steer Postgres via pghintplan, achieving a 1.81x geomean speedup on the Join Order Benchmark for $1,200 all in. Code is public.

Key details:

Original post →

More from coding & agent

coding & agent channel →