.. meta::
   :description: Neuron Compiler (neuronx-cc) documentation for Trn2, Trn3, Trn1, and Inf2. Overview, CLI reference, how-tos, and FAQ.
   :keywords: neuronx-cc, Neuron Compiler, NEFF, CLI reference, Trn2, Trn3, AWS Neuron
   :date-modified: 2026-11-16

.. _neuronx-cc-index:

============================
Neuron Compiler (neuronx-cc)
============================

The Neuron Compiler (``neuronx-cc``) is the Neuron Graph Compiler for NeuronCore-v2
through NeuronCore-v4: Trn2, Trn3, Trn1, Trn1n, and Inf2. Use these pages to learn what it
does, look up its command line, and do common compilation tasks.

Get started
-----------

.. grid:: 1 1 2 2
   :gutter: 3

   .. grid-item-card:: About neuronx-cc
      :link: /compiler/about-neuronx-cc
      :link-type: doc

      What the Neuron Graph Compiler is, how it fits into the Neuron workflow, and
      the files and features that make it up.

   .. grid-item-card:: CLI reference guide
      :link: /compiler/neuronx-cc/api-reference-guide/index
      :link-type: doc

      The complete ``neuronx-cc`` command line: the ``compile`` and
      ``list-operators`` commands, every option, and their valid values.

How-to guides
-------------

.. grid:: 1 1 2 2
   :gutter: 3

   .. grid-item-card:: How to generate a NEFF file
      :link: /compiler/neuronx-cc/how-to-generate-neff
      :link-type: doc

      Compile an XLA HLO graph into a NEFF file with ``neuronx-cc``, the artifact the
      Neuron Runtime loads to run your model.

Guides and reference
--------------------

.. grid:: 1 1 2 2
   :gutter: 3

   .. grid-item-card:: FAQ
      :link: /compiler/neuronx-cc/faq
      :link-type: doc

      Common questions about compiling to NEFF, supported operators, precision, and
      recompilation.

.. toctree::
    :maxdepth: 1
    :hidden:

    API Reference Guide </compiler/neuronx-cc/api-reference-guide/index>
    How-to: Generate a NEFF file </compiler/neuronx-cc/how-to-generate-neff>
    FAQ </compiler/neuronx-cc/faq>
