Large Model Self-Innovation: Architecture Breakthroughs and Domestic Chip Deployment in Practice
This article examines how external constraints drive innovation in large model development, using a seven-year engineering path as a reference. It covers three core challenges: making architectural trade-offs in pre-training (sparse conditional computation, linear and hybrid attention, and controlled architecture experiments), improving long-horizon capabilities through post-training and reinforcement learning, and adapting models to domestic compute through a structured engineering pipeline. Developers will find practical guidance on reproducible evaluation baselines, task decomposition with automated verifiers, quantization and precision tuning, backend-agnostic serving, and canary rollouts, along with the infrastructure needed to make continuous innovation repeatable.
1. The Core Issue: Why “There Is Always a Way” Is an Engineering Conclusion
In large model R&D, constraints are never abstract. They usually take three concrete forms: a ceiling on compute supply, technical routes that have not yet converged, and existing results that cannot automatically carry over to the next generation. The seven-year path described in the original article—choosing to build a pre-training architecture in-house before the industry had reached consensus, open-sourcing a hundred-billion-parameter model, exploring domestic chip compatibility, handing a dialogue model to a broad developer community, continuing to advance coding and AI Agent work after being placed on a certain country’s export control list, iterating continuously on long-horizon tasks and reinforcement learning, and eventually running the entire inference stage on domestic chips—is essentially a sample of constraint-driven innovation.
It is worth emphasizing that these technical choices all carried risk at the time, even though they look inevitable today. This points to a fact developers often overlook: the soundness of a technical architecture is validated after the fact, while engineering decisions must be made with incomplete information. This article therefore does not focus on any single lead, but on a reusable method: when external constraints tighten, how to turn those constraints into concrete architectural and engineering gains.
2. The First Hurdle: Engineering Trade-offs in Pre-Training Architecture
The mainstream decoder-only autoregressive architecture is not the only solution. When compute becomes a hard constraint, the directions worth prioritizing include:
- Sparsity and conditional computation: Using a routed expert structure to decouple parameter count from per-token computation, so total parameters can grow while inference cost stays manageable. The cost is load balancing and routing stability, which require auxiliary losses and capacity factor tuning.
- Linear and hybrid attention: Replacing full attention in some layers with linear attention or state-space sequence modeling to reduce the memory and compute complexity of long sequences; hybrid stacking can balance long-range recall against efficiency.
- Controlled experiments with architecture variants: Exploratory structures that reorganize inter-layer information flow through recurrence or state compression, whose value lies in achieving longer effective context modeling with a smaller compute budget.
Illustrative capacity and cost estimation (expressing order-of-magnitude relationships only, not any product parameters):
def estimate_flops(params, tokens, active_ratio=1.0):# Total training compute is roughly 6 * active parameters * tokensreturn 6 * params * active_ratio * tokensdense = estimate_flops(params=100e9, tokens=1.5e12, active_ratio=1.0)sparse = estimate_flops(params=400e9, tokens=1.5e12, active_ratio=0.1)print(dense, sparse) # A sparse structure can be more economical than a dense one at the same active scale
Engineering takeaway: any architecture change must come with a reproducible evaluation baseline; otherwise it is impossible to separate “architecture gains” from data or tuning noise.
3. The Second Hurdle: Post-Training and Reinforcement Learning Set the Ceiling on Intelligence
Pre-training sets the floor; post-training determines usability. The three-stage pipeline widely accepted in the industry is supervised fine-tuning, preference alignment, and reinforcement learning with verifiable rewards. The genuinely hard part is long-horizon tasks: multi-step tool calls, repository-level code changes, and complex document processing. Their failures usually come not from single-step correctness but from error accumulation and context drift.
Practices that can be put in place:
- Task decomposition and environment construction: Break long-horizon tasks into subgoals with explicit termination conditions, and provide automatically checkable verification signals for each step (unit tests, type checks, structured output schema validation).
- Reward design that avoids proxy metrics which can be gamed, adding format and process constraints to suppress verbosity and boilerplate.
- Training-inference consistency: The tool-calling protocols and context templates used during post-training must match production, otherwise the gains will not transfer.
{"task": "refactor_module","subgoals": ["locate_symbol", "patch_code", "run_tests", "summarize_diff"],"verifiers": ["unit_test", "type_check", "schema_validate"],"termination": "all_verifiers_pass or max_steps_reached"}
4. The Third Hurdle: Domestic Compute Adaptation and Inference Deployment
Limited compute does not mean unusable; the key is to make adaptation an engineering pipeline rather than a one-off port. A relatively mature path typically includes an operator coverage audit, precision strategy selection, graph compilation and operator fusion, quantization and parallelism tuning, and canary and rollback mechanisms. One clear industry trend over the past year: the inference stage is fully migrated to domestic chips first, while the training side is rolled out in batches by cluster scale.
Recommendations for layered progress:
- Model layer: Prioritize keeping the structure hardware-friendly and avoid uncommon operators; prepare equivalent replacement implementations for operators that cannot be supported efficiently.
- Precision layer: Use a calibration set to determine the quantization scheme, compare activation distributions layer by layer, and locate the sources of accuracy loss.
- Service layer: Use a unified abstraction to hide backend differences, and combine logging, monitoring and alerting, and container platforms to enable elastic scaling and canary releases.
# Pseudocode: a backend-agnostic inference adaptation layerclass Backend(Protocol):def load(self, weights: str) -> None: ...def generate(self, prompt: str, **kw) -> str: ...def serve(model: str, backend: Backend, canary_ratio: float = 0.05):backend.load(model)# Small-traffic canary -> metric comparison -> full rolloutreturn canary(backend, ratio=canary_ratio,metrics=["p99_latency", "throughput", "eval_score"])
5. Turning “Continuous Innovation” into a Repeatable Process
The hardest part of self-innovation is not going from 0 to 1, but continuing to find new breakthroughs after crossing that first “1.” Making it repeatable requires three pieces of infrastructure: a unified evaluation system (viewing capability, efficiency, and safety metrics together), reproducible experiment management (data versions, configurations, and random seeds all traceable), and an open ecosystem (reaching developers worldwide through mainstream cloud platforms and international communities, forming a feedback loop).
The practical takeaway for developers is direct: do not treat technology selection as a one-time bet, but design it as a structure that is replaceable, measurable, and rollback-capable. The difficulties will not disappear, but as long as someone is willing to solve the problems that are hard and right, the technical ceiling will keep being raised—there is always a way, and the pace of innovation has never stopped.
