Local Coding Agents with Quantized LLMs: EXL3 4-bit vs NVFP4 vs FP8

    An independent benchmark compared three open-source models using different quantization schemes on real coding-agent tasks, including bug fixing and full application construction. All three passed the automated acceptance checks, but they differed sharply in speed, token usage, cache behavior, and code quality. This article breaks down the test design, the three working modes, and practical selection guidance for local coding agents.

    1. Background: Why Run Coding Agents Locally

    As open-source large models improve rapidly, more developers are trying to bring agents into their own environments. Instead of sending all code to the cloud, the model can call tools, read and write code, run tests, and fix bugs locally. The benefits are straightforward: code stays inside the internal network, inference costs are controllable, the response path is shorter, and the agent can run autonomously in the background for long periods.

    However, local deployment cannot avoid a core constraint: GPU memory and compute are limited. The choice of quantization scheme directly determines how large a model you can run, how fast it runs, and what code quality it produces.

    A developer recently published a useful independent evaluation. On dual-node local high-performance inference hardware, it compared three open-source models using different quantization schemes as agents completing real programming tasks. Based on that report, this article abstracts the technical logic and conclusions to address a broader question: how does quantization affect coding-agent performance?

    2. Test Design: A Fairly Rigorous Automated Benchmark

    This evaluation is worth analyzing because its design avoids common subjective interference.

    1. Tasks are close to real development work

    • The agent needs to call 21 native tools, including file read/write, command execution, and test execution.
    • Task 1: fix 17 bugs in Elixir.
    • Task 2: build a complete web application from scratch, with 19 acceptance checkpoints.

    2. Scoring is fully automated

    No large-model judge is involved. All acceptance checks are completed programmatically. This avoids bias from a judge model preferring certain output styles, making the results closer to engineering facts.

    3. The three quantization schemes cover current mainstream approaches

    • EXL3 4-bit quantization: a common low-bit compression approach that aims to fit larger models into limited GPU memory.
    • NVFP4 quantization: a new-generation 4-bit floating-point format natively supported by newer-generation GPUs, preserving better numerical precision at low bit width.
    • FP8 quantization: 8-bit floating point with minimal precision loss, but its memory footprint is roughly twice that of 4-bit schemes.

    All three models passed the full test suite. This shows that when hardware is sufficient, quantization determines not whether an agent is usable, but how to use it most cost-effectively. The real differences appear in working patterns.

    3. Three Working Modes: The Speed, Cost, and Quality Trade-off

    1. Minimal Mode: EXL3 4-bit General Quantization — Fastest Completion

    The model using EXL3 4-bit quantization completed the application build in 18.4 minutes, the fastest of the three. Interestingly, its underlying inference engine was actually the slowest of the three in tokens/s.

    Why did it win? It produced very few output tokens—only about 20,000 tokens over the entire run.

    This reflects an engineering principle that is easy to overlook: total agent task time = per-step inference speed × total tokens. When a model tends to “do more and say less,” directly giving concise code and conclusions, compressing the total token count can fully compensate for a slower per-step speed.

    • Suitable scenarios: exploratory development where the goal is to get a runnable prototype quickly, with lower requirements for code comments and test coverage.
    • Potential weakness: overly concise output may mean fewer edge-case handling paths and fewer test cases. Maintenance costs may require manual safeguards later.

    2. Planning Mode: FP8 Quantization — Best for Autonomous Background Operation

    The model using FP8 quantization had the fewest interaction rounds (77). Its working pattern showed a clear “plan first, then execute step by step” style: it first produced a well-structured task breakdown, then implemented it gradually, with the best process readability.

    A more important data point: prompt cache hit rate reached 98%.

    In agent scenarios, every dialogue round carries the full historical context, so KV cache reuse directly determines actual compute cost. Because FP8 has stable precision and consistent context handling, its high cache hit rate means repeated prefixes almost do not need to be recomputed. For background agents that need to run autonomously for long periods and iterate repeatedly, this is extremely valuable.

    • Suitable scenarios: daily development workhorse, automatic bug fixing in CI/CD, and long-running background automation pipelines.
    • Cost-effectiveness logic: per-step speed is not the fastest, but high cache hit rate plus fewer interaction rounds makes overall cost the lowest.

    3. Deliberate Mode: New 4-bit Floating-Point Format — Best Engineering Quality

    The model using NVFP4 quantization performed extensive internal reasoning in every interaction round—equivalent to “thinking deeply” before acting. This directly made it the slowest, at 27.6 minutes.

    But it delivered the highest-quality result:

    • The code structure was the most standardized, with naming and module division more aligned with engineering conventions.
    • It automatically generated the most test cases (18), with the most complete coverage of boundary conditions.

    This confirms a pattern that appears repeatedly in engineering practice: thinking one step more during inference is often cheaper overall than generating code and fixing it afterward. Internal reasoning eliminates errors before code is written. For quality-sensitive scenarios, the extra time is worth it.

    4. Side-by-Side Comparison

    Dimension 4-bit general quantization FP8 New 4-bit floating point
    Total time Shortest (18.4 min) Medium Longest (27.6 min)
    Interaction rounds Medium Fewest (77 rounds) More
    Output tokens Very few (~20,000) Medium More
    Cache hit rate Average Very high (98%) Average
    Code quality Sufficient, concise Good Highest
    Test coverage Lower Medium Highest (18 tests)

    5. Selection Guidance: Match the Scenario

    1. Daily development workhorse: prefer FP8 quantization. Precision loss is almost negligible, cache hit rate is high, and the balance between efficiency and cost is the best. It is suitable as a team default.
    2. Pursuing code standards and test coverage: choose the new-generation 4-bit floating-point format. It has clear advantages in quality-sensitive scenarios such as core modules and long-term maintenance projects. Trading time for quality is worthwhile.
    3. Rapid prototype validation: choose EXL3 4-bit general quantization. When the goal is to “get it running first,” its extreme conciseness helps you obtain a runnable result as quickly as possible.

    6. Further Considerations

    Quantization is not degradation; it is resource allocation. The greatest value of this evaluation is that it breaks the intuition that “heavier quantization means worse quality”: the 4-bit quantized model still passed all 19 acceptance checks. What really matters is matching the quantization scheme to the working mode.

    Cache hit rate is an underrated metric. Many teams only look at tokens/s when selecting models. In agent scenarios, however, context cache hit rate may affect actual cost by an order of magnitude more than per-step speed. It is worth including this metric in in-house evaluations.

    Automated scoring benchmarks are worth adopting. Programmatic acceptance—tests passing and checkpoints passing—is more objective than “large-model scoring.” When evaluating internal models, teams can turn real tickets into task sets with automated acceptance and use machine scoring instead of human impressions.

    In the future, as low-precision floating-point formats gain native support on more hardware and inference engines continue optimizing cache reuse, the cost-effectiveness of local coding agents will improve further. For developers, mastering the “speed—cost—quality” trade-off framework is more important than remembering the numbers from any single evaluation.