.. _error-code-evrf007:

.. meta::
   :description: AWS Neuron SDK Graph Compiler error code documentation for error EVRF007. The compiler generated more instructions than the limit for one graph.
   :keywords: neuronx-cc, EVRF007, NCC_EVRF007, instruction limit, graph size, model parallelism, pipeline parallelism, tensor parallelism, TorchNeuron, TorchTitan Neuron, vLLM Neuron, NKI
   :date-modified: 2026-11-16

NCC_EVRF007
===========

**Error message**: The number of instructions generated exceeds the limit.

The graph is too large for the compiler to compile as one unit. To fix this issue, make the
graph that each NeuronCore compiles smaller:

1. **Partition the model.** With TorchNeuron, shard the model with tensor parallelism
   (DTensor) or pipeline parallelism on the ``neuron`` backend. Each rank then compiles a
   smaller graph. See :ref:`torchneuron-torch-distributed-guide` and
   :ref:`torchneuron-distributed-pipeline`.
2. **Use a framework that partitions for you.** For training at scale, use
   :ref:`TorchTitan Neuron <torchtitan-neuron-landing>`. For inference, use the tensor
   parallelism of :ref:`vLLM Neuron <vllm-neuron-home>`.
3. **Fuse operations into a kernel.** Replace a large group of operations with an NKI
   kernel. See :ref:`NKI <neuron-nki>`.

For more information:

- :ref:`torchneuron-torch-distributed-guide`
- :ref:`TorchTitan Neuron <torchtitan-neuron-landing>`
- :doc:`vLLM Neuron tensor parallelism </vllm-neuron/docs/design/parallelism/tensor_parallelism>`
- :ref:`Neuron Compiler CLI reference <neuron-compiler-cli-reference-guide>`
