Open-Source Model Commercialization: Trajectory Data and Cloud Revenue Sharing

    The conversation around open-source large language models (LLMs) is shifting from whether to open weights to how to sustainably monetize them. As enterprise spending concentrates on a few leading models, two critical questions emerge: how these models are trained using trajectory data, and how cloud platforms convert API calls into revenue. This article explores the role of trajectory data in different training stages, the nuances of cloud revenue-sharing models, and provides practical guidelines for enterprises to evaluate and deploy LLMs effectively.

    Discussions surrounding open-source large language models (LLMs) have shifted from “whether to open weights” to “how to achieve sustainable monetization.” Multiple industry surveys indicate that enterprise spending on open-source models is concentrating among a few leading models. This consolidation raises two key questions: how these model capabilities are trained, and how cloud platforms convert API calls into revenue. This article addresses both issues and provides evaluation and deployment guidelines for enterprises.

    1. Trajectory Data: Clarifying Training Stages

    Trajectory data records the complete process of a model solving a problem, including thinking steps, tool call parameters and return values, and the final answer. Compared to static text, this type of data is closer to real-world task execution, making it commonly used to improve model performance in multi-step tasks and tool calling.

    It is essential to clarify a concept here. The industry term “late pre-training” lacks a unified definition. Trajectory data typically appears in three stages: late pre-training (sometimes referred to as mid-training, occurring after general corpus training but before specialized capability training), supervised fine-tuning (SFT), and reinforcement learning (RL) post-training. The objectives, data scales, and quality requirements vary across these stages. Directly treating trajectory data as standard pre-training corpus might mislead readers into believing that simply adding large volumes of trajectories guarantees reliable agentic capabilities.

    There are three common risks associated with trajectory data. First, many trajectories originate from the outputs of other models, requiring verification that the source’s terms of service permit training use. Second, incorrect intermediate steps are also learned, meaning the model might learn tool-calling formats that appear logical but are functionally wrong. Third, if training data overlaps with evaluation sets, benchmark scores will overestimate the model’s actual capabilities.

    The following code demonstrates the process of converting an external model’s reasoning records into text training samples. It relies only on the Python standard library, and the input structure is hypothetical; field names should be adjusted according to your actual data sources.

    1. import json
    2. def format_for_pretraining(trajectory: dict) -> str:
    3. """Convert trajectory to plain text training sample. Output format is illustrative and needs adjustment based on the training framework."""
    4. lines = [f"Task: {trajectory['task']}"]
    5. for step in trajectory["steps"]:
    6. if step["role"] == "assistant":
    7. lines.append(f"Thought: {step['content']}")
    8. else:
    9. lines.append(
    10. f"Tool[{step['name']}] Input: {step['input']} Output: {step['output']}"
    11. )
    12. lines.append(f"Answer: {trajectory['final_answer']}")
    13. return "\n".join(lines)
    14. def construct_trajectory_data(query: str, external_model_response: dict) -> str:
    15. trajectory = {"task": query, "steps": [], "final_answer": ""}
    16. for step in external_model_response.get("reasoning_chain", []):
    17. if step["type"] == "thought":
    18. trajectory["steps"].append(
    19. {"role": "assistant", "content": step["content"]}
    20. )
    21. elif step["type"] == "tool_call":
    22. trajectory["steps"].append({
    23. "role": "tool",
    24. "name": step["tool_name"],
    25. "input": json.dumps(step["input"], ensure_ascii=False),
    26. "output": json.dumps(step["output"], ensure_ascii=False),
    27. })
    28. trajectory["final_answer"] = external_model_response.get("answer", "")
    29. return format_for_pretraining(trajectory)

    The field names and output format above are merely structural examples. Before actual training, additional steps such as deduplication, incorrect trajectory filtering, and sensitive information desensitization are required.

    2. Cloud Revenue Sharing: Billing Metrics Determine Actual Returns

    In the cloud revenue-sharing model, model providers deploy their weights to cloud platforms, allowing users to invoke the models via API or containerized instances. The platform bills based on call counts, token volume, or compute hours, and then shares revenue with the model provider according to contractual ratios. While this structure seems straightforward, actual returns depend on several details.

    Focus Area Key Questions to Confirm
    Billing Unit Is billing based on call count, input/output tokens, or GPU hours? Long contexts and multi-turn agent calls will significantly amplify token costs.
    Revenue Base Is the revenue share based on gross revenue, or net revenue after deducting compute, storage, and network costs?
    Price Adjustments Can the cloud platform unilaterally adjust pricing or revenue-sharing ratios? What is the notice period before adjustments take effect?
    Data Ownership Will user prompts, outputs, and call logs be used for training? Who owns this data?
    Exit Clauses After terminating the partnership, how are deployed model versions, historical logs, and user data handled?

    For enterprise users, these terms should be cross-referenced item by item with internal cost models before signing. For model providers, the billing rules outside of the revenue-sharing ratio equally determine whether income remains stable.

    3. Evaluation: Using Business Tasks Over Benchmark Scores

    Benchmarks measure average performance on public datasets, whereas enterprise business task distributions usually differ. It is recommended to evaluate using the following steps:

    1. Extract 100 to 300 tasks from real workflows, covering both common scenarios and edge cases.
    2. For each task, record whether it was completed, if tool call parameters were correct, whether JSON output could be parsed directly, and if repeated or looping invalid steps occurred.
    3. Measure latency and cost per task under identical concurrency and context lengths.
    4. Set pass thresholds based on business requirements. For example, if a workflow requires a high JSON parsing success rate, that workflow’s requirement should dictate the threshold rather than adopting someone else’s standard.

    During evaluation, focus on the following five areas:

    • Long-context information retention: Place key conditions in the middle of a document and observe if the model misses them.
    • Tool calling compliance: Are parameter types, required fields, and call sequence correct?
    • Refusal capability: When faced with a question that cannot be answered from the context, does the model admit uncertainty instead of fabricating content?
    • Error recovery: After a tool returns a failure, can the model retry using a different approach instead of repeating the same call?
    • Single-task cost: This includes average token consumption and the overhead caused by failed retries.

    4. Self-Hosted vs. Managed

    Enterprises typically have three deployment options:

    • Self-hosted inference: All data remains in your own environment, offering maximum control. The trade-off is the need to purchase or lease GPUs, maintain the inference framework (e.g., KV Cache management, batch scheduling, and memory allocation), and handle scaling and fault tolerance. This is suitable for enterprises with dedicated infrastructure teams, stable traffic, and large scales.
    • Cloud-managed: Offers quick deployment, elastic scaling, and usually out-of-the-box logging and monitoring tools. The unit cost per call is generally higher, and it may lead to platform lock-in. This is suitable for teams needing rapid validation or experiencing fluctuating call volumes.
    • Hybrid approach: Core sensitive business operations are self-hosted, while the rest use managed services. This increases operational complexity but diversifies lock-in risks.

    There is no one-size-fits-all answer. The choice depends on call volume, data sensitivity, and team size. You can run the same evaluation set on both solutions to compare costs and stability. Managed platforms’ model version management and canary releases can reduce operational overhead.