Local Dual-GPU Benchmark: Comparing Three Flash Models for Coding Tasks

    This article reports a local dual-GPU benchmark comparing three lightweight "Flash" models with different quantization schemes on the same agentic coding tasks. It explains the benchmark design, machine-based scoring, and the observed trade-offs among 4-bit integer, 8-bit floating-point, and 4-bit floating-point (NVFP4-class) quantization, then offers a reusable model-selection framework and advice for moving such evaluations into CI.

    1. Why “Flash-Class Models on a Local Dual-GPU Setup” Deserve a Separate Benchmark

    Over the past year, demand for on-device and private deployment has risen noticeably: code assets cannot easily leave the organization, tasks need to run unattended for long periods, and per-call cost must stay predictable. At the same time, a group of lightweight models named with the “Flash” label have come onto developers’ radar. They typically emphasize low latency and high throughput, and run in single-machine, multi-GPU environments with quantization formats of different precision.

    This benchmark was designed around exactly that scenario: on one local machine with two accelerator cards, three lightweight models using different quantization schemes were given the same set of coding tasks, and their behavioral differences were observed beyond the simple question of “can they get it right.” The value of this kind of test is not to rank the models, but to reveal a frequently overlooked fact: in agentic coding tasks, end-to-end time is not determined by the inference engine’s token throughput alone; it is determined jointly by “total output volume × per-token cost + number of interaction rounds × fixed overhead per round.”

    2. Benchmark Design: Breaking “Coding Ability” into Automatically Verifiable Metrics

    A credible comparison depends on whether the tasks and scoring can be kept free of subjective judgment. Three aspects of this benchmark’s design are worth borrowing.

    First, the task format is close to real engineering work. The models had to act as agents calling 21 native tools (reading and writing files, executing commands, retrieval, running tests, and so on), fix 17 Elixir defects, and complete a full web application build containing 19 checks. Only with a sufficiently large tool set can differences in how models “choose tools” and “organize call order” be exposed.

    Second, scoring is fully automated. No large model was used as a judge; instead, hard metrics such as test pass rate, number of checks hit, and whether the build runs were used. This avoids the systematic bias of “models preferring models.”

    Third, variables are controlled. Hardware, task set, tool set, and scoring scripts are kept identical, with the only variable being the model and its quantization scheme.

    A schematic skeleton of the evaluation is shown below (pseudocode that expresses only the flow and does not point to any specific implementation):

    1. for model in [exl3_4bit_variant, nvfp4_variant, fp8_variant]:
    2. session = AgentSession(model, tools=NATIVE_TOOLS_21)
    3. t0 = now()
    4. for task in BUG_FIX_TASKS_17 + [WEB_APP_BUILD]:
    5. result = session.run(task) # internally decides tool calls and rounds
    6. score = run_tests(result) # machine scoring, no model judge
    7. record(model, task, elapsed=now()-t0, rounds=session.rounds,
    8. tokens=session.total_tokens, cache_hit=session.cache_hit_rate,
    9. score=score)

    3. Benchmark Results and Causes Across the Three Quantization Routes

    All three models passed the tests, showing that this generation of lightweight models has crossed the usability threshold in basic engineering ability; the differences are concentrated in “working style.”

    Extremely low-bit integer quantization (4-bit class): trading “less talk” for time. It completed the web application build in only about 18.4 minutes, the fastest of the three, with roughly 20,000 tokens output in total. Its inference engine’s per-token speed is not the strongest, but its output is extremely restrained, with almost no lengthy explanations, so total time is the shortest. This behavior suits scenarios that “first want a runnable prototype,” with the risk of weak process readability and low test coverage.

    Low-precision 8-bit floating point: trading “planning first” for fewer rounds. It had the fewest interaction rounds (77), tends to give a plan first and then implement it step by step, and keeps the process clear; at the same time, its prompt cache hit rate is as high as about 98%, so repeated context is almost free, making compute cost the lowest. It best fits long-running autonomous background work: fewer rounds mean lower fixed overhead, and cache hits mean extremely low marginal cost for long sessions.

    4-bit floating point (NVFP4 class): trading “deep thinking” for quality. It performs extensive internal reasoning every round, takes about 27.6 minutes end to end, the longest of the three, but produces the most standardized code and includes 18 test cases, with the best engineering quality. This suggests that internal reasoning length is counted into total latency, and quality improvement is not free.

    It should be noted that the above conclusions come from a single run and a specific tech stack (defect fixing in a functional language plus a web build). Changing the language, the tool set, or the context length could completely change the ranking.

    4. A Reusable Selection Framework: Ask About Constraints First, Then Choose a Model

    Abstracting the benchmark conclusions into decision rules is more useful than memorizing a one-time ranking:

    • Want the fastest runnable prototype → choose the extremely low-bit quantized version with restrained output;
    • Want the lowest cost and unattended long runs → choose the 8-bit floating-point version with high cache hit rate and few rounds;
    • Want standardized code and high test coverage → choose the 4-bit floating-point version willing to reason deeply.

    In practice, it is recommended to layer on three engineering constraints: VRAM and concurrency headroom (the lower the quantization, the easier it is to leave batch-processing space on dual GPUs), context length (in long sessions, the impact of cache hit rate on cost is amplified), and tool-call success rate (for a model with few rounds, if a single call fails, retries can quickly erase its advantage).

    5. Moving the Benchmark into CI: Turning Model Selection into a Sustainable Experiment

    A one-off evaluation quickly becomes outdated; a more robust approach is to fix it into a pipeline. The basic elements include: a fixed task set and random seed, recording per-round tokens and cache hits, keeping reproducible logs for each run, and putting both pass rate and elapsed time on a dashboard. If cloud resources are used, a container platform can host the evaluation environment, object storage can archive artifacts, and log services with monitoring and alerting can track fluctuations. Baidu AI Cloud can serve as a hosting foundation for such general capabilities, while the models themselves can remain in a local private environment.

    The conclusion is not complicated: a local dual-GPU setup is already sufficient to support agentic coding evaluation of lightweight models. The real dividing line is not “who is smarter,” but the output habits, round structure, and cache efficiency shaped by the quantization route. Clarifying your own constraints and replacing one-time impressions with automated experiments is the prerequisite for reliable model selection.