Local Quantized LLMs for Coding Agents: How Quantization Schemes Affect Programming Performance
An independent local benchmark recently compared three open-source models using EXL3 4-bit, FP8, and NVFP4 quantization on real programming tasks. This article reviews the benchmark’s test design, results, and selection guidance, showing that quantization affects not only inference speed and accuracy, but also how an AI agent plans, generates output, and consumes compute resources.
Background: Why Quantization Matters for Local Coding Deployments
As open-source LLMs become more capable, more developers are deploying them locally or in private environments for coding assistance, bug fixing, and autonomous agent workflows. A common constraint is hardware: to run larger models within limited VRAM and compute budgets, teams often use quantization schemes such as 4-bit, FP8, and newer 4-bit floating-point formats like NVFP4.
The benefits are clear: lower memory usage, higher throughput, and lower cost per token. The trade-offs are just as real. Precision loss can affect code correctness, and the quantization scheme can change a model’s output style and reasoning behavior.
An independent local benchmark, run on a dual-node high-performance local inference setup, recently compared three open-source models using different quantization schemes on practical coding tasks. The report’s main value is not in declaring a single winner, but in showing an often-overlooked fact: quantization affects more than speed and precision—it shapes how a model works as an agent.
This article reviews that benchmark’s design, results, and practical takeaways.
Test Design: Making the Evaluation Objective and Reproducible
Model evaluation often fails because of subjective judgment. This benchmark avoided that problem in three important ways.
1. Real tasks, not isolated exercises.
Instead of using puzzle-style algorithm questions, the benchmark asked each model to act as an agent on two realistic tasks:
- Fix Elixir bugs across 17 real codebases.
- Build a complete web application from scratch, with 19 functional checkpoints.
These tasks closely resemble daily development work and require code generation, tool use, context management, and self-correction.
2. Native tool calling.
Each model had to call 21 native tools—such as file read/write, command execution, and test running—through an agent workflow. This measures whether a model can actually function in a real engineering loop, not just write code in a chat window.
3. Automated scoring, no LLM judge.
All results were scored by automated scripts based on test execution. This avoids the bias and reproducibility problems of using one model to judge another. When possible, using executable tests as the scoring mechanism is one of the most reliable ways to make an evaluation trustworthy.
All three models passed the required test suite. That indicates that, at the current level of technology, reasonable quantization does not prevent models from completing complex coding tasks. The real differences showed up in how they worked.
Results: Three Distinct Working Modes
1. Minimized Output Mode: EXL3 4-Bit as the Speed Champion
The EXL3 4-bit quantized model completed the application-building task in about 18.4 minutes—the shortest time of the three. Interestingly, its underlying inference engine was not the fastest. The key advantage was extremely concise output: it generated only about 20,000 tokens.
This case highlights a performance formula that is often ignored:
Total time ≈ number of interactions × (prefill time + decode time + tool execution time)
Decode speed—tokens per second—is only one variable. How many tokens a model generates can matter more than how fast it generates them. For quick prototyping, a model with a terse output style can deliver more benefit than simply adding more inference hardware.
2. Plan-First Mode: FP8 for Autonomous Background Agents
The FP8 quantized model used the fewest interaction rounds: only 77. Its behavior was characterized by making a complete plan first, then executing it step by step. The process was clear and traceable.
One of the most important metrics was its prompt cache hit rate of 98%. In agent scenarios, every turn carries a long history context. Prefix caching reduces redundant computation, so a higher hit rate means lower effective compute cost and faster response per turn. For long-running, unattended agent tasks—such as bulk refactoring or automated fix pipelines—a model that plans first, executes next, and achieves high cache hit rates is the more practical choice.
3. Deep-Reasoning Mode: NVFP4 for Engineering Quality
The NVFP4 quantized model performed the most internal reasoning per interaction. It took the longest overall—27.6 minutes—but produced the most standardized code and the most test cases: 18 tests. It delivered the best engineering quality of the three.
This supports a common pattern: deeper reasoning effort can translate into higher output quality. For teams that care about test coverage and code consistency, a slower but more stable model may be the better choice, because rework and production incidents often cost much more than waiting a few extra minutes.
Selection Guidance: Match Quantization to the Workload
The benchmark results point to a practical selection framework:
| Scenario | Recommended Direction | Rationale |
|---|---|---|
| Rapid prototyping | 4-bit quantized model with concise output | Shortest total time; quickly produces runnable results |
| Unattended background agents | FP8 quantized model with planning behavior | Fewer interaction rounds; high cache hit rate; lowest long-running cost |
| High-quality delivery | NVFP4 quantized model with deep reasoning | More standardized code and stronger test coverage; lower rework risk |
Additional recommendations:
Define metrics before selecting a model. Decide which factors matter most: total time, interaction rounds, token consumption, test pass rate, or code quality. Only then can an evaluation be meaningful.
No quantization scheme is universally best. 4-bit favors speed, FP8 favors stability and cost efficiency, and newer 4-bit floating-point formats favor deeper reasoning. These are different trade-offs, not a single ranking.
Pay attention to cache behavior and context management. In agent workloads, prefix caching has a huge impact on real cost. Bare inference speed alone is not enough to choose a model.
Use automated scoring for reproducibility. Build evaluations around executable tests whenever possible. This avoids subjective scoring and makes results comparable across models and configurations.
Conclusion
The biggest lesson from this independent benchmark is that, when deploying quantized LLMs locally, “fastest” and “best” are often not the same path. The right quantization choice should follow the workload: use lightweight, concise models for frequent iteration; choose high-cache-hit models for unattended automation; and select deep-reasoning models when quality is the top priority.
Before starting deployment, investing time in a reproducible evaluation based on real tasks and machine scoring is more valuable long term than chasing the latest popular model.
