Skip to main content
Version: 1.0.0

Model Compilations

Convert models registered in the Model Registry into NPU-specific binaries automatically. When conversion completes, the resulting artifact is auto-registered in the Model Registry and can be deployed immediately.


Prerequisites

  • A model and a version must already be registered in the NuFi Model Registry.
  • The target artifact must be an original artifact whose platform is unset (treated as a GPU source) or gpu (format e.g., safetensors).
  • The cluster must have sufficient CPU and memory resources.

How to Start NPU Compile

NPU compilation starts from the model version detail page.

  1. In the left sidebar, click Models to go to the model list page.
  2. Go to the model version detail page you want to compile.
  3. From the version detail page, you can start a compilation in two ways:
    • Click the Compile button in the Compilations tab
    • Click the cpu icon on the right of an original artifact row (platform empty or gpu) in the Artifacts tab

To generate multiple compile option candidates automatically and choose the best artifact with evaluation metrics, use Compile Option Optimizer.

NPU Compile List

In the Compilations tab of the version detail page, you can see the compilation history for that version.

NPU Compile list

Columns

ColumnDescription
PLATFORMTarget NPU platform
HASHHash of the compile options (identifies same-option runs)
CONFIGShows a View button for entries with saved compile options. Click it to open the Compile Settings dialog and review Max Seq Len, Tensor Parallel, Pipeline Parallel, Prefill Buckets, Decode Buckets, and Tokenwise Seq Lens.
PHASECurrent pipeline state
CREATEDCreation time

Status

PhaseDescriptionRecovery
PendingThe pipeline is waiting to be scheduledCheck that the cluster has sufficient resources.
RunningThe compilation step is in progress
SucceededCompile and verification steps complete. Model Registry registration proceeds automatically (transitions to Registered when done).
FailedOne or more steps failedCheck the failing step's logs on the detail page and re-run using the retry button.
RegisteredThe compilation result has been registered in the Model Registry

Action Icons

The icons on the right of each row, from left to right:

IconActionDescription
rotate-ccwRe-compileOpens the creation dialog pre-filled with this pipeline's compile options. The existing run is preserved in history. Disabled while the run is Pending/Running or when the entry has no saved compile options.
trashDeleteDeletes this compilation history entry. Click Delete in the confirmation dialog to permanently delete the pipeline and history entry.

Create a Pipeline

Click the Compile button to open the creation dialog.

NPU Compile creation

Pinned Settings

The pinned settings area at the top of the dialog shows the compilation target information determined at entry time. The user cannot change these.

ItemDescription
ModelModel name from the version detail page where you entered
VersionThe version you entered
Base ArtifactThe artifact to convert. The original artifact for that version (e.g., original) is used.

Platform Selection

FieldDescription
Platform *Select the target NPU platform (e.g., RNGD)

Resource Settings

FieldDescription
CPU RequestNumber of CPU cores to allocate to the compile Job
Memory RequestMemory size to allocate to the compile Job

Compile Settings

FieldDescription
Max Context Length *Maximum token count allowed during serving. Longer values increase memory requirements. The RNGD platform currently supports up to 8192; entering a larger value blocks creation.
Tensor ParallelNumber of PEs to parallelize the tensor across. Choose 4 or 8 (1 RNGD card = 8 PEs).
Pipeline ParallelNumber of pipeline parallel stages. Distributes model layers across multiple NPUs.
Prefill BucketsBucket list for the Prefill stage. Use the + Add bucket button to add rows and enter a batch (batch size) / seq_len (sequence length) pair per row. If left empty, buckets appropriate for Max Context Length are set automatically. Example: batch 1 / seq_len 512
Decode BucketsBucket list for the Decode stage. Add rows with + Add bucket and enter a batch (batch size) and seq_len (context length) pair for each row. Set automatically if left empty. Example: batch 1 / seq_len 1024
Tokenwise Seq LensList of memory-space window sizes used during token generation. Directly affects compile time. Typically include powers of 2 from 128 up to Max Context Length. Example: 128,256,512,1024,2048,4096
Additional ArgsAdditional arguments to pass directly to the compiler. RNGD does not currently support additional arguments.
Environment VariablesEnvironment variables to inject into the compile Job container. Enter as KEY=VALUE, one per line, or drag and upload a .env file.
How to choose compile settings
  • Tensor Parallel / Pipeline Parallel: Set these to match the number of NPU devices you have. If you use a single NPU, set Tensor Parallel to 8 and Pipeline Parallel to 1. RNGD has 8 PEs per NPU.
  • Prefill / Decode Buckets: Set these based on the expected input length distribution of your actual service. More buckets mean longer compile time and larger binary size.

When you click the Create button, the pipeline starts.


Pipeline Detail

Click a pipeline row in the list to navigate to the detail page.

The top area shows summary information for the compile run.

ItemDescription
ModelModel used for the compile run
VersionTarget model version
PlatformTarget NPU platform
ResourcesCPU and memory requested for the compile Job
CreatedPipeline creation time

If the artifact was registered successfully, a link to the produced artifact appears below the summary information.

NPU Compile detail — Steps

The detail page shows step-level status in the Steps section.

StepDescription
CompileConvert the model into the NPU-specific binary.
Artifact file verificationOnly verifies that the artifact files produced by the Compile step exist at the expected paths. Does not load onto the actual device or perform inference.

Each step card shows the following information.

ItemDescription
STARTStep execution start timestamp
ENDStep execution end timestamp
DURATIONTime the step took to execute
MESSAGEStep message or error output. Shown only when present.
OUTPUT FILESList of output files produced by the step. Shown only for steps with output files.
LogsButton for detailed logs. Shown only when a log URL can be built.

The step status is shown as a badge next to the step name (Waiting / Pending / Running / Succeeded / Failed). Waiting means the step is waiting for the previous step to complete.

Per-step retry: When the pipeline is in a Failed state overall, the Retry button on each failed step card can re-run that step independently. For example, if only the Artifact file verification step failed, you can retry only the verification step without re-running the Compile step.

Auto registration after compile completes

When both the Compile and verification steps reach the Succeeded state, the compiled NPU artifact is automatically added to the original version in the Model Registry. After that, you can run Quick Deploy with that artifact.


Check Compile Settings

Below the top summary information on the detail page, click the Compile Settings accordion to expand it and review all of the compile options used when the pipeline was created (collapsed by default).

NPU Compile detail — Compile Settings card

FieldDescription
Max Seq LenMaximum context token count set at compile time
Tensor ParallelNumber of PEs for tensor parallelism
Pipeline ParallelNumber of pipeline parallel stages
Prefill BucketsSequence-length bucket list for the Prefill stage
Decode BucketsBatch-size / context-length bucket list for the Decode stage
Tokenwise Seq LensList of memory-space window sizes for token generation. Shown only when present.