LLM Cross-Chip Adaptation: Three Days to Inference Is Only the Starting Line
This article examines a widely circulated claim that a large language model was ported to a new accelerator in roughly three days using an AI coding tool. It explains why that result is real but narrowly scoped—covering one model, one accelerator, and only the prefill stage—and uses arithmetic intensity to show why prefill is comparatively easy while decode remains hard. It then outlines the layers of a complete cross-chip capability matrix, a scoreable evaluation framework, a four-phase rollout path, and the practical boundaries of AI coding tools, closing with a checklist for technical decision makers.
1. The Bottom Line: Three Days Is Real, but the Scope Is Narrow
A claim from an IPO roadshow deck has been circulating widely in technical communities: porting a large language model to a new chip platform used to require dozens of engineers working for months. This time, the team let an AI coding tool attempt the work, and the model was running on a new accelerator card in about three days, with almost no manual intervention. Most of the low-level compute kernels were ported or written by the model itself. A comparison graphic in the deck placed “three days” next to “roughly six to twelve months with traditional methods.”
Statements like this are easily read as “the entire large model has been fully migrated to a new chip.” But a footnote at the bottom of the slide draws a very different boundary: the three days refers to the approximate time a preview version of an AI coding tool needed to bring one model’s prompt processing stage to a usable performance level on one specific accelerator card.
Three qualifiers must hold at the same time:
- One model, not all models;
- One accelerator card, not every chip model;
- Only the prefill stage, with no token-by-token decode and no training.
With those three points restored, the conclusion becomes: the “first mile” of cross-chip adaptation is being significantly compressed by automation, while the “last mile” remains expensive. Understanding this dividing line is more valuable than remembering the number “three days.”
2. Why Prefill Is Easy and Decode Is Hard: A Look at the Arithmetic
To judge the real difficulty of an adaptation effort, start with the physical characteristics of the workload. With BF16 weights, each parameter occupies 2 bytes, and for every token the model processes, each parameter participates in roughly 2 floating-point operations (one multiply, one add).
In the decode stage with a batch size of 1, about 2 operations are performed for every 2 bytes of weights read from memory, giving an arithmetic intensity of roughly 1 FLOP/byte. Compute units sit largely idle, and the bottleneck falls on memory bandwidth, KV cache management, and request scheduling.
Prefill is different: a 2,000-token prompt is computed together, so the same 2-byte weight is reused about 2,000 times, giving an arithmetic intensity of roughly 2,000 FLOP/byte. The main work is large matrix multiply-add and attention computation—the most regular and “standard” workload on an accelerator, where vendors’ own math libraries and operator templates usually have deep accumulated coverage.
A rough intensity estimate can be written as:
def arithmetic_intensity(bytes_per_param=2, flops_per_param=2, reuse=1):# reuse: decode ≈ 1, prefill ≈ prompt lengthreturn flops_per_param * reuse / bytes_per_paramprint(arithmetic_intensity(reuse=1)) # ≈1 FLOP/byteprint(arithmetic_intensity(reuse=2000)) # ≈2000 FLOP/byte
The conclusion is direct: getting prefill working first means tackling the easiest part first. What is genuinely troublesome in production serving is the decode side—paged attention under long context, speculative decoding, and multi-card communication (high-speed interconnects and collective communication libraries differ across ecosystems). Much of that “few months” of human effort in the past was consumed here, and the footnote says nothing about how long this part takes.
3. “Full-Chip Training and Inference” Is a Goal, Not a Completed Fact
The roadshow text does state goals such as “adapting to all chips and covering both training and inference,” but goals and current reality must be kept separate. A complete cross-chip capability matrix contains at least four layers:
- Operator layer: base kernels such as matrix multiplication, attention, normalization, and quantization/dequantization;
- Parallelism layer: data parallelism, tensor parallelism, pipeline parallelism, and sequence parallelism;
- Communication layer: collective communication primitives, topology-aware routing, and overlap;
- Scheduling layer: memory management, batching strategy, fault tolerance, and elastic scaling.
Prefill touches only a small part of the first layer. Training additionally involves backpropagation, optimizer states, mixed precision, and numerical stability; inference involves long context, concurrent preemption, and tail latency. A gap in any layer creates an order-of-magnitude difference between “it runs” and “it can go live.”
4. A Reusable Framework for Evaluating Cross-Chip Migration
Rather than chasing a single data point, build a scoreable evaluation sheet. Before a project starts, define these dimensions:
- Coverage: target model list, precision formats, context length range;
- Performance: throughput, time to first token, inter-token latency, tail latency;
- Stability: long-run duration, numerical consistency error range;
- Engineering cost: number of new operators, proportion of manual intervention, rollback mechanism;
- Operations: monitoring and alerting, logging services, compatibility with container platforms and scheduling systems.
When evaluating, stick to the “three sames” principle—same model, same prompt distribution, same batching strategy—otherwise the data is not comparable.
5. A Phased Rollout Path
Phase one: get prefill working. The goal is correct and usable performance for a single long prompt, focusing on math library coverage and memory usage.
Phase two: tackle decode. Introduce paged attention, continuous batching, and speculative decoding, focusing on memory bandwidth utilization and scheduling overhead.
Phase three: extend to training. Start with small-scale numerical alignment, then gradually scale up parallelism strategies, watching the overlap ratio between communication and computation.
Phase four: turn it into a routine capability. Settle the adaptation process into a repeatable pipeline, delivered through a container platform, observed with monitoring, alerting, and logging services, and guarded by automated regression.
6. The Real Value and Boundaries of AI Coding Tools
Automatically generating low-level compute kernels can indeed compress repetitive, pattern-based porting work into a very short time, and it is especially suited to structurally clear workloads such as matrix multiplication and element-wise operations. But it is not responsible for three things: defining acceptance criteria, judging whether numbers are correct, and bearing responsibility for production incidents. A more reliable approach is therefore a closed loop of “machine generation + human review + automated validation,” not end-to-end unattended operation.
7. A Checklist for Technical Decision Makers
- When you see “adaptation in a few days,” first ask about the number of models, the chip model, and the scope of stages;
- Accept prefill and decode separately, with separate metrics for each;
- Use different evaluation criteria for training and inference;
- Request numerical consistency and long-run stability test reports;
- When validating on platforms such as Baidu AI Cloud, prefer standard capabilities like a general-purpose container platform, object storage, and monitoring and alerting to build a reproducible environment, and avoid binding to proprietary interfaces.
In one sentence: three days to get prefill working is real progress brought by automation, but it looks more like the starting line than the finish. Seeing the boundaries clearly, splitting the phases apart, and making acceptance rigorous is the right way to avoid being misled by numbers in the cross-chip era.
