Evaluating Open-Source LLMs with a Unified Agent Framework: A Controlled Engineering Practice

    This article explores a structured approach to evaluating multiple open-source Large Language Models (LLMs) within a fixed Agent framework. By controlling variables such as the execution harness, task prompts, and acceptance criteria, the evaluation isolates model-specific performance differences in real-world Agent tasks. It analyzes the performance of four models under 300B parameters, extracts key insights on latency versus end-to-end efficiency, hidden costs of action rounds, and API stability, and offers practical recommendations for LLM selection and engineering practice.

    In LLM-driven agent development, a common dilemma is that models with high evaluation scores often exhibit inconsistent performance in actual Agent tasks. This occurs because the success of an Agent scenario is not determined solely by the model’s reasoning capability but is also heavily influenced by the Harness (execution framework), toolchain, retry strategies, and context management. This article shares a structured evaluation practice: fixing the execution framework and tasks while only swapping the models to observe the real differences.

    1. Why Evaluate Using a “Fixed Harness, Swappable Model” Approach?

    In a previous experiment, our variable was the execution framework: we fixed the same model and swapped four different Agent frameworks to test their performance in completing a complex frontend system. This time, we reversed the variable. The execution framework, task description, assets, context injection method, browser environment, and acceptance criteria all remained identical; only the underlying model was replaced.

    The value of this controlled variable method lies in attribution: when differences in results occur, they can be more confidently attributed to the model itself rather than framework implementation differences. For selection decisions, this is more informative than consulting public leaderboards, as leaderboard scores and real-world Agent task performance often do not align.

    2. Key Design Points of the Evaluation Task

    The task chosen was a typical complex product challenge: a creative studio collaboration system. The input constraints were extremely strict:

    1. Assets were limited to six open-license museum images, along with seed data for project members, assets, versions, and comments.
    2. No existing pages were provided for reference; the model had to design the information architecture itself.
    3. The system needed to cover five states: project overview, inspiration board, asset-anchored comments, version approval, and publishing preview.
    4. The pages had to support differentiated views for three roles (Creative Director, Designer, Client).
    5. Interaction requirements included asset drag-and-drop, comment anchor positioning, version switching, approval or rejection, and state persistence across page refreshes.

    The intent behind these constraints was to create a sufficiently “long-chain” task: involving multi-round planning, state management, frontend engineering, and self-inspection. Any failure in any link would be captured by the final acceptance criteria.

    3. Performance Results of the Four Models

    Four models with parameter scales under 300B participated in the evaluation, covering high-cost-effectiveness, high-speed, and long-context routes, all being current mainstream open-source models. Ultimately, all four models completed the task, but the processes varied significantly:

    1. The Fastest: Completed in about 17 minutes with no full reruns, few action rounds, a high tool call hit rate, and spot-on planning on the first attempt.
    2. The Second Tier: Failed the first execution; including reruns, the total time was about 1 hour and 12 minutes. Failures often stemmed from an intermediate interaction detail, such as state persistence failing acceptance. The overall direction was correct, but rework was required.
    3. Slow but Steady: Had no full reruns but included 3 automatic internal retries, totaling 88 minutes. This type of model advanced more cautiously at each step, at the cost of more rounds and longer duration.
    4. Affected by Service Stability: The default retry strategy failed twice consecutively before completing after an expanded backoff interval. The first successful run took about 1 hour and 4 minutes. The issue exposed here was not purely model capability but the stability of the invocation chain.

    4. Three Key Conclusions from the Data

    Conclusion 1: Speed and cost positioning only describe part of the capability. A model marketed as “fast” may actually take longer end-to-end if its planning capabilities are weak and require repeated retries. The correct metric for Agent efficiency is “time to first success,” not single-round inference speed.

    Conclusion 2: Action rounds and tool calls are hidden costs. More rounds mean longer context, which amplifies the probability of errors and Token consumption. During evaluation, process metrics such as total rounds, tool call success rate, and retry counts should be recorded, rather than just looking at the final output.

    Conclusion 3: Service stability is an engineering variable. Beyond model capability, API timeouts, rate limiting, and backoff strategies significantly affect end-to-end performance. In production environments, it is recommended to design controllable retry and backoff strategies for the Agent framework, for example:

    1. def call_model_with_backoff(task, max_retries=5):
    2. delay = 2
    3. for i in range(max_retries):
    4. try:
    5. return agent.run(task)
    6. except TransientError:
    7. # Wait with exponential backoff and jitter
    8. time.sleep(delay * (2 ** i) + random.uniform(0, 1))
    9. raise AgentFailure("exceeded retry budget")

    5. Recommendations for Model Selection

    1. Define your own acceptance criteria before conducting the evaluation, providing an objective standard for “completion.”
    2. Value both process and outcome metrics: rounds, retry counts, failure modes, and time distribution.
    3. Run through the entire chain with a small model before evaluating whether an upgrade to a larger parameter scale is necessary. In many scenarios, the gains from framework and prompt engineering exceed those from switching models.
    4. Pay attention to context management strategies; long-task failures frequently stem from context overflow or critical information being truncated.

    Conclusion

    The greatest takeaway from this evaluation is not “which model is the fastest,” but rather a reusable evaluation methodology. Real Agent efficiency is determined jointly by model capability, execution framework, retry strategy, and stability. Only by controlling variables and recording the process can rational selection decisions be made.