Keep the working set on the chip
Activations, recurrent state and the weights in flight fit in on-chip scratch memory, so apart from weights streaming in, only a layer's inputs and outputs cross HBM.
It serves GLM-5.3-Flash, a 320-billion-parameter model with a million-token context, from a single trn2.48xlarge. We wrote its decode kernels and its prefix cache. The code is open and the method is published.
| Measured | Value | Conditions | Source |
|---|---|---|---|
| Agent requests a minute from one box | 28.9req/min | 32 agents at batch size 12 on the AgentX benchmark. | Method |
| Tokens a minute at that point | 3.57Mtokens/min | Input and output together. About 95% is prompt input read from the prefix cache. | Method |
| To the first token of a 1,039,912-token prompt | 190.8s | One instance on half the box, one request alone, nothing cached. | Method |
| To the first token of a follow-up question on that cached context | 1.84s | Median of three follow-up questions. | Method |
One AWS trn2.48xlarge (16 Trainium2 chips) running two serving instances of GLM-5.3-Flash with FP8 weights. AgentX runs on 2 November 2026 with agentx-harness 1.0.7, run by us, a single one-hour run per point. These are not official InferenceX results. They were measured with our internal build of 2 November 2026; the public repository compiles the same graphs.
A decode step spent only a quarter of its time moving bytes. The rest went to small instructions, call boundaries and waits. So decode became one NKI kernel per layer half, or per whole layer for the sparse-attention layers.
One decode step with eight requests per instance, on the same layout. The October build already ran first versions of two of the kernels. The floor is the time it takes to read what the step needs from memory, so a step still takes four times its floor.
Activations, recurrent state and the weights in flight fit in on-chip scratch memory, so apart from weights streaming in, only a layer's inputs and outputs cross HBM.
A logical NeuronCore is a pair of physical cores, and a kernel runs as two programs. Splitting the weight streams between them nearly doubles how fast weights arrive.
When a sum across chips would block a kernel, it moves into the kernel, where independent work can overlap the wait.
The box runs two engines, each a full copy of the model across 32 logical NeuronCores on 8 chips. A router keeps every agent session on one engine, so its prefix stays cached there.
The median AgentX prompt is 83K to 106K tokens, and only about 1.6K to 1.9K of them are new. About 95% of all tokens are cached input and under 1% are output.
A session ID pins a conversation to one engine. Without one, the router picks the engine that already holds the longest prefix of the prompt.
It decodes up to 12 requests at once and prefills new prompt text in chunks of up to 4,096 tokens, with every graph compiled ahead of time.
Reading a full context takes minutes. The prefix cache keeps what was read in device memory, with a host-memory tier for evicted pages, so the next question starts in seconds.
190.8s
First read of a 1,039,912-token prompt. Nothing is cached, so every page is processed.
1.84s
A follow-up on the same context. The pages are in the prefix cache, so only the new tokens are processed.
The first read is one request alone on half the box, at about 5,450 prompt tokens a second. The follow-up is the median of three.