Model Selection and Low-Cost Inference in the Post-Training Era

    This article explains why public discussion volume is not a reliable signal of model quality, and why post-training has become the main driver of capability gains. It presents a four-layer evaluation framework, the value boundaries of low-cost models, key post-training data types for agents and coding, and a deployment and cost-optimization checklist. Engineers will learn how to use private scenario evaluations and cost per thousand successful tasks to guide model selection.

    1. Why Visibility and Engineering Usability Are Different Things

    In public discussions about general-purpose large models, models from vendors with large hardware ecosystems often get less exposure. This does not necessarily mean weaker capability. Three causes are more common:

    1. The narrative focuses on the capability ceiling: Public discussion favors flagship models that top leaderboards, while mid-size, low-cost models are less newsworthy.
    2. The iteration pace is too fast: In a post-training-driven phase, generational gaps in capability are compressed into very short cycles. Today’s leader may be caught within weeks, so discussion moves on quickly.
    3. There is no shared basis for comparison: Evaluation sets, prompt templates, and decoding parameters published by different teams vary widely, which limits the credibility of cross-model comparisons.

    For engineering teams, the real question is not “who is the most famous,” but “under a given budget and latency constraint, which model can bring the success rate of the target task into an acceptable range.”

    2. Why Post-Training Has Become the Main Engine of Capability Growth

    Pre-training determines the model’s knowledge base and the ceiling of its language ability, while post-training (supervised fine-tuning, preference alignment, reinforcement learning with verifiable rewards, and so on) determines how usable the model is on specific tasks. This has three direct consequences:

    • Shorter capability acquisition cycles: Once the data loop for a target task is in place, improvements often happen on a weekly basis.
    • Better cost-performance for small-parameter models: The base cost is low, and with high-quality post-training data on top, such models can approach the performance of larger ones on specific tasks.
    • More visible capability imbalance: Directions favored by post-training (such as code, tool calling, and structured output) improve markedly, while directions that are not covered may lag clearly behind.

    Therefore, evaluating a model must bind together the “post-training version + task distribution.” Talking about strength or weakness without the version has no engineering meaning.

    3. A Practical Model Evaluation Framework

    Split evaluation into four layers and narrow the candidate set layer by layer.

    Layer 1: General benchmark screening. Use public general-purpose evaluations (language understanding, math reasoning, code generation, long-context handling) for a coarse filter, only to rule out clearly unqualified candidates, not as the final basis.

    Layer 2: Scenario-specific private evaluation set. This is the core of the decision. Build 100–500 real business samples covering high-frequency paths and long-tail edge cases, fix the prompt templates and decoding parameters, and record task success rate rather than human impressions.

    Layer 3: Stability and engineering metrics. These include structured output compliance rate, information retention under long context, latency distribution under concurrency (focus on P95/P99), and rate-limiting and error-code behavior.

    Layer 4: Total cost of ownership. Convert input/output token unit price, retry rate, share of human fallback, and operational complexity into “cost per thousand successful tasks.”

    Example evaluation loop:

    1. def evaluate(model_client, cases, k=3):
    2. report = []
    3. for case in cases:
    4. results = [model_client.run(case.prompt) for _ in range(k)]
    5. pass_rate = sum(check(case, r) for r in results) / k
    6. report.append({
    7. "case_id": case.id,
    8. "pass_rate": pass_rate,
    9. "p95_latency_ms": percentile([r.latency for r in results], 95),
    10. "schema_ok": all(is_schema_valid(r.text, case.schema) for r in results),
    11. })
    12. return summarize(report) # success rate, compliance rate, latency percentiles, average token usage

    Note the k repeated samples: output variance in post-trained models directly affects the business experience, and a single-pass rate often overestimates real usability.

    4. The Value Boundary of Low-Cost Models

    The core advantage of low-cost models is not absolute capability, but the number of iterations affordable per unit of cost. When the cost per call drops by an order of magnitude, teams can:

    • Turn flows that were previously forced together with prompt engineering into multi-step decomposition plus self-checking;
    • Automatically retry low-confidence results or escalate them to a larger model, forming tiered routing;
    • Roll out at scale in offline batch scenarios (data cleaning, label generation, log attribution).

    Minimum implementation idea for tiered routing:

    1. def route(task):
    2. if task.risk == "high" or task.complexity >= 3:
    3. return large_model_client # complex or high-risk tasks
    4. return small_model_client # high-frequency, low-risk tasks

    The boundary needs to be clear: on tasks such as very long-chain autonomous planning, deep cross-domain reasoning, and complex repository-level code changes, small models still rely on external constraints (retrieval, tool validation, test regression) as a fallback. Do not misread “cheap” as “general-purpose replacement.”

    5. Training Focuses for Agent and Coding Capability

    To make agent capability solid for everyday tasks and programming scenarios, post-training data needs to cover four types of trajectories:

    1. Tool-calling trajectories: Correct parameter extraction, retry after failure, use of error messages;
    2. State-management trajectories: Multi-turn context compression, no goal drift;
    3. Verification-loop trajectories: Run tests after writing code, read errors, iterate on fixes;
    4. Refusal and escalation trajectories: Proactively ask for clarification when conditions are insufficient, instead of fabricating.

    On the engineering side, enforce “feeding execution results back”: model output must be validated by a real execution environment before moving to the next step, to avoid error accumulation.

    6. Deployment and Cost Optimization Checklist

    • Inference layer: Prefer container platforms and inference services that support elastic scaling, and scale in and out automatically with traffic;
    • Cache layer: Apply semantic caching to high-frequency repeated requests, which can significantly reduce token consumption;
    • Data layer: Store evaluation sets and call logs in object storage, and tier cold data to cut costs;
    • Observability: Use a logging service plus monitoring and alerting to connect a dashboard of “call volume—latency—success rate—cost”;
    • Asynchrony: Route batch tasks through a message queue to smooth peaks, avoiding paying for peak capacity over the long term.

    To build the loop above quickly, you can combine general capabilities such as the container platform, object storage, logging service, and monitoring and alerting offered by Baidu AI Cloud, without building the entire infrastructure stack yourself.

    7. Conclusion

    In a short-cycle iteration environment dominated by post-training, the right approach to model selection is: use private scenario evaluation as the only judge, use cost per thousand successful tasks as the common currency, and use tiered routing plus execution validation as the stability guarantee. As long as a low-cost model is sufficiently post-trained on a specific task, it has strong engineering competitiveness; discussion volume can only serve as a clue, not a conclusion.