Hundreds of Trillions of Tokens: How Open-Source Models Are Gaining Share

    Call volume at hundred-of-trillions-of-tokens scale is a better signal than leaderboard scores. This article covers measurement rules, closed- vs open-source mix, four drivers of share shift, task routing, observability, and an evaluation framework.

    1. Why call volume matters more than leaderboard scores

    Public model leaderboards update often, but they measure static benchmarks. Production cares about usable quality per unit cost. The industry is therefore shifting to analysis of large-scale call logs: input and output length, task type, retries, routing, and fallbacks become aggregable data.

    At this sample size, definitions must be explicit or conclusions distort. Four dimensions are typically fixed:

    • Unit of measure: convert everything to tokens, not request counts, so long-context work is not undercounted.
    • Deduping: merge in-session retries and streaming chunks so failed calls do not inflate share.
    • Task labels: tag summarization, extraction, classification, code generation, multi-turn chat, and similar.
    • Time window: month-over-month and year-over-year on calendar months, to dampen promo and release spikes.

    2. Core finding: closed source still leads; open source approaches one-third

    Closed commercial models still dominate total volume, consistent with maturity on hard reasoning, long-context stability, and instruction following. Open-source share has risen over the past year and, by the end of the window, is about one-third of the mix, with faster growth in small-batch, high-frequency workloads.

    Two implications:

    1. The market is stratifying, not substituting. High-value, low-tolerance work stays on closed models; high-frequency, more fault-tolerant, batchable work moves to self-hosted open source.
    2. Share is driven by cost curves, not a capability overtake. When task value density falls, cost share rises, and engineering prefers more controllable setups.

    3. Four real drivers of share migration

    • Controllable marginal cost: self-hosting turns per-token billing into resource amortization and simpler capacity planning at steady high load.
    • Clearer data boundaries: private deployment simplifies compliance review for internal documents and customer data.
    • Modifiability: continued pretraining, distillation, and quantization can turn a large model into a smaller specialist.
    • Supply-chain hedge: less exposure to a single vendor’s deprecations, price changes, and rate limits.

    4. Task split: when closed vs open source

    Task profile Suggested path Why
    Complex multi-step reasoning, code refactor Closed-source first Low tolerance, high cost of failure
    Classification, field extraction, labeling Open-source first High frequency, stable patterns, distillable
    Long-document summarization Hybrid Small model for coarse filter, large model for polish
    User-facing multi-turn chat Closed-source first + cache Experience-sensitive, needs stable low latency

    5. Architecture: tiered routing and fallback

    Pull model selection out of business code into a configurable routing gateway. Structural sketch (pseudocode):

    1. def route(task):
    2. if task.kind in ("classify", "extract", "tag"):
    3. return "local_small" # self-hosted small model, lowest cost
    4. if task.risk == "high" or task.tokens > 60000:
    5. return "hosted_large" # hosted large model, higher capability ceiling
    6. return "local_mid" # self-hosted mid-size model
    7. def invoke(task, retry=0):
    8. target = route(task)
    9. try:
    10. return call(target, task)
    11. except (TimeoutError, RateLimitError):
    12. if retry < 1:
    13. return invoke(task, retry + 1) # step down one tier
    14. return fallback_template(task) # last resort: rules/templates

    Supporting cloud building blocks: object storage for raw request/response samples, message queues for peak smoothing and offline batch, logging and alerting for quality metrics and incidents.

    6. Observability and cost control

    Token totals alone do not locate waste. Instrument at least:

    • Cost per successful task = (input tokens × input price + output tokens × output price) / successful tasks
    • Retry and fallback rates: whether routing thresholds are sane
    • Cache hit rate: prefix cache on stable system prompts and knowledge snippets often saves a lot
    • Truncation rate: high clip rates usually mean context design issues, not a weak model

    Governance order: slim prompts and compress retrieved snippets first, then downshift models, then change vendors. Reversing that order often looks like “the model got worse.”

    7. Evaluation framework and common mistakes

    Evaluate on your own traffic. Suggested flow: sample 300–1,000 real requests → human gold answers → automatic metrics (field accuracy, format compliance, key-point coverage) → record latency and cost → plot quality vs cost, not a single ranking.

    Three traps:

    1. Leaderboard-only: public sets differ from private distributions.
    2. One-shot eval: versions move fast; run quarterly regressions.
    3. Ignoring failure cost: retries and human review can make a cheap stack expensive.

    8. Conclusion and next steps

    The call-volume signal is clear: the market is moving from “pick the strongest model” to “operate a controllable mix.” Three steps: instrument the call path and metering; ship tiered routing and fallbacks; run quarterly evals on a private set and adjust the open/closed mix. When share is an observable, tunable knob, model choice becomes ongoing engineering rather than a one-time decision.