Local LLM Coding with Quantization: EXL3 4-bit vs FP8 vs NVFP4
This article compares three quantization schemes for locally deployed LLMs on coding tasks: EXL3 4-bit, NVFP4, and FP8. Using a two-node high-performance computing platform, the same model—operating as an agent with 21 native development tools—completed an Elixir bug-fix task and a full web application build, with all scoring automated. All three schemes passed the tests; the differences appeared in runtime, interaction count, output style, cache reuse, and code completeness. The article summarizes the observed trade-offs and offers practical selection guidance for prototyping, daily development, core module work, and cases where the results should not be applied directly.
Evaluation Background
Many developers and enterprises choose local LLM deployment to keep code and business data on their own machines and avoid the ongoing cost of calling cloud APIs. VRAM is the first barrier to local deployment. Quantization reduces weight precision to compress memory usage, so the choice of quantization scheme directly affects inference speed, output style, and code quality.
This article is based on an evaluation completed on a two-node high-performance computing platform. It compares how the same model performs coding tasks under three quantization schemes. Readers who want to understand the practical differences between these schemes can use it to identify a selection approach suitable for their own scenarios.
Evaluation Environment and Tasks
The evaluation examines three quantization schemes. EXL3 4-bit uses low-bit compression to reduce VRAM usage and is suitable for running models with more parameters under limited resources. NVFP4 is a 4-bit floating-point format that relies on specific hardware optimizations and balances precision and compression rate. FP8 uses 8-bit floating-point representation and is relatively balanced between inference speed and precision.
The model works as an agent and can autonomously call 21 native development tools, including file read/write, terminal commands, and dependency management. There are two tasks. The first is to fix 17 code defects in Elixir. Elixir is a dynamically typed functional language running on the BEAM virtual machine; the tasks mainly involve concurrent processes and error handling. The second is to build a complete web application that must pass 19 checks covering the frontend interface, backend logic, and data persistence.
All scoring is completed automatically by programs, with no LLM serving as a judge. This avoids the issue of a judge model favoring long text or specific formats; results depend only on whether functionality is implemented and whether code passes the checks.
It should be noted that the evaluation records did not disclose the specific base model, parameter count, or inference framework version, and each scheme was run only once. The data below should be treated as a single observation and cannot be directly taken as a stable conclusion.
Evaluation Results
The same model under all three quantization schemes passed all test items. The differences were mainly in time consumption, number of interaction rounds, and working style.
EXL3 4-bit: Concise Output, Shortest Runtime
The EXL3 scheme completed all tasks in 18.4 minutes, the shortest among the three. During the entire task, the model output about 20k tokens. It tended to provide core code directly and included fewer long explanations. This style reduces generation waiting time and is suitable for quickly producing runnable prototypes. However, less explanation also means that developers need to add context themselves when encountering complex logic.
FP8: Fewest Interaction Rounds, High Cache Reuse
Under the FP8 scheme, the model completed the tasks in only 77 interaction rounds. It showed a plan-first, execute-later working style. After receiving the requirement, it first broke down the task and listed steps, then called tools step by step. The recorded prompt cache hit rate was about 98%, indicating that most context was reused across multi-turn conversations and the overhead of a single computation was relatively low. This characteristic may be relevant for long unattended tasks, such as overnight batch refactoring or automated test repair. However, the hit rate is related to the prompts and session structure in this test; if other tool-calling patterns are used, the value may drop significantly.
NVFP4: More Reasoning, Better Code Quality
Under the NVFP4 scheme, the model clearly performed internal reasoning in every interaction round, and chain-of-thought was fully used. Completing the tasks took 27.6 minutes, the longest among the three. In the web application build, it wrote 18 additional test cases and added exception handling. The code’s module division and comments were also relatively complete. This indicates that the quantization scheme preserved the model’s capabilities in complex logic and standardized code. The cost is longer runtime; if a task is sensitive to response time, this needs to be taken into account.
Selection Guidance
The following suggestions are based on the results of this single test. They can serve as a starting point but cannot replace validation in your own environment.
| Scheme | Time in This Test | Observed Behavior | Suitable Scenario |
|---|---|---|---|
| EXL3 4-bit | 18.4 minutes | Concise output; provides code directly | Early prototype validation |
| FP8 | Not separately timed; 77 interaction rounds | Plans first; high cache reuse | Daily development assistance; long background tasks |
| NVFP4 | 27.6 minutes | Sufficient reasoning; more complete tests and comments | Core module development |
Specifically:
- Daily development assistance: FP8 can be considered first. It has fewer interaction rounds and high cache reuse, making it suitable for high-frequency operations that require quick feedback, such as code completion and refactoring suggestions.
- Core module development: If a task has high requirements for code standards and test coverage, the NVFP4 scheme can be considered. It takes longer, but tests and comments are more complete, and later maintenance costs may be lower.
- Rapid prototype validation: In the early exploration stage, if the goal is simply to get a runnable demo as soon as possible, the EXL3 4-bit scheme has the shortest runtime and the most concise output.
The following cases are not suitable for directly applying these conclusions:
- Long-context or complex reasoning tasks. 4-bit quantization may lose some precision and needs to be tested separately.
- Production environments. Regardless of the scheme chosen, regression testing should be performed, and generated code should be reviewed by humans.
- Environments with sufficient VRAM. An unquantized or BF16 version can first be used as a baseline, and a lower-bit-width scheme can be chosen after comparison.
Conclusion
Quantization changes the model’s output style and engineering quality, and this was clearly shown in this evaluation. However, the conclusions come from a single run and a specific technology stack; results may vary with hardware, prompts, and task type. Before selection, small-scale validation on your own tasks is recommended. When reproducing the test, record the base model version, inference framework, hardware configuration, and number of runs, and average multiple results so that the comparison is more reliable.
