Open-Source LLMs in a New Phase: Cloud Revenue Sharing, Trajectory Data, and Model Selection

    This article examines the evolving commercialization of open-source large language models, covering cloud-provider revenue-sharing models, how trajectory data improves long-horizon reasoning and agent capabilities, a three-layer cloud deployment architecture, and practical API calling considerations. It is aimed at engineers and technical decision-makers evaluating open-source models for production use.

    1. Open-Source Model Commercialization Enters a New Phase

    In the past, commercializing open-source models followed two main paths. One was for model vendors to build their own API services and charge per call. The other was for enterprises to download the weights and deploy them in their own data centers or private clouds. Both approaches placed significant compute or operations costs on the user. As model parameter counts kept growing, the barrier to private deployment rose sharply, putting it out of reach for many small and mid-sized companies.

    In the last couple of years, a new form of collaboration has emerged. Some cloud providers integrate open-weight models into their AI platforms and agree on revenue sharing with the model vendors. The model vendor no longer has to shoulder large-scale inference infrastructure alone; the cloud provider handles compute scheduling, containerized deployment, and the API gateway. The two parties settle based on model call volume.

    Reports from different institutions vary widely on the share of enterprise spending attributable to open-source models. These figures often depend on the geographic scope, the definition of spending, and the sample composition. When citing such data, always verify the report name, publication date, and statistical methodology first.

    2. How Trajectory Data Improves Long-Horizon Reasoning and Agent Capabilities

    First, distinguish between training stages. The main task of pretraining is next-token prediction over massive text corpora, aimed at learning language and general knowledge. The data is predominantly static text.

    To make a model handle multi-step reasoning and tool use, the training focus usually shifts to post-pretraining stages. Three common approaches are:

    First, supervised fine-tuning (SFT). The training data consists of complete task trajectories: reasoning, invoking tools, receiving execution results, detecting errors, correcting them, and producing a final answer. For example, an agent that can autonomously write code and run tests needs samples covering the full loop of “write code, run tests, read error messages, locate the cause, fix the code, and run again.”

    Second, rejection sampling. The training team has a stronger early-stage model or a previous-generation model generate multiple candidate trajectories for the same task, then filters them using unit tests, rule-based checks, or a judge model, keeping only the successful samples. The main cost of this method lies in generation and verification.

    Third, reinforcement learning. The model executes tasks in an interactive environment, and environment feedback (such as whether tests pass or the task is completed) serves as the reward signal. The model updates its policy accordingly and learns to plan and decompose tasks.

    Some teams also insert a mid-training phase between pretraining and post-training, running an additional round of continued training on high-quality reasoning and code data. Whether to adopt this depends on the team’s data and compute resources.

    Some model vendors mention in their technical blogs that most trajectory samples in the post-training stage come from earlier models. Similar practices are fairly common in the industry, but the specific proportions, sample sources, and evaluation methodology should be based on the vendor’s published technical documentation. When judging model capability, prioritize benchmark results that match your own tasks and evaluate across multiple metrics.

    3. A Three-Layer Architecture for Cloud Deployment

    When integrating open-source models into business systems, enterprises typically adopt the following three-layer structure.

    1. Gateway and routing layer: centrally manages API keys for multiple models, and handles load balancing, rate limiting, fallback, and per-token billing.
    2. Model inference layer: schedules GPU resources on a container platform and serves models with inference frameworks such as vLLM. vLLM’s PagedAttention mechanism manages the KV cache in pages, reducing GPU memory fragmentation. When deploying, record the vLLM version and key parameters such as maximum context length, concurrency, and tensor parallelism. Run load tests before going live and record time-to-first-token and output tokens per second. To increase concurrency, you can enable KV cache quantization, but you must confirm with an evaluation set that the accuracy loss is within an acceptable range.
    3. Data and storage layer: use object storage for user-uploaded documents, a vector database for indexes, and a message queue to handle asynchronous agent tasks.

    4. Calling Example and Caveats

    When calling cloud-hosted models, the most common omissions are timeout configuration, exception handling, and key management. The following example covers all three.

    Prerequisites: Python 3.9 or later, with the requests library installed (pip install requests). The API endpoint, model name, and key should be based on