Analyzing the Shift from Training to Inference in AI Workloads

    This article breaks down the technical roadmap for developing custom AI inference chips, examining why the industry is shifting focus from training to inference, the supply chain vulnerabilities of dual-source dependencies, and the architectural trade-offs required for inference-specific silicon. It details the critical role of software-hardware co-design, compiler maturity, talent strategy, funding infrastructure, and a phased deployment roadmap, while outlining key technical, supply, organizational, and economic risks along with their mitigation strategies. Readers will gain a structured framework for evaluating the economics and engineering requirements of building proprietary inference hardware.

    1. Why the Industry Focus Is Shifting from Training to Inference

    Over the past few years, compute discussions have almost exclusively revolved around training: larger parameter counts, longer contexts, and more data. However, as large model applications enter the large-scale deployment phase, the workload structure has fundamentally changed. Training is a one-time, batch-schedulable task that is insensitive to latency, whereas inference is a continuous, online task that is extremely sensitive to tail latency.

    The scale described in the source material highlights the pressure: over 100 million monthly active users, more than 17 trillion monthly calls, and billions of daily inference requests. This type of workload has three distinct characteristics:

    1. Continuity and non-interruptibility: Training can queue up and wait for idle cards, but inference cannot, as user requests arrive at any time.
    2. Costs scale linearly with revenue: More users and more calls result in higher inference bills, and marginal costs cannot be amortized.
    3. Highly concentrated operator distribution: Unlike training, which requires covering a wide range of general operators, the operator set during inference is relatively convergent, leaving room for specialized design.

    The conclusion is straightforward: when inference becomes the primary cost driver, the “generality premium” of general-purpose accelerator cards becomes pure waste. This is the economic starting point for custom inference chips.

    2. Supply-Side Constraints: The Fragility of Dual-Source Dependencies

    Before a custom project begins, compute supply typically follows a “dual-source” structure: the underlying foundation models are trained on one type of high-end accelerator card, while online inference gradually migrates to another type of domestic accelerator card. The direct trigger for this migration was the tightening of export restrictions on high-end chips starting in late 2023, which made the supply of high-end cards unstable.

    The problem with dual-source dependency is not having “two suppliers,” but rather two software stacks, two operator libraries, and two sets of performance tuning experiences. Engineering teams must maintain duplicate adaptation code, and any migration means redoing performance regression tests. Therefore, the primary goal of a custom chip is not to be “more powerful,” but to bring the software-hardware contract of the inference pipeline under internal control.

    3. Architectural Trade-offs for Inference-Specific Chips

    Inference chips do not need the high-precision accumulation capabilities or large on-chip storage required for backpropagation, allowing for significant simplification:

    • Precision reduction: Primarily using low-precision floating-point and integer quantization, combined with a layer-wise mixed-precision strategy.
    • Memory hierarchy reordering: The bottleneck in inference is often weight movement rather than compute, so the ratio of on-chip cache capacity to bandwidth is often more critical than peak compute.
    • Simplified collective communication: Inference primarily involves intra-request tensor parallelism and cross-request batching, making communication patterns much simpler than the gradient synchronization in training.
    • Hardware-accelerated scheduling: Offloading parts of scheduling logic, such as continuous batching and paged attention caching, to hardware to reduce host-side overhead.

    It should be emphasized that the above are general industry-recognized directions for inference acceleration and do not represent the existing capabilities of any specific product.

    4. Software-Hardware Co-Design: The Compiler Is the Real Moat

    The most common reason for custom chip failure is not that hardware metrics fall short, but that models cannot run or cannot run fast. Therefore, the project must simultaneously build three layers of software capabilities:

    1. Graph-level compilation and operator fusion: Identifying patterns such as attention, normalization, and activation as fused operators to reduce memory access.
    2. Quantization and distillation toolchain: Supporting post-training quantization and quantization-aware training to ensure accuracy loss stays within an acceptable threshold.
    3. Runtime and scheduling: Handling dynamic batching, KV cache paged management, and priority preemption.

    A schematic offline compilation and accuracy verification flow (pseudocode, expressing only the process structure):

    1. # 1. Load the model and apply graph-level optimizations
    2. graph = load_model(checkpoint)
    3. graph = fuse_patterns(graph, patterns=["attention", "rmsnorm", "swiglu"])
    4. graph = apply_quantization(graph, scheme="w8a8_per_channel", calibrate_set=calib)
    5. # 2. Compile to the target backend to produce an executable artifact
    6. artifact = compile(graph, target="custom_inference_backend", opt_level="O3")
    7. # 3. Dual-threshold verification for accuracy and performance
    8. acc = evaluate(artifact, dataset=val_set)
    9. lat = benchmark(artifact, batch_sizes=[1, 8, 32], seq_lens=[128, 2048])
    10. assert acc.drop <= 0.5 and lat.p99_ms <= SLA_P99_MS

    Key metrics for online serving should cover at least: P99/P999 tail latency, inference cost per token, batch slot utilization, cache hit rate, and request queue time. Missing any of these makes it impossible to determine whether the custom chip is truly delivering benefits.

    5. External Collaboration and Talent Strategy

    The material indicates that the project has engaged with external parties including chip design firms, wafer foundries, and memory manufacturers, and has been quietly expanding its chip design team through headhunters and internal referrals. This is a standard path in the semiconductor industry: custom development does not mean building the entire stack in-house. Under the fabless model, a reasonable division of labor is to keep architecture and backend design in-house while relying on foundry and memory ecosystems for advanced process capacity and memory components.

    The talent structure also needs to be layered: architecture and performance modeling, RTL and verification, compiler and operator libraries, and the often-overlooked kernel and driver engineers. In practice, software-side staffing should not be lower than hardware-side staffing.

    6. Funding and Compute Infrastructure Support

    The initial funding round of approximately 51 billion RMB, the post-money valuation range, and the allocation of funds (expanding compute centers primarily based on domestic chips, advancing custom chip R&D, and expanding the team) demonstrate one thing: chip R&D must proceed in parallel with compute infrastructure. Otherwise, model iterations during the tape-out cycle will lack compute support. The reasonable approach is to first maintain business operations using general-purpose compute, and then validate the custom chip through “small-traffic canary—shadow traffic comparison—gradual traffic shifting.”

    7. Phased Deployment Roadmap

    • Phase 1 (0–6 months): Establish an inference workload profile, tally operator distribution and memory access hotspots, and produce the chip specification and performance model.
    • Phase 2 (6–18 months): Complete architecture design and FPGA/simulation verification, simultaneously build the compiler and operator library, and achieve accuracy alignment.
    • Phase 3 (18–30 months): Tape out, bring-up, and compare costs and tail latency against general-purpose solutions using shadow traffic.
    • Phase 4 (30+ months): Shift traffic in batches by business line, establish dual dashboards for capacity and cost, and continuously iterate on low-precision and cache ratios for the next generation.

    8. Risk Checklist

    Technical risks lie in compiler maturity and operator coverage; supply risks lie in advanced process and memory capacity; organizational risks lie in inconsistent pacing between software and hardware teams; economic risks lie in the difficulty of amortizing fixed custom chip investments if business growth slows. The corresponding mitigation measures are: prioritizing the convergence of the operator set, locking in capacity early, establishing a unified performance measurement standard, and retaining general-purpose compute as a fallback.

    For teams looking to adopt this path, infrastructure categories provided by Baidu AI Cloud, such as general container platforms, monitoring and alerting, and logging services, can serve as a general foundation for carrying canary validation and cost observation; the core conclusion remains unchanged: the deciding factors for custom inference chips lie in software-hardware co-design and measurement systems, rather than single-point hardware parameters.