Local Dual-GPU Benchmark: How Three Quantized Models Approach Coding Tasks

    This article reports a local dual-GPU benchmark comparing three quantized models on agentic coding tasks, scored entirely by scripts and test cases rather than by a model judge. It explains why static code-generation benchmarks miss the realities of multi-step development work, how the evaluation was designed across tool use, bug fixing, and end-to-end builds, and the three distinct working modes that emerged: minimal-output, plan-driven with high cache reuse, and deep-reasoning. It closes with guidance on mapping these modes to selection decisions, combining them in a single pipeline, and the engineering essentials of local quantized deployment.

    1. Why Benchmark Coding Agents on Local Hardware

    Over the past two years, evaluating code-generation models has mostly relied on static benchmarks: given a function signature and a comment, the model completes a few lines of code, and a human or a judge model assigns a score. This approach diverges noticeably from real development workflows. Real tasks are multi-step: read the requirements, locate the relevant files, modify the implementation, run the tests, and retry or roll back based on errors. In other words, the model has to exist as an agent — able to call tools, observe execution results, and self-correct across multiple turns of interaction.

    At the same time, demand for local deployment keeps rising. Keeping data inside the internal network, making inference costs predictable, and removing dependence on external networks are constraints that push more and more teams to run mid-sized models on their own accelerator cards. But local environments come with an unavoidable problem: limited VRAM and bandwidth mean weights must be quantized down to a precision the hardware can carry. Quantization introduces two kinds of change. First, a single forward pass becomes faster or slower depending on the chosen numeric format and how well the underlying inference engine supports it. Second, the model’s output style shifts — some models become more verbose, others lean toward long internal reasoning. Layered onto multi-turn agentic tasks, these two changes can produce final results that look nothing like the ranking on a static benchmark.

    So a more engineering-relevant question is this: given the same local hardware, the same tasks, and the same scoring rules, what working mode does each quantization scheme adopt to get the job done, and where do the cost structure and latency bottlenecks sit for each?

    2. Evaluation Design: Let Scripts Score, Not Models

    A trustworthy automated evaluation starts by decoupling two things: the task and the scoring.

    On the task side, three dimensions are worth covering. The first is breadth of tool use: let the model call a set of native tools inside a controlled sandbox (read file, write file, execute command, look up dependencies, view logs, and so on) and check whether it picks the right tool, passes the right arguments, and correctly interprets the returned results. The second is defect repair: supply a batch of small projects with failing test cases and require the model to locate the root cause and rework the implementation, where the score depends on whether the tests actually pass rather than on whether the patch looks reasonable. The third is end-to-end build: give an application requirement with several acceptance checks and verify each one automatically — for example, whether an interface returns the expected structure, whether boundary conditions are handled, and whether configuration can be loaded repeatedly.

    On the scoring side, two principles should hold. First, everything is decided by scripts and test cases: output comparison, static checks, and runtime assertions together form the verdict. Second, no “model as judge” step is introduced, which avoids the instability and preference bias of the scorer contaminating results. In addition, sources of randomness, dependency versions, and timeout thresholds should be pinned, and each run should retain a complete trace (tool-call sequence, token consumption, cache hit rate, wall-clock time) so results can be attributed after the fact.

    It is worth stressing that a single run only demonstrates feasibility, not stability. The rigorous approach is to repeat runs multiple times, report variance, and state clearly which technology-stack boundaries the conclusions are bound to.

    3. Three Quantization Schemes, Three Working Modes

    Under identical hardware conditions, three models using different quantization formats all completed every task, but their paths differed enormously. Abstracting them into three typical modes is more useful than memorizing the specific rankings.

    Mode 1: Minimal Output — Trading “Write Less” for “Finish Faster”

    The defining trait of this class of model is very few output tokens: it tends to produce the minimum viable change directly, without lengthy explanation. Since the generation phase often accounts for a large share of total agentic task time, reducing output volume compresses wall-clock time significantly — even if the underlying inference engine’s per-token throughput is not the strongest, the overall run is still the fastest.

    The risk is that “writing less” may mean verifying less: fewer test cases, with boundary handling left for humans to fill in later. It fits prototyping, internal scripts, and exploratory phases where requirements are not yet settled.

    Mode 2: Plan-Driven — Define the Plan First, Then Execute Step by Step

    This class of model uses the fewest interaction turns. Its behavior is to emit a structured plan first and then implement it step by step, with little rework. More importantly, it shows a high cache reuse rate: across multiple turns, the prefix (system prompt, project context, prior trace) is highly repetitive, and when the cache hit rate is high, the repeated prefix does not need to be recomputed, lowering both compute cost and time to first token.

    This mode is very friendly to long-running unattended background tasks: the trace is clear, auditable, and the cost is predictable. The engineering caveat is context management — put stable, unchanging content at the front and volatile content at the back to capture the full cache benefit.

    Mode 3: Deep Reasoning — Think Longer, Deliver More Rigorously

    This class of model performs extensive internal reasoning in every turn and takes the longest, but its output is usually the most rigorous of the three: clearly layered structure, consistent naming, and the most complete test coverage. It suits scenarios that demand high deliverable quality and allow a longer time window, such as refactoring core modules, building shared libraries, and writing business code that needs long-term maintenance.

    The price is latency and compute consumption. Used for interactive completion, the experience is noticeably slow; a more sensible approach is to place it in an asynchronous pipeline chained with static checks and automated tests.

    4. Mapping Benchmark Results to Selection Decisions

    Selection should not rest on a single metric but on the priority of the constraints:

    • Cost and throughput first, tasks can be backgrounded: pick the plan-driven, cache-friendly tier to cut waste from repeated computation.
    • Deliverable quality and maintainability first: pick the deep-reasoning tier, trading time for rigor and coverage.
    • Delivery speed first, requirements still drifting: pick the minimal-output tier to get a runnable prototype in hand.

    A practical approach is to combine the three modes in one pipeline rather than choosing one:

    1. pipeline:
    2. - stage: prototype # Minimal-output mode: quickly produce a runnable skeleton
    3. gate: smoke_test
    4. - stage: refactor # Deep-reasoning mode: fill in structure and boundary handling
    5. gate: static_check + unit_test
    6. - stage: background_fix # Plan-driven mode: batch fixes and regression
    7. gate: full_test

    With a unified set of observability metrics, you can then judge whether a given stage is actually worthwhile:

    1. Key metrics: wall-clock time / total output tokens / interaction turns / cache hit rate / time to first token / test pass rate / compute cost per task

    5. Engineering Essentials for Local Quantized Deployment

    First, the quantization format must match the inference engine. Throughput differences for the same model under different numeric formats often come from operator support rather than the model itself; before going live, stress-test with real tasks instead of relying only on the theoretical efficiency of a format.

    Second, context and caching strategy must be designed explicitly. Putting stable prefixes first, dynamic content last, and trimming the historical trace promptly are the most direct ways to raise the cache hit rate.

    Third, make “acceptance” a hard gate. Auto-generated code must pass four layers of validation — formatting, static checks, unit tests, and integration tests — with any failure triggering a rollback, so defects never reach the main branch.

    Fourth, observability must cover model behavior. Tool-call sequences, retry counts, and timeout distributions should all flow into logging and monitoring/alerting systems, making it easier to determine whether the issue is the model, the tool, or environment jitter.

    Fifth, security boundaries cannot be skipped. Sandbox isolation, dependency provenance verification, least-privilege keys, and artifact auditing are prerequisites for scaling local agents.

    If elasticity is needed, a hybrid form works well: local inference as the primary path, with cloud container platforms and object storage carrying artifacts and datasets — leaving elasticity to the build and test stages and determinism to the inference stage.

    6. Conclusion and Follow-Up Validation

    In a controlled local dual-GPU environment, the quantization scheme changes not only speed but the model’s behavioral style: minimal output buys latency advantage, plan-driven buys low rework and high cache benefit, and deep reasoning buys code rigor and test coverage. For developers, the real payoff comes from assigning roles by scenario and continuously regressing against a unified set of metrics.

    One caveat is necessary: any single-run, single-stack benchmark is only a directional reference. The safer path is to build an internal evaluation set, pin the tasks and scoring scripts, rerun periodically, and publish the variance — so selection conclusions roll forward as models and hardware evolve.