Quantized Local Coding Models Tested: How Three Approaches Perform as AI Agents
A controlled comparison of EXL3 4-bit, FP8, and NVFP4 models on Elixir bug fixing and Web application development tasks. The results highlight trade-offs in execution time, interaction efficiency, output volume, planning behavior, and code quality, while noting the limits of the unpublished test setup and sample size.
Quantized Local Coding Models Tested as AI Agents
Quantization is a common way to balance performance and resource usage when deploying large language models on local or edge hardware. However, there is limited public benchmark data showing how different quantization methods affect agent-based software development tasks.
This article summarizes a comparative test covering the test setup, observed results, and potential use cases for each approach. The original test did not disclose the model names, model versions, inference-engine settings, or task sources. As a result, the reported figures apply only to this sample and should not be directly generalized to other environments.
1. Test Setup and Reproduction Requirements
The test used a dual-DGX Spark hardware environment. Because the available hardware was sufficiently powerful, inference speed was primarily determined by the model and quantization method rather than by a lack of compute capacity.
Each model operated as an AI agent with access to 21 native development tools integrated into the environment. The tasks covered two categories:
- Fixing 17 code defects in Elixir projects
- Building a complete Web application with 19 functional checkpoints
An automated script determined the results. No language model was used as a judge, and there was no subjective manual scoring. This helped avoid evaluation bias caused by model-based judging or human preferences.
These tasks can evaluate several agent capabilities, including long-horizon planning, accurate tool use, and recovery after failures. Elixir is also a functional programming language, and its pattern-matching syntax presents additional challenges for coding models.
To reproduce the test, at least the following information would need to be provided:
- Model identifiers and weight versions
- Quantization configurations
- Inference-engine versions and startup parameters
- The original sources of both task sets
- The automated evaluation scripts
- The methodology used to calculate cache-hit rates
Without these details, the numbers in the comparison should be treated only as indicative results.
2. The Three Quantization Approaches
The three models in the test used the following quantization methods.
- EXL3 4-bit: A 4-bit quantization format based on ExLlama 3. It offers a high compression ratio, reduces GPU memory usage, and lowers memory-access pressure.
- NVFP4: NVIDIA’s 4-bit floating-point format. It uses block-level scaling factors to preserve part of the numerical range.
- FP8: An 8-bit floating-point quantization format. Its accuracy loss is generally smaller, but it is not lossless. To determine its impact on task outcomes, it should be compared with an FP16 baseline by measuring error rates or task pass rates.
Quantization methods can interact with model architecture. Factors such as the number of attention heads and the width of the feed-forward network may influence the outcome as well. While this interaction is plausible, the test did not isolate the contribution of each factor. It measured only the combined result.
3. Benchmark Results
| Approach and Original Label | Task Duration | Interaction Rounds | Output Tokens | Main Observations |
|---|---|---|---|---|
| EXL3 4-bit, Model A | Approximately 18.4 minutes, the shortest of the three | Not disclosed | Approximately 20,000, the lowest of the three | Concise output and relatively short tool wait times |
| FP8, Model B | Not disclosed | 77 rounds, the fewest of the three | Not disclosed | Planned first, then called tools; approximately 98% prompt cache-hit rate |
| NVFP4, Model C | Approximately 27.6 minutes, the longest of the three | Not disclosed | Described as the highest of the three | Generated 18 additional unit tests and produced relatively well-structured code |
All three models passed every test case. The differences appeared mainly in their execution processes and the amount and style of their output.
Model A: Fastest Overall Execution
Model A completed the tasks in the shortest time and generated the least output. According to the original description, it returned code and tool-call parameters without producing lengthy reasoning traces.
Its inference engine was not the fastest in terms of individual steps. However, its lower memory-access pressure resulted in shorter overall waiting time.
Model B: Fewer Interactions and Strong Cache Reuse
Model B used the fewest interaction rounds. It was described as typically creating a complete plan first and then calling tools according to that plan.
The test also reported an approximately 98% prompt cache-hit rate. However, the measurement method was not documented. For example, it is unclear whether the figure was calculated by token count or by request count. This metric should therefore be measured again in the target environment.
Model C: More Tests and Longer Execution
Model C took approximately 9.2 minutes longer than Model A, but it generated 18 additional unit tests. Writing tests was not required by the task.
The original description attributed much of the additional time to internal reasoning before each tool call. This explanation was not directly verified by the test.
The code was also considered more readable and its exception handling appeared stronger. These observations were based on manual inspection rather than quantitative metrics.
4. Choosing Between the Approaches
The following recommendations are based only on this test sample, and each has specific conditions.
Rapid prototyping and everyday coding: Model A may be a suitable first choice when task requirements are clear and the team can accept limited explanation. Its main risk is that concise output may provide fewer comments and less documentation. Prompts can explicitly require comments for critical code sections.
Long-running background jobs and unattended workflows: Model B performed well in this test, particularly for long sessions where cached context can be reused. The key assumption is that the production environment can achieve a similar cache-hit rate. Good planning does not guarantee correct output, so automated tests are still required.
Modules with strict code-quality requirements: Model C produced more structured code and more complete testing. It may be appropriate when the team can accept longer execution times and higher compute consumption. A larger number of unit tests does not necessarily mean that real-world edge cases are covered, so test quality must be reviewed separately.
5. Engineering Considerations for Deployment
- Use automated tests to evaluate results rather than relying on the model’s self-assessment.
- Re-run the comparison with your own task set. This test covered only one task collection and three models, so its sample size was limited.
- Record execution time, interaction rounds, token usage, and cache-hit rates consistently, and document the measurement methodology.
- Re-test the models when moving to resource-constrained edge devices. Scheduling parameters such as batch size and speculative decoding can change both throughput and agent behavior, so the original conclusions may not hold.
6. Conclusion
The three quantization approaches showed different strengths. Model A had the shortest execution time, Model B demonstrated efficient interaction and strong reported cache performance, and Model C produced more structured code with broader test output.
The right choice depends on the task type, acceptable latency, compute budget, and code-quality requirements. These factors should be validated with data from the intended environment.
This comparison involved three unnamed models, one task set, and a single hardware configuration. Its conclusions are therefore limited in scope and should be treated as reference observations rather than universal performance claims.
