This document is relevant for: Inf2, Trn1, Trn2, Trn3

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#

About neuronx-cc

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

CLI reference guide

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

How-to guides#

How to generate a NEFF file

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#

FAQ

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

This document is relevant for: Inf2, Trn1, Trn2, Trn3