This document is relevant for: Inf1, Inf2, Trn1, Trn2, Trn3
AWS Neuron SDK 2.27.0: Neuron Kernel Interface (NKI) release notes#
Date of release: December 19, 2025
Go back to the AWS Neuron 2.27.0 release notes home
What’s New#
This release introduces NKI Beta 2, featuring the new NKI Compiler and significant enhancements to the NKI language constructs and APIs, including changes to existing APIs. For information about the different NKI Beta versions, see About NKI Beta Versions.
To take advantage of Beta 2 with the new compiler, import the nki.* namespace in your code
and annotate your top-level kernel function with @nki.jit.
Backward Compatibility and Migration
Neuron 2.27 supports both the neuronxcc.nki.* and nki.* namespaces side by side,
allowing existing Beta 1 kernels to continue working seamlessly. However, Neuron 2.27 will
be the last release to include support for the neuronxcc.nki.* namespace. Starting with
Neuron 2.28, this namespace will no longer be supported.
The new nki.* namespace introduces changes to NKI APIs and language constructs. We
encourage customers to migrate existing kernels from neuronxcc.nki.* to the new nki.*
namespace. A kernel migration guide is available in the Neuron 2.27 documentation to assist
with this transition.
New nki.language APIs#
New nki.isa APIs#
nki.isa.nc_n_gather [used to be
nl.gather_flattenedwith free partition limited to 512]
New dtypes#
Changes to Existing APIs#
Several nki.language APIs have been removed in NKI Beta 2
All nki.isa APIs have
dstas an input paramAll nki.isa APIs removed
dtypeandmasksupportnki.isa.memset — removed
shapepositional arg , since we havedstnki.isa.affine_select — instead of
pred, we now takepatternandcmp_opparamsnki.isa.iota —
exprreplaced withpatternandoffsetnki.isa.nc_stream_shuffle -
srcanddstorder changed
Documentation Updates#
Restructured NKI Documentation to align with workflows
Added Get Started with NKI
Added NKI Language Guide
Added About the NKI Compiler
Added About NKI Beta Versions
Updated Matrix Multiplication Tutorial
Updated Profile a NKI Kernel
Updated NKI APIs
Updated NKI Library docs
Removed NKI Error Guide
Known issues#
nki.isa.nc_matmul -
is_moving_onezerowas incorrectly namedis_moving_zeroin this releaseNKI ISA semantic checks are not available with Beta 2, workaround is to reference the API docs
NKI Collectives are not available with Beta 2
nki.benchmark and nki.profile are not available
This document is relevant for: Inf1, Inf2, Trn1, Trn2, Trn3