Zhidaily AI · Intelligence · Daily
Zhidaily
Issue 6 · November 5, 2026 · Thu
Today's stories
11 stories · 5 companies
Home / November 5, 2026 / RunAnywhere releases an NKI inference engine for GLM-5.3-Flash on AWS Trainium2
← Back
Guide Models / Chips & Compute · Amazon·AWS · Alibaba Score7

RunAnywhere releases an NKI inference engine for GLM-5.3-Flash on AWS Trainium2

MachineLearning /u/WildCard727 · Reddit · reddit.com
Nov 5 · 05:47 Read the original ↗
01Summary

RunAnywhere open-sourced an inference engine for AWS Trainium2 that serves GLM-5.3-Flash, a 320B-parameter MoE model with a 1M-token context window, on a single trn2.48xlarge. The authors say that in early builds most of a decode step's time was not model compute: in one KDA linear-attention layer at batch 1, the recurrence took 2% of the attention half-layer, while mHC pre-projection took 36%, XLA glue 33%, transposes 10% and stream mixing 10%. Each layer half, or the whole layer for sparse attention, was rewritten as a single NKI kernel, keeping the working set in on-chip SBUF, splitting weight streams across both physical cores of a logical core, and overlapping collective communication inside the kernel. Under the same layout, the batch-8 decode step fell from 32.2 ms in the October 17 build to 24.2 ms on November 1, with the fused sparse attention layer and the KDA/MoE kernels each contributing 3.2 ms. The authors state there is no comparable official AWS baseline, since the latest vLLM Neuron plugin does not register GLM models and NxD Inference is in maintenance mode, and that they did not run a GPU comparison on the same trace.

02Background

GLM-5.3-Flash is an open-weight model released by Z.ai under the MIT license, with 320B total parameters and 18B activated parameters, native multimodality and support for a million-token context; it is positioned for low-cost inference rather than top capability. According to tool results, it has 45 layers, and both its activated parameters and layer count are about half those of the GLM-4.5 series. Inference on AWS Trainium2 previously lacked a directly comparable official path: the authors point out that the latest vLLM Neuron plugin does not register GLM models and that NxD Inference is in maintenance mode, so the project required writing kernels in NKI itself.

03Impact for Trainium2 deployers

The project's authors point out that there is currently no directly comparable official AWS baseline: the latest vLLM Neuron plugin version does not register GLM models, and NxD Inference is in maintenance mode, so teams wanting to serve GLM-5.3-Flash on Trainium2 can only build or port an inference stack themselves. The authors also warn that passing the NKI simulator does not mean correctness on the device: three kernels passed in the simulator but produced wrong results on the device, involving multiple matmul accumulation groups in PSUM slices, in-kernel collective communication without a fence, and one program reading shared HBM that another program had just written within the same pair of programs. When porting kernels, byte-by-byte verification on real devices is needed.