Putting LLMs into production: cost-effectiveness and the limits of post-training

    Leaderboards pull attention toward who scores highest. What actually decides whether a model can ship is more mundane: cost per completed task, how often failures force rework, and whether capability survives a change of agent framework. Parameter count, context length, and advertised general intelligence are inputs, not delivery outcomes. This article argues for unit cost of successful work, Pareto frontiers across task tiers, and treating post-training and tool surfaces as the real product—not isolated benchmark scores.

    Leaderboards pull the conversation toward who scores higher. What actually decides whether a system can go live is a more ordinary set of questions: how much it costs to finish a class of tasks, how many times you rework after failure, and whether capability still holds after you swap agent frameworks. Parameter scale, context length, and advertised general intelligence are inputs, not delivered results.

    Separate “bigger” from “worth it”

    Pre-training sets the knowledge boundary a model can remember and generalize to. Production experience comes mainly from post-training: instruction following, tool use, refusal, long-horizon planning, and format stability. Doubling parameters does not automatically produce a similar jump in task success. Marginal gains are often single-digit percentages, while unit price, latency, and concurrency cost can multiply.

    Comparisons should therefore use cost per successful task, not token price or a composite score. A cheap model that retries often can cost more in total than a slightly more expensive model that gets it right once. Conversely, a large model that looks strong only under a narrow eval protocol and degrades on your business tool set is not worth paying for peak capability.

    A practical estimate:

    task cost ≈ (input tokens + output tokens + tool round-trip overhead) × unit price × average attempts ÷ first-pass rate

    “Tool round-trips” include retrieval, code execution, approval, and human review. When average attempts rise, a paper-low price is amplified. Replay the same batch of real tickets; do not rely only on weighted public-leaderboard averages.

    A Pareto frontier beats a single champion

    Cost and quality are rarely a single monotonic curve. Small models are already enough for simple classification, extraction, and templated rewrite. Large models pull ahead only on a thin slice of hard reasoning, cross-document planning, and strongly constrained generation. Sitting on the Pareto frontier means there is no obvious alternative that is both cheaper and more reliable. Off the frontier you either overpay for duplicate capability or save money by pushing failure rates downstream.

    In practice, split work into three tiers:

    • High volume, low risk: prefer a low-cost path; tightly constrain output format and tool permissions.
    • Medium complexity, reversible: dual routing—try a light model first, escalate on failure.
    • High value, hard to roll back: allow a higher unit price, but accept only on a business eval set, not borrowed external-protocol scores.

    Escalation rules should be explicit: consecutive failures, missing citations, unauthorized tool calls—not “the big model feels smarter.” Budget then tracks risk.

    Post-training decides whether the model can do the job

    After pre-training, knowledge in the weights is largely fixed. Post-training turns that knowledge into an executable policy: when to call tools, when to stop and ask for clarification, how to respect permissions and audit formats. The same base with different post-training can behave like two products.

    That also explains a common gap: a model scores average in a highly flexible eval scaffold, then approaches top-tier under a minimal calling style. The issue is often not missing knowledge but a policy biased by one environment. If post-training overfits a single agent’s tool names, prompts, and implicit rewards, general ability is traded for a local optimum in that environment.

    Overfitting signals include: failing when an equivalent tool is renamed; needing a large scaffold of prompts to work; rambling or random tool calls on open instructions; being stable only on leaderboard-identical flows. Strong results under a community’s minimal setup often mean the base is fine and the adaptation surface is too narrow.

    Minimal mode and standard mode are not copy differences

    Tool-surface width is part of the post-training distribution. Minimal mode usually exposes few entry points—for example “search” and “execute.” Standard mode may attach dozens of skills, approval flows, and external systems at once. The model must choose in a larger action space, so the prior on wrong calls rises.

    Each mode has a boundary:

    • Minimal: small decision space, lower latency and drift, suited to well-defined goals. Complex flows belong in the orchestration layer, not in the model inventing steps.
    • Standard: broad coverage and better demos, but noisier rewards; the model may memorize “which button to press in this scaffold” and drop when moved to another agent.

    Default to least privilege. For every added tool, answer: does it change state, is failure compensable, are arguments validatable, can logs be traced? Tools that cannot be validated should not be in the default set.

    The following sketch states the principle only; it is not bound to any vendor API:

    1. agent_profile: minimal
    2. tools:
    3. - name: search_docs
    4. side_effect: read
    5. args_schema: {query: string, top_k: int}
    6. - name: run_checked_transform
    7. side_effect: none
    8. args_schema: {input_ref: string, ruleset: string}
    9. upgrade_when:
    10. - schema_violation
    11. - missing_citation
    12. max_tool_rounds: 4

    Orchestration should open more capability after the minimal path fails, not fill the action space from the start.

    The eval protocol is itself a training environment

    Public boards freeze tools, scorers, and prompts for reproducibility. That helps comparison and also rewards “exam-taking” policies. If post-training or alignment data come heavily from the same protocol, score gains may be in-protocol overfitting. Treat the board as a hypothesis: it hints at a capability range; it does not prove the same effectiveness on your ticket distribution.

    In-house acceptance should cover at least four shifts: tool rename or merge, shortened prompts, tighter permissions, and mid-conversation requirement changes. High scores only on the original protocol and a drop on all four shifts belong to adaptation, not to adding more parameters.

    How to choose for enterprise use, not how to chase releases

    1. Calibrate first-pass rate, human rework, and P95 latency on a real task set, then compute task cost.
    2. Hold the eval set fixed and measure a minimal tool surface versus a full one. If the gap is large, fix post-training or orchestration before blindly switching to a larger model.
    3. Treat agent knowledge as part of model knowledge: version tool schemas, stop conditions, upgrade routes, and audit fields.
    4. Route by risk, not by hype. Keep most traffic on a sufficient tier; escalate only the hard tail.
    5. On the cloud, govern model calls, object storage, logs, and monitoring separately. If you use Baidu AI Cloud, still compose general capabilities this way; do not copy an external leaderboard setup into production unchanged.

    The extra team skill is designing agents, not only swapping model names. Post-training writes “how to work” into policy; more tools make that policy more likely to hold only in one environment. Control of tool surface, reward design, and failure escalation explains why a larger model is sometimes not more attractive—and when a lightweight path is eliminated by hard tasks.

    Three sentences to close: replace isolated scores with task cost; test post-training overfitting across multiple tool surfaces; treat parameter scale as an upper bound and adaptation stability as the ship bar. Selection then tracks business risk and budget, not release cadence.