.. post:: November 30, 2026
    :language: en
    :tags: announce-removal-neuronxcc-nki-2-34

.. _announce-removal-neuronxcc-nki-2-34:

Announcing the removal of the neuronxcc.nki namespace from neuronx-cc in Neuron 2.34
------------------------------------------------------------------------------------

.. meta::
   :description: Starting with Neuron 2.34, the neuronx-cc package no longer includes the deprecated neuronxcc.nki namespace. Import NKI from the standalone nki package instead.
   :keywords: neuronxcc.nki, nki, NKI, neuronx-cc, end of support, breaking change, migration, Neuron 2.34
   :date-modified: 2026-11-16

.. Confirm with the Neuron Compiler team (CDT-1315) that the removal ships in Neuron 2.34 before you publish this announcement.

Starting with Neuron 2.34, the ``neuronx-cc`` package no longer includes the deprecated
``neuronxcc.nki`` namespace. Code that imports ``neuronxcc.nki``, ``neuronxcc.nki.language``,
``neuronxcc.nki.isa``, or another module under ``neuronxcc.nki`` fails with an import error.

Neuron 2.27 introduced the standalone ``nki`` package and announced the end of support for
``neuronxcc.nki`` (:ref:`announcement-end-of-support-neuronxcc-nki`). The removal was
postponed in later releases, and both namespaces continued to work. In Neuron 2.28 and later,
the use of ``neuronxcc.nki`` inside an NKI kernel causes a compilation error. Neuron 2.34
removes the namespace from the package.

What you must do
^^^^^^^^^^^^^^^^

Replace the ``neuronxcc.nki`` imports in your code with imports from the standalone ``nki``
package:

.. list-table::
   :header-rows: 1
   :widths: 50 50

   * - Remove
     - Use instead
   * - ``import neuronxcc.nki as nki``
     - ``import nki``
   * - ``import neuronxcc.nki.language as nl``
     - ``import nki.language as nl``
   * - ``import neuronxcc.nki.isa as nisa``
     - ``import nki.isa as nisa``

The ``nki`` package changes some NKI APIs and language constructs. Kernels written for
``neuronxcc.nki`` need more changes than the imports. For the complete procedure, see
:ref:`the NKI Kernel Migration Guide <nki-migration-guide>`.

Who is affected
^^^^^^^^^^^^^^^

You are affected if your code, tests, or scripts import any module under ``neuronxcc.nki``.
Kernels that already use the ``nki`` package are not affected.
