Practical Analysis and Cost Evaluation of a Dual-Version LLM Setup for AI Coding
This article presents a hands-on evaluation of a newly released LLM series with two versions—a high-capability model for complex reasoning and code generation, and a lightweight model for fast, low-cost calls. Using a real engineering task to refactor a downsampling algorithm in a scientific plotting library, the author tests a multi-agent tiered configuration, reviews capability and cost trade-offs, and shares practical strategies for controlling token spending in agent-based coding workflows.
Background: A Real Task-Driven Model Evaluation
Benchmark leaderboards are only a reference point when assessing an LLM series’ coding ability. What truly matters is putting the model into real, production-grade tasks. A newly released LLM series ships in two versions: a high-capability version aimed at complex reasoning and code generation (referred to here as the Pro-level model), and a lightweight version designed for fast responses and low-cost calls (the Flash-level model). The day after its release, I ran a complete hands-on test of this series using an actual engineering project.
The task: I maintain a scientific plotting library built on a classic GUI framework, and I needed to modify its downsampling algorithm. The original implementation used a one-shot global downsampling strategy, so when users zoomed into a local region of a chart, data points within the visible window became sparse and curve shapes could be distorted. The goal was to refactor the algorithm into a dynamic resampling scheme that responds to changes in the visible window, ensuring visual fidelity at any zoom level.
This kind of task is typical and demanding: it involves algorithm logic refactoring, deep understanding of an existing codebase, coordinated changes across multiple files, build verification, and version commits—covering a model’s code comprehension, planning, and execution abilities fairly comprehensively.
Task Execution: Multi-Agent Tiered Configuration
Toolchain and Role Assignment
The task was completed with an open-source AI coding framework built on a multi-agent architecture, where different roles take on different responsibilities: some handle code implementation, some review solutions, some explore the codebase and retrieve information, and others run tests. The key design principle of this architecture is that not every step needs the strongest model.
My configuration followed a “tiered scheduling” approach:
- Heavy-reasoning roles (solution design, code generation, architecture review, quality assessment): all use the Pro-level model with its high-intensity reasoning variant enabled;
- Lightweight roles (codebase search, context exploration, quick completions, low-priority tasks): all use the Flash-level model;
- Creative writing categories: can be switched to other models better suited to stylistic output, with a moderately higher temperature;
- Code engineering categories: use the Pro-level model with temperature set around 0.3 to reduce randomness and improve code stability.
A sample configuration structure looks like this:
{"agents": {"architect": { "model": "pro-model", "variant": "high" },"coder": { "model": "pro-model", "variant": "high" },"reviewer": { "model": "pro-model", "variant": "high" },"explorer": { "model": "flash-model" },"retriever": { "model": "flash-model" }},"categories": {"visual-engineering": { "model": "pro-model", "temperature": 0.3 },"quick": { "model": "flash-model" },"unspecified-high": { "model": "pro-model" },"unspecified-low": { "model": "flash-model" }}}
Execution Process
After handing the task description to the agent framework and completing the necessary requirement clarification, I stepped away from my desk. The whole task took a while—I went through a full cycle of cooking a meal, eating, and catching up on the news, and the task was just wrapping up when I returned.
Final result: all code changes were completed, everything compiled successfully, tests passed, and the changes were automatically committed to the repository. The entire process consumed roughly 48 million tokens, costing close to 60 RMB.
Evaluating Capability and Cost
Capability Assessment
In terms of task quality, the Pro-level model performed at the top tier of currently available open models: it correctly understood the algorithmic intent behind “resampling triggered by window changes,” designed sensible sampling trigger timing and data slicing logic, and refactored the original one-shot downsampling code incrementally rather than rewriting it from scratch, avoiding regression issues. Engineering details were also solid, including build configuration adaptations and well-formed commit messages.
Compared with the combination of high-quality open models I had been using on previous projects, its coding ability was broadly on par—no clear generational advantage, but no obvious weaknesses either.
Cost Assessment
Cost was the most notable part of this experience. For a similar task scale, my previous model combination cost noticeably less, and the near-60-RMB bill this time came down to two factors:
- Over-configured heavy roles. I assigned the Pro-level model’s high-intensity reasoning variant to almost every agent role, when in reality some roles (such as solution review and documentation generation) could have been handled by the Flash-level model;
- A large task context. The agent needed to repeatedly read the codebase and run multiple rounds of self-verification, so token consumption grew multiplicatively—a significant portion of the 48 million tokens was internal context passing between the framework’s roles.
Optimization Recommendations
Based on this experience, here are some reusable cost-control practices:
- Default to lightweight, upgrade on demand: make the Flash-level model the default, and invoke the Pro-level model only for planning and core coding steps;
- Constrain task scope: the smaller the granularity of a requirement handed to an agent at one time, the more controllable the context bloat;
- Set token budgets: most agent frameworks support a per-task consumption cap that pauses and waits for human confirmation once exceeded;
- Use diff-style context: have exploration roles return summaries and key code snippets rather than entire files, which can significantly cut transfer overhead.
Conclusion
The takeaway from this hands-on test can be summarized in one sentence: the new series’ coding ability reaches an excellent level among current open models—the Pro-level model can independently handle complex algorithm refactoring, while the Flash-level model is well suited to retrieval and lightweight steps. However, stacking high-intensity configurations across the entire pipeline makes costs significantly higher than existing alternatives. For developers, the core of model selection is not “which model is strongest,” but “which model for which layer of the task”—only sensible tiered scheduling achieves the optimal balance between capability and cost.
