This document is relevant for: Inf2, Trn1, Trn2, Trn3
NCC_EVRF065#
Error message: NKI kernel ‘<name>’ was traced with an unsupported NKI version.
This error occurs when the compiler detects a NKI (Neuron Kernel Interface) kernel that was traced with an older, incompatible version of NKI. These legacy kernels are missing required metadata that the current compiler expects.
Why this happens#
NKI kernels are traced and compiled into intermediate artifacts by the NKI toolchain. When NKI traces a kernel, it records metadata alongside the kernel binary. Newer versions of the compiler require metadata fields that were not present in older NKI versions. If the compiler encounters a kernel artifact that lacks these fields, it cannot safely compile the kernel and raises NCC_EVRF065.
Common causes#
The NKI kernel was traced with an earlier version of the NKI toolchain and is being compiled with a newer compiler release.
A cached or serialized model graph contains stale NKI kernel references from an older environment.
The
neuronx-ccpackage was upgraded, but the NKI kernels were not compiled again.
Resolution#
Upgrade the installed NKI version to the latest release compatible with your compiler version.
pip install --upgrade nki neuronx-cc==2.* --extra-index-url=https://pip.repos.neuron.amazonaws.com
You can confirm the installed version afterwards with:
pip show nki
Recompile your model to regenerate the NKI kernel artifacts with the updated toolchain. With TorchNeuron, run the model again in eager mode or with
torch.compile(backend="neuron")so that all NKI kernels compile with the current NKI version.Clear any cached artifacts from previous runs to ensure stale kernel binaries are not reused.
This document is relevant for: Inf2, Trn1, Trn2, Trn3