Trillion-Parameter LLMs with 1M-Token Context: Technical Evolution and Practical Insights
This article explains how trillion-parameter language models with 1-million-token context windows are built and where they perform well. It covers the engineering problems of long context, including attention cost, context caching, and position encoding. It also summarizes reported results for coding, long-horizon agent tasks, tool use, financial workflows, factuality, and safety, plus cost guidance for developers.
1. Background: Parallel Growth in Parameter Scale and Context Length
Large language model development has followed two main lines in recent years. The first is steady growth in parameter count, from tens of billions to hundreds of billions and now trillions. The second is the expansion of context windows, from a few thousand tokens in early models to around one million tokens today.
In October 2026, a Chinese team released its most capable model to date. It has 3 trillion parameters and accepts up to 1 million input tokens. Together, these two specifications mean the model can process an entire book, a very large code repository, or hours of conversation history in a single inference pass. This represents a substantial capability gain for complex engineering work.
Parameter count and context length are not simply “bigger is better.” Parameter count sets the limit on the model’s knowledge capacity and reasoning depth. Context length sets how much information the model can see at once. The two work together to support long-document understanding, code changes across multiple files, and multi-turn tasks that run for a long time.
2. Long-Context Challenges and Engineering Approaches
Supporting a 1-million-token context requires solving several engineering problems.
1. Controlling attention compute cost. Standard self-attention cost grows quadratically with sequence length. Common remedies include sparse attention, a mix of sliding-window and global attention, and KV cache compression. In practice, local dependencies usually use window attention, while a small set of key positions, such as document titles or code definitions, keep global attention. This balances capability and cost.
2. Reusing context caches. In long-context workloads, the same prefixes, such as system prompts or large knowledge documents, are often reused many times. A cache stores the precomputed KV cache for a prefix. When a later request hits the cache, it pays a much lower price than regular input tokens. Typical pricing separates the following categories:
Regular input tokens → full priceRegular output tokens → typically several times the input priceCache-hit portion → about 1/10 of the priceShort-term cache write (minute-level) → close to the input priceLong-term cache write (hour-level) → about 2x the input price
For agent applications that use a fixed, long system prompt, effective caching can cut overall inference cost by an order of magnitude.
3. Extrapolating position encodings. To extend a model from its training length to a longer inference length, teams use position encoding extrapolation methods, such as scaling rotary position embeddings. They also construct training data for long sequences. Together, these steps help the model avoid “lost in the middle” performance drops on very long inputs.
3. Coding Ability and Long-Horizon Agents: The Core of This Upgrade
Public evaluation information indicates that this generation focuses its upgrades on code generation and long-horizon agents. The developers state that the model reaches or approaches the level of the strongest closed-source models on coding, agent, and knowledge benchmarks.
1. Terminal-constrained tasks. Terminal-Bench 4.0 measures how well a model completes tasks in a real terminal environment under constraints. The model scored 65.7%. This is well above some models in the comparison group and about 0.7 percentage points below the top result. The benchmark does not ask the model to output code snippets. It requires the model to plan on its own in a real shell, run commands, observe the results, and fix its mistakes over several iterations. This is closer to real engineering work.
2. Long-horizon task performance. On an internal long-horizon coding benchmark, the new version scored 61.2%, up from 55.95% for the previous generation. A long-horizon task cannot be finished in one step. The model must keep track of state across steps, handle intermediate failures, and keep its goal consistent across dozens of interaction rounds. These tasks place high demands on planning, stable tool calls, and context management. A typical long-horizon agent loop looks roughly like this:
while not task_done:observation = run_tool(model.select_tool(state))state.update(observation)if model.need_reflect(state):state = model.reflect_and_replan(state)
3. 3D modeling and tool chains. The model can work with scripting interfaces in game engines such as Unity, Unreal Engine, and Godot. It can also write and run parametric scripts for 3D modeling software. On a benchmark of CAD-style tasks completed with tools, it scored 92.7%, close to the strongest closed-source models. This suggests that the value of a model lies not only in generating code. It also lies in whether the model can operate professional tools to produce end-to-end results.
4. Vertical Use Case: End-to-End Financial Workflows
In finance, the model can deliver end-to-end workflows for financial modeling, investment analysis, and industry research reports. It scored 64.4 on the external benchmark OfficeQA Pro v2, which the official materials describe as the best result reported so far.
These workflows involve many documents, tables, and steps. A user may need to extract data from raw financial reports, build a three-statement linked model, run sensitivity analysis, and produce structured conclusions. A single prospectus or annual report can reach hundreds of thousands of tokens, and a full workflow may need to reference several such documents at once. For this reason, million-token context is especially useful in these scenarios.
5. Factual Accuracy and Safety Alignment
1. Measured hallucination reduction. In internal stress tests deliberately focused on error-prone cases, the error rate for individual factual statements fell from 23.4% in the previous generation to 8.3%. The share of answers containing at least one factual error dropped to about 42.4% of the previous generation’s rate. These tests specifically selected difficult questions, so the error rates do not represent overall performance in everyday use. Interpret the results with caution. Common techniques for reducing hallucinations include retrieval-based cleaning of pretraining data, injecting factuality preference data during reinforcement learning, and uncertainty calibration at inference time.
2. Proactive governance of safety data. The developers state that they identified and removed cybersecurity-related misuse risk data during both mid-training and reinforcement learning. As one reference point, on an in-house, high-difficulty safety benchmark, the unfiltered version solved 90.5% of problems, while the released version solved 81.0%. This gap shows the capability cost of safety filtering. About 9.5 percentage points of task performance were traded for a significant reduction in misuse risk. Finding the right balance between capability and safety is a central engineering and ethical challenge for every frontier model team.
6. Pricing Strategy and Cost Optimization
The model is priced lower than the previous generation. It also offers a high-speed version priced at about twice the standard version. Developers can apply several general cost optimization practices:
- Route calls by latency sensitivity. Use the high-speed version for real-time conversation and the standard version for batch offline tasks, such as bulk codebase analysis or report generation. This can significantly reduce costs.
- Maximize cache hit rates. Place stable system prompts, tool definitions, and domain knowledge documents at the start of the context. Put variable content at the end to improve prefix cache hits.
- Control output length. Output tokens typically cost about five times as much as input tokens. Use clear output format requirements and length limits to reduce unnecessary generation.
- Trim context. Not every long document needs to be fully injected. Use retrieval to locate relevant passages first, then assemble the context only as needed.
7. Summary and Outlook
This generation of trillion-parameter models with million-token context shows that Chinese LLMs have reached the global top tier on demanding measures such as long-horizon agent tasks, code engineering, and vertical workflows.
For developers, the more important takeaway is that model progress is shifting from single-turn answer quality to end-to-end task completion. Application architecture should follow this shift. Instead of simple prompt calls, teams should build systems that manage state, orchestrate tools, optimize caching, and tier costs. Future competition will likely focus on the reliability of long-horizon tasks, the verifiability of factual accuracy, and the balance between safety and capability.
