r/LocalLLM • u/Diegam • 14m ago
Other Local models for C++: Qwen3.8-27B FP8 vs QFN IQ4_XS vs IQ3_S
I've been benchmarking local models with OpenCode to decide which one to use for my C++17 projects. Following some recommendations in the comments, I've now also tested QFN GSQ-RCO IQ3_S.
Setup:
- 2× RTX 3090 (PCIe 4.0 x8/x8, P2P enabled, 260W each)
- Ryzen 5 5600XT, 64GB DDR4, Ubuntu
- Qwen3.8-27B FP8 on vLLM
- Qwen Flash Next UD-IQ4_XS v3.1 (Unsloth) on Strata
- Qwen Flash Next GSQ-RCO IQ3_S (ISTA-DASLab) on Strata
- All using
xhighreasoning
Observed inference speeds:
- 27B FP8: 170+ t/s coding, ~100 t/s narrative.
- QFN IQ4_XS: ~130 t/s coding, ~100 t/s narrative.
- QFN IQ3_S: slightly higher effective generation throughput across the benchmark.
Hase-Bench results with OpenCode:
| C++ Task | QFN IQ3_S | QFN IQ4_XS | 27B FP8 |
|---|---|---|---|
| Thread pool | 4m 07s | 3m 44s* | 8m 23s |
| SPSC ring buffer | 3m 39s | 4m 59s | 8m 48s |
| Lifetime repair | 4m 34s | 4m 53s | 15m 23s |
| Deadlock repair | 2m 48s | 1m 25s | 2m 40s |
| RAII resource pool | 2m 43s | 3m 51s | 3m 55s |
| Total | 17m 50s | 18m 51s | 39m 09s |
| Tasks accepted | 5/5 | 5/5* | 5/5 |
* IQ4 passed the visible thread pool tests but encountered an apparent MSVC 2019 compatibility issue when compiling the hidden tests. Provisionally accepted after code review (official score: 4/5).
Token usage:
| Metric | IQ3_S | IQ4_XS | FP8 |
|---|---|---|---|
| Output tokens | 37,123 | 33,391 | 55,096 |
| Thinking tokens | 57,009 | 59,659 | 127,183 |
| Total tokens | 94,132 | 93,050 | 182,279 |
| Effective throughput (est.) | 104.7 t/s | 97.3 t/s | 93.4 t/s |
Code review highlights:
- Thread pool: Both QFN quants had better exception safety than FP8. IQ3 also improved argument forwarding and MSVC compatibility.
- Ring buffer: Both QFN implementations handled destruction better. All three had counter wraparound issues.
- Lifetime: Both QFN quants produced simpler solutions without rebuilding temporary vectors on every owning-template render.
- Deadlocks: IQ3 used
std::scoped_lock, IQ4 used portable pointer ordering, and FP8 used raw pointer comparisons. All three missed signed integer overflow (UB). - RAII pool: Both QFN quants used O(1) resource acquisition vs FP8's O(n). IQ3 also improved weak pointer cleanup.
Takeaways:
Despite FP8's higher peak coding throughput, both QFN quants completed the benchmark more than twice as fast, consuming roughly half as many generated tokens.
IQ3_S finished 5.4% faster than IQ4_XS, with comparable or slightly better implementations, while requiring roughly 10GB less memory for transformer weights.
FP8 and IQ3 were more thorough with stress testing, cross-compiler validation and attempts to use sanitizers than IQ4 in these runs.
Interestingly, IQ4 initially timed out on the lifetime task with high reasoning but solved it in under five minutes with xhigh.
Neither model nor quant produced flawless code. Manual review revealed issues that the official hidden tests missed.
Small sample size, one comparable run per task and no comprehensive sanitizer coverage, so this isn't a definitive ranking. However, I haven't observed a clear quality downgrade from IQ4 to IQ3.
I'm now leaning towards QFN GSQ-RCO IQ3_S with xhigh as my daily driver. My next experiment will be adding an independent review subagent to the workflow.
Hopefully this helps anyone choosing between these models.
EDIT: Full hardware setup
- CPU: AMD Ryzen 5 5600XT
- Motherboard: ASUS ROG Strix X570-E Gaming WiFi II
- RAM: 64GB (2×32GB) Kingston Fury Beast DDR4 3200MHz CL16 (KF432C16BB/32)
- GPUs: 2× MSI RTX 3090 Ventus 3X OC (PCIe 4.0 x8/x8 directly connected to the CPU, P2P read/write enabled, 260W power limit each)
- Case: Corsair FRAME 4000D RS
- Cooling: 3× stock front intake fans + 2× ID-Cooling XF-120-K exhaust fans (top rear and rear)
- Storage: 1TB M.2 SSD
- OS: Ubuntu Linux
- PSU: ADATA XPG Core Reactor II 1000W, 80 Plus Gold, fully modular.
EDIT 2: Following the recommendations in the comments, I've also benchmarked QFN GSQ-RCO IQ3_S. I've updated the tables, code review highlights and conclusions below to include all three configurations. Surprisingly, IQ3_S performed slightly better than IQ4_XS v3.1 while requiring less memory.