nemo_curator.backends.slurm_array
nemo_curator.backends.slurm_array
Module Contents
Classes
Functions
Data
SLURM_ARRAY_COMPLETION_DIRNAME
SLURM_ARRAY_COMPLETION_MANIFEST_NAMESPACE
SLURM_ARRAY_MINIMUM_SHARD_INDEX_ENV_VAR
SLURM_ARRAY_RUN_CONFIG_FILENAME
SLURM_ARRAY_SHARD_INDEX_ENV_VAR
SLURM_ARRAY_TOTAL_SHARDS_ENV_VAR
API
Source-task sharding settings for one Slurm array task.
Build config from Curator or Slurm env vars unless explicitly disabled.
Outstanding shard IDs and the original logical shard configuration.
Physical Slurm array indices and their logical shard offset.
Read an integer env var, with optional fallback/default.
Create durable completion tracking for one Slurm array shard.
Map missing logical shards to one or more physical Slurm arrays.
Set env vars consumed by source-stage filtering.
Keep only source tasks assigned to the active Slurm array shard.
Return expected shard IDs that have no completion manifest.
Format shard indices as a compact Slurm --array expression.
Return True for the process that owns retry metadata.
The head node has SLURM_NODEID == 0; the variable is absent on
local / single-node runs, which are also treated as head.
Resolve filtering config for source stages.
Assign a task to a shard by hashing its deterministic task ID.