NIMBuild
API Group:apps.nvidia.comAPI Version:
v1alpha1Kind:
NIMBuild
The NIMBuild resource builds optimized TensorRT-LLM engines from cached model weights. It creates a Kubernetes Job that processes model weights from a NIMCache resource and produces optimized inference engines.
Spec fields
Reference to the NIMCache resource containing model weights
Name for the built engine model. Defaults to the NIMBuild resource name if not specified.
Container image configuration for the build job
Resource requirements for the build job
Tolerations for scheduling the build job on tainted nodes
Node selector labels to target specific nodes for the build job
Additional environment variables for the build container
Additional labels to apply to the build job
Additional annotations to apply to the build job
Status fields
Current state of the build processPossible values:
Pending- Waiting for NIMCache or resourcesStarted- Build job createdInProgress- Build in progressReady- Build completed successfullyFailed- Build failedNotReady- Build not yet ready
Profile information from the source NIMCache
Profile information for the built engine (same structure as inputProfile)
Detailed condition information about the build process
Validation rules
The spec is immutable - once a NIMBuild is created, the spec cannot be modified. To change the build configuration, delete the NIMBuild and create a new one.
Condition types
The NIMBuild status may include the following condition types:NIM_BUILD_WAIT_FOR_NIM_CACHE_READY- Waiting for NIMCache to be readyNIM_BUILD_RECONCILE_FAILED- Error during reconciliationNIM_BUILD_MULTIPLE_BUILDABLE_PROFILES_FOUND- Multiple buildable profiles found, must specify profileNIM_BUILD_SINGLE_BUILDABLE_PROFILE_FOUND- Single buildable profile foundNIM_BUILD_NO_BUILDABLE_PROFILE_FOUND- No buildable profiles in NIMCacheNIM_BUILD_ENGINE_BUILD_POD_CREATED- Build pod createdNIM_BUILD_ENGINE_BUILD_POD_COMPLETED- Build pod completed successfullyNIM_BUILD_ENGINE_BUILD_POD_PENDING- Build pod pendingNIM_BUILD_MODEL_MANIFEST_POD_COMPLETED- Model manifest pod completedNIM_BUILD_NIM_CACHE_NOT_FOUND- Referenced NIMCache not foundNIM_BUILD_NIM_CACHE_FAILED- Referenced NIMCache is in failed state
Example
Example status
Related resources
- NIMCache API Reference - Model caching resource
- NIMService API Reference - NIM service deployment
- NIMBuild Guide - Usage guide and examples