Physical AI Data Factory (NPA-native, no OSMO)
Source And Attribution
NPA translates NVIDIA's Physical AI Data Factory workflows into native SkyPilot
graphs. The official ecosystem entry point is
https://github.com/NVIDIA/physical-ai-data-factory: it publishes VDA and DIG
agent workflows and links the PAIDF component repositories. The separate
https://github.com/NVIDIA/paidf-orchestration repository is an Apache-2.0
Airflow-on-Kubernetes scaler that publishes the Image Attribute Augmentation and
Event Video Generation DAGs translated here. NPA runtime-fetches their pinned
component/configuration contracts and executes the graphs through SkyPilot;
it does not execute the Airflow controller. Exact revisions and license boundaries
are recorded in skills/NOTICE-NVIDIA-PAIDF.
Earlier design analysis was adapted from https://github.com/NVIDIA/skills,
primarily physical-ai-video-data-augmentation. Copyright (c) 2025-2026 NVIDIA
CORPORATION & AFFILIATES. Upstream licenses: Apache-2.0 and CC-BY-4.0. See
skills/NOTICE-NVIDIA-SKILLS. NPA orchestrates on SkyPilot (not OSMO or Airflow)
and composes existing workbench tools. The separately named direct translations
write an immutable reports/upstream.json source/execution-boundary artifact
before data processing; the two established workflows retained from main are
not textually or behaviorally changed to add that contract.
Workflow Inventory
IAA and EVG's canonical specs and dedicated guides are in
workflows/cosmos-data-factory/. For these two workflows, load shared setup and
the matching NVIDIA-adapted skill from skills/cosmos-data-factory/; their
runbook records which upstream YAMLs require orchestration conversion and which
component configs are reused. The established VDA/DIG paths remain separate.
| YAML | Official source | Classification | Execution |
| --- | --- | --- | --- |
| physical-ai-data-factory.yaml | established NPA VDA blueprint | unchanged NPA-native reference | SkyPilot + Transfer 2.5/Token Factory/Curator/FiftyOne |
| nvidia-paidf-vda-cosmos-transfer25.yaml | physical-ai-data-factory VDA | separately named direct semantic translation | SkyPilot + Transfer 2.5/Token Factory/Curator/FiftyOne |
| paidf-defect-image-generation.yaml | physical-ai-data-factory DIG Day-1 manual-ROI | direct scoped translation | SkyPilot + restricted operator-built AnomalyGen compatibility image |
| paidf-image-attribute-augmentation.yaml | paidf-orchestration IAA DAG | direct translation | SkyPilot + operator-built Qwen Edit wrapper + PAIDF protocols |
| paidf-event-video-generation.yaml | paidf-orchestration EVG DAG | direct translation | SkyPilot + operator-built Cosmos3 Super wrapper + PAIDF protocols |
| paidf-cosmos3.yaml | no corresponding Airflow IAA/EVG DAG | NPA-specific VDA alternative | SkyPilot + NPA Cosmos3/Curator/FiftyOne |
The exact source/component revisions and licenses live in
skills/NOTICE-NVIDIA-PAIDF. The separately named direct translations carry
them in each run's reports/upstream.json. Do not call paidf-cosmos3.yaml an
IAA or EVG translation.
For native acceptance, supply exact scanned private digests through DIG's
anomalygen_image and IAA/EVG's generation_image config values. Their shipped
placeholders deliberately cannot run. The live matrix uses
NPA_E2E_PAIDF_ANOMALYGEN_IMAGE, NPA_E2E_PAIDF_IAA_IMAGE, and
NPA_E2E_PAIDF_EVG_IMAGE. The upstream generation images fail SkyPilot bootstrap;
use the corresponding checked-in compatibility recipe and prove its built
bytes, pullability, and full workload before claiming support.
IAA additionally requires attribute_search_image; EVG requires that image plus
detection_image, captioning_image, and visual_qa_image. These are restricted
operator-built wrappers over the exact NGC service parents. The live matrix
requires NPA_E2E_PAIDF_ATTRIBUTE_SEARCH_IMAGE, and for EVG also
NPA_E2E_PAIDF_DETECTION_IMAGE, NPA_E2E_PAIDF_CAPTIONING_IMAGE, and
NPA_E2E_PAIDF_VISUAL_QA_IMAGE. Every value must be an exact scanned digest.
Supply the operator registry's pull secret through the resource configuration;
an NGC pull secret authorizes the parent fetch during the operator's build.
The original main entrypoints consume CLI arguments instead of forwarding
SkyPilot's shell. The compatibility entrypoints preserve arbitrary argv and
leave the genuine /app/.venv/bin/main service CLI available to NPA.
The IAA and EVG service model snapshots are also immutable workflow config:
Qwen Image Edit 6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 and Cosmos3 Super
Image2Video 4f847566f3d3388fbf0ac07b99dd1a6432db9ecd, respectively.
EVG also requires gated Cosmos-1.0-Guardrail at
cf03c0395fac8c4de386c0bdab12cc4fc8d66362 and Qwen3Guard-Gen-0.6B at
fada3b2f655b89601929198343c94cd2f64d93cc. Its service stages exact model
snapshots into an isolated cache and consumes them offline. The NLTK subtree is
materialized as verified regular files so NLTK 3.10.3 can keep its symlink
protection enabled; do not disable pathsec or Cosmos guardrails to work around
Hugging Face snapshot links. The augmentation report's generation_runtime
record carries the exact model and NLTK content evidence.
NPA explicitly changes the upstream EVG template's request guardrails from false
to true. A hash-bound private code overlay makes real Qwen guardrail inference
fail closed on errors or missing, malformed, or duplicate safety verdicts.
Published Safe and Controversial remain allowed and Unsafe remains rejected.
The installed vendor package is unchanged; the runtime report records the source
adaptation. Every executed request must retain explicit enabled guardrails.
The accepted EVG vLLM-Omni/Transformers 5.13 pair also requires the exact-source
tokenizer overlay: explicitly select the pinned model's Qwen2 tokenizer without
changing its prompt or token IDs. Require tokenizer_source_adaptation in every
generation-runtime handoff. Keep HF credentials in staging only; the verified
offline EVG and DIG vendor children must not inherit token aliases or token paths.
DIG uses a separate exact-source adaptation of the OpenMDW-1.1
cosmos-framework Qwen guardrail, preserving real inference and the published
Controversial allow policy while raising on inference errors or invalid
verdicts. The private overlay retains installed package bytes. Require its
guardrail_runtime source hashes, verified vendor-interpreter import, and
completed upstream timing-summary hash before accepting generated images.
Text screening must be enforcing; the upstream image preset performs face
blurring with no content classifier and truthfully records image enforcement
as false. Keep the existing regular-file checkpoint handoff and NLTK behavior.
The accepted operator-private AnomalyGen child is
sha256:5aff3f4b40a4340ece2594c567ce8e5683a82ddc295c39d80588e228a13a28cf,
built from NPA source 743d87df3a19fc0571d95c1d98b2bc53a2b438e9 and pinned
Apache-2.0 upstream revision dbaf7d7d9003f048230f9026da5969e9e5931785.
Its generic exact-layer/rootfs inventory, nonempty vulnerability inventory,
fixed-CRITICAL policy, SPDX SBOM, bootstrap, offline CPU/runtime checks, and real
B200 CUDA plus four native attention cases passed. Training exercised default
NATTEN blackwell-fmha with Q/K/V gradients; inference exercised default cuDNN.
The diagnostic loaded no model weights and ran no full model forward. Treat it
as image/component evidence separate from the full-workload result. The same
exact child completed native DIG run paidf-dig-15395d41fe18 on B200. Resume
retained attempt 1's valid record-upstream state; attempt 8 completed
preparation, all 15,000 training iterations with early stopping disabled, and
inference. The evaluator selected checkpoint 13,000, and all 30 requests were
accounted as 24 generated images plus six enforcing text-guardrail blocks. The
upstream preset applies face blurring but no image-content classifier, so image
enforcement remains false. The resolved dependency closure remains restricted;
private access and acceptance do not grant redistribution rights.
The PAIDF compatibility inventory is exactly seven restricted images: DIG
selects AnomalyGen; IAA selects image-edit and attribute-search; EVG selects
event-video, detection, captioning, visual-qa, and the same attribute-search
image. Six IAA/EVG recordings are verified. Do not claim the seventh until the
DIG RRD hash/size, CLI+SDK reopening, durable readback, and protected artifact
API run ID have all been independently verified. The completed evidence set
satisfies those gates; its content-addressed DIG filename is
npa-paidf-anomalygen-sky-fb099f7b670fede587398c1d5374db7cb6a231bad0fc839432c9da49b6870074.rrd.
The earlier immutable DIG pair is retained but superseded because its
normalized upstream repository attribution did not exactly match the pinned
source.
For the three native translations, use the generic workflow validate/plan/submit
surface. Run health access for paidf-dig, paidf-iaa, paidf-evg, and the
selected paidf-label-* capabilities before image preflight or GPU work. The
toolRefs are deliberately stage-specific so IAA does not inherit EVG's NGC
images and none of the three inherits the legacy Transfer checkpoint closure.
Never treat a credential as EULA acceptance.
IAA/EVG generation keeps the vLLM-Omni service and real paidf-augmentation
consumer in one SkyPilot state. Preparation produces actual RGB JPEG and retains
source and prepared hashes. The exact runtime-fetched augmentation client gets
a hash-bound writer correction so PNG model responses become real JPEG before
the upstream verifier reuses a .jpg output; video bytes are unchanged. Require
the exact source_adaptation record through output and terminal lineage checks.
Previously completed PNG preparation must use a fresh run identity rather than
altering successful artifacts or silently reusing them with this contract.
Component subprocesses preserve three retries
and the upstream 30-second retry delay. Require each published auto-label
sidecar after its service stage; assemble only accepted media; then run the
separate validate-final-outputs state, which re-opens all terminal handoffs and
writes reports/terminal-validation.json. A trackless EVG scene may omit only
the track-dependent PAS artifacts. The optional upstream Airflow REST-derived
HTML timing dashboard has no Airflow-free equivalent; use NPA/SkyPilot stage
timings plus the terminal JSON counts and manifest digest, and state that
orchestration-reporting substitution explicitly.
EVG captioning and anomaly Visual QA need a visible scheduled GPU for the
upstream H.264 CUVID decoder even when their VLM is hosted. Their profiles
reserve one B200 each. Per-person Visual QA reads JPEG crops and shares the VQA
profile; person attribute search stays on CPU. Preserve the pinned codec policy.
The selected Token Factory VLM accepts at most ten images per request. EVG
anomaly Visual QA therefore uses the published --max-frames 10 control
(upstream DAG: 16), and person Visual QA uses --max-crops-per-track 10
(upstream DAG: 12). Keep the vendor's even subsampling, including the first and
last candidates; these are candidate-sequence endpoints, not necessarily the
first and last video frames. Prompts, models, resolution, sampling rate and
retries remain unchanged. Require the exact request_media_contract in both
VQA reports and every downstream producer/terminal check. This is a supported
CLI configuration adaptation; it requires no image rebuild or vendor patch.
Report VQA question coverage separately from protocol acceptance. In the
completed native EVG workload, anomaly QA returned 21 valid answers from 21
questions; person QA returned 29 valid answers from 33 questions. The upstream
normalizer skipped two empty answers with warnings, and the model omitted two
headwear-detail answers. Preserve those warnings and optional PAS fields; do not
describe successful terminal validation as complete person-attribute coverage.
The Workbench guide
records the accepted media, durable-resume source boundary and visual limitations.
Three NVIDIA components in the pipeline are the real open-source projects, not
NPA look-alikes: Cosmos Transfer 2.5 augments, Cosmos Evaluator
(https://github.com/nvidia-cosmos/cosmos-evaluator, Apache-2.0) grades, and
Cosmos Curator (https://github.com/nvidia-cosmos/cosmos-curate, Apache-2.0)
curates. See skills/NOTICE-NVIDIA-COSMOS-OSS for exactly which upstream code
runs and where NPA substitutes its own endpoint.
When To Use
Load this skill to author, validate, submit, run, or inspect any of the six
PAIDF-related YAMLs in the inventory: VDA, scoped DIG, IAA, EVG, or the NPA
Cosmos3 VDA alternative. It also covers dataset adaptation, GPU/runtime access,
generated media and label validation, provenance, and viewer troubleshooting.
Do NOT invent an npa workbench data-factory tool — there is none. The blueprint
is pure composition of existing toolRefs; only add real tools with tests.
What It Is
The independent paidf-cosmos3.yaml variant is documented at
docs/workbench/guides/paidf-cosmos3.md. It uses real source-video-conditioned
Cosmos 3 video2video generation and does not replace or silently change this
skill's Cosmos Transfer 2.5 blueprint.
For twelve accepted starter variants, apply every key of
docs/workbench/examples/paidf-cosmos3-starter-12.yaml as a --var override and
follow docs/workbench/guides/paidf-cosmos3.md#twelve-accepted-starter-variants.
That opt-in recipe passes only the exploratory gate; its temporal and appearance
fidelity checks remain advisory and failed for every clip in the measured run.
For twelve Cosmos3 candidates with shipped settings, use only the
variant_count=12 override and follow
docs/workbench/guides/paidf-cosmos3.md#twelve-variants-with-the-current-defaults;
that count-only path has been rejected by its quality gate.
Keep the two-variant default and one-GPU sequential generation unchanged.
The separate twelve-profile appearance recipe changes sampling and quality
settings. Preserve actual evaluator decisions: refinement or rejection is a
valid outcome; twelve generated candidates do not imply twelve accepted clips.
Use the guide's read-only live audit after successful finalization.
For realistic manipulation augmentation, use
docs/workbench/guides/paidf-realistic-augmentation.md.
For pinned cup, coffee and cube-lift source selections and matched experiments,
use docs/workbench/guides/paidf-lerobot-realism.md. Preserve the baseline's
captions and appearance manifest when changing a sampling parameter, and review
transparent objects, small contacts and generated padding separately.
New Cosmos 3 preparation records source_content_region in input provenance
and variant metadata. Source analysis also detects persistent paired black edge
bands across every frame, including embedded source bars; ambiguous boundaries
remain in the scene. Publication restores only known or detected padding from
the source and verifies exact generated-scene pixel preservation after lossless
encoding. Keep raw_model_video.mp4 and the padding_preservation receipt.
Evaluation validates the reference hash, keeps full-frame alignment checks, and
excludes verified padding from all four scene checks. spatial_evidence.padding
is a separate advisory diagnostic. Legacy outputs without region provenance keep
full-frame scoring; malformed or stale provenance fails closed. Interior dark
objects must remain in the scene. No additional recipe setting is needed. See docs/workbench/guides/paidf-appearance-12.md for details.
transfer_cfg_normalization accepts disabled (default) or enabled with
edge transfer and forwards native normalize_cfg sampling. Compare matched
sources, captions, profiles and seeds; inspect the receipt's effective boolean
and the actual generated task details. Do not infer training suitability from
the option or a more pleasing contrast level. Cosmos3 accepts
config.appearance_profiles_json (empty by default) to replace the starter
profiles with coherent task/camera-specific edits. Each profile must contain
exactly lighting, background, color_grade and surface_finish; validation
runs before planning and sampling. The config manifest records custom profiles
and supplies their values to evaluator questions. Profile cycles repeat when
variant count exceeds profile count; do not report that as appearance diversity.
Custom profiles and a quality anchor are mutually exclusive. Cosmos3 source
captioning uses caption_instruction with augment_subject as context, while
requiring uncertainty about unclear features; inspect the real captions before
tuning this instruction. Other caption workflows retain the existing instruction
when they omit the optional key. Source and generated-video caption extraction
samples evenly spaced decoded frame indices, including the first and last frame;
clips with fewer frames than requested do not repeat samples. Generation uses
source observations spanning the complete episode and separates observations
from edit instructions. Keep task identity, small contact features, geometry,
camera motion and timing explicit. The battery sampling example is unqualified
until actual GPU outputs pass temporal/contact review; do not promote its
settings to universal defaults or describe input-only checks as augmentation
validation. Retain rejected attempts and validate other episodes/cameras before
claiming generality.
Cosmos3 transfer_edge_threshold selects native Canny thresholds independently
of control guidance; medium preserves the existing behavior. Inspect actual
source controls when dark gripper or small-object detail is missing. The lower
presets preserve weaker edges but can retain noise. Validate presets before
planning, retain native loader hashes and preset evidence, and qualify actual
GPU outputs before recommending a setting. Neither the reviewed high-control
battery candidate nor the standard-control warm/cool pair preserved acceptable
gripper detail; keep those rejected trials in the guide's validation record.
With edge transfer, transfer_rgb_weight can add native source RGB conditioning
using the framework's blur hint and none preset. Zero disables it; positive
weights are relative to edge weight 1. Validate before model work, retain the
lossless-control and native-loader hashes, and distinguish this model input
from output-pixel blending. Check both task preservation and visible appearance
change: more source conditioning can suppress the requested edit.
transfer_first_chunk_conditional_frames independently controls the original RGB
frame anchoring the first native window. The compatibility default is 1; 0
releases that appearance anchor while retaining full-source edges and five
generated overlap frames in later windows. Zero RGB hint weight does not disable
this first-frame anchor. Compare 0 and 1 on matched inputs and inspect both edit
strength and foreground identity; retain the actual conditioning counts in the
native transfer receipt. This setting requires edge transfer when changed to 0.
For tuning and fan-out, follow the guide's “Tune visible changes before fan-out”
and “Fan out a reviewed recipe” sections. Keep task-specific values in run
configuration. Distinguish profile diversity, variant count, generation seeds,
per-job GPU concurrency and episode/camera coverage. More seeds do not add new
appearance profiles. Verify actual source-to-output changes separately: the
existing output attribute check does not enforce minimum augmentation strength.
Keep per-run storage/API/config isolation and report the actual concurrency;
single-GPU evidence does not qualify multi-GPU fan-out.
For a complete opt-in twelve-profile configuration, use
docs/workbench/examples/paidf-appearance-12.yaml and its guide at
docs/workbench/guides/paidf-appearance-12.md. Apply its config overlay to the
canonical workflow or pass the values through existing --var arguments.
Submit with --max-wait-seconds 0: the CLI's default one-hour per-wave deadline
can cancel a healthy twelve-variant generation stage.
The recipe is scoped to visible stationary work surfaces and emits separate
MP4s; keep task-specific adaptations and private proof media outside Git.
For operator setup, verify command -v nebius and nebius version after selecting
PATH and after any environment activation. Health preflight proves profile
authentication, while configure also enforces NPA's supported CLI version.
NPA_NEBIUS_BIN alone does not select the executable for those two commands.
workflows/testing/physical-ai-data-factory.yaml — one
npa.workflow/v0.0.1 spec. The separately named direct VDA translation is
workflows/testing/nvidia-paidf-vda-cosmos-transfer25.yaml. Its blueprint → NPA
stage mapping is:
| NVIDIA stage | NPA state | Tool (all REAL — no stubs) | Runtime |
| --- | --- | --- | --- |
| Source boundary | record-upstream | paidf_upstream.write_upstream_contract | CPU |
| Config Generation | generate-configs | data_factory_stages.generate_configs (run.shell) | CPU |
| Understand & Annotate | annotate-original | workbench.token_factory.caption | Token Factory (zero-GPU) |
| Augment & Multiply | augment | workbench.cosmos2.transfer_execute (real Cosmos Transfer 2.5 --execute; uploads video+frames to S3) | GPU |
| Evaluate & Validate | grade loop (evaluate + quality-gate) | workbench.cosmos_evaluator.evaluate (real Cosmos Evaluator: hallucination + attribute verification) + data_factory_stages.grade_gate | Token Factory + CPU |
| Pseudo-Label Augmented | annotate-augmented | npa workbench token-factory caption (run.shell) | Token Factory |
| Curation | cosmos-curate | workbench.cosmos_curate.curate (real Cosmos Curator stages → clips/ + metas/v0/) | CPU |
| Curation review | curate | workbench.fiftyone.curate_augmented (real FiftyOne Brain, fail closed, merges the curator report) | CPU |
| Visualize | visualize (accepted) / visualize-rejected (rejected evidence) | workbench.nurec.visualize → data_factory_viz.build_run_rrd → reports/sim2real.rrd | CPU, prebuilt npa-rerun-viewer image |
| Finalize | finalize | data_factory_stages.finalize (real aggregate report) | CPU |
Every stage invokes a real component (enforced by test_real_components.py and
the real-components skill). The augment stage runs the real Cosmos Transfer
2.5 model on GPU via --execute and publishes the generated video + extracted
frames to augment_uri, which the grade / re-label / curate / visualize stages
consume.
Config → augment MULTIPLY. generate-configs samples N appearance combos
(from config.n_augmentations); the augment toolRef passes --configs-uri, and
the augment stage runs one real Cosmos Transfer 2.5 inference per sampled combo
— each combo's prompt drives a distinct appearance, and each is published as its
own per-clip dir under cosmos_augmented/<clip>/ with its own metadata.json
variables (which drives that clip's Rerun label). So an N-augmentation config
yields N scenario variants, not one image. The fan-out is surfaced in the
machine-readable artifacts: variant_count / multiply_mode / variant_parallelism
in the augment run-level manifest.json, multiply (mode + variant_count) in the
curation report, and multiply_mode / variant_count in the finalize report. (A
config with a single combo still emits one variant — multiply_mode: single-variant.)
Multi-GPU fan-out (use ≥4 GPUs). The multiply loop fans the N GPU-bound
diffusions across the augment pod's GPUs, one variant per GPU (pinned via
CUDA_VISIBLE_DEVICES), then publishes sequentially in combo order. Concurrency =
NPA_COSMOS_VARIANT_PARALLELISM if set, else the auto-detected visible-GPU count,
capped at the variant count (so it is safe on 1 GPU and never pins a variant to a
GPU the pod lacks). Request the GPUs in the spec: `resources.gpu.accelerators:
RTXPRO6000:4` runs 4 variants at once (~one variant's wall-clock instead of 4×).
When multiple model processes need more host RAM than the profile default, set
NPA_WORKFLOW_GPU_MEMORY=<N>Gi alongside the accelerator override; it changes
only accelerator-backed profiles, never the CPU stages. Failed variants publish
typed, non-promoting records below the scheduler-attempt prefix while successful
siblings continue into the run manifest. The manifest reports attempted,
successful, and failed counts; an all-failed wave preserves those records but
never publishes an empty candidate batch.
Verified live: a 4-variant run on RTXPRO6000:4 drove all 4 GPUs to 100%
(4 distinct compute PIDs) and finished in ~14 min end-to-end; the manifest recorded
variant_parallelism: 4.
Multi-node fan-out (--var augment_nodes=N). GPUs-per-pod is the first axis;
nodes are the second, and only the augment stage uses it. resources.gpu declares
num_nodes: "{{config.augment_nodes}}" (default 1), so submit chooses the block
size without editing the blueprint — concurrent renders = augment_nodes × GPUs per
node. Validation requires augment_nodes <= n_augmentations, so surplus GPU workers
fail before provisioning. num_nodes accepts a {{config.*}} token on any profile,
resolved against the --var-merged config. Existing clusters also receive a read-only
submit-time snapshot check for enough distinct, Ready, schedulable, product-compatible
nodes after active pod GPU, CPU, memory, init-container, and pod-overhead requests
are subtracted. An active unbound GPU pod makes shared placement indeterminate and
fails this check; task-profile node selectors and required node affinity are applied.
The direct NVIDIA VDA spec keeps config.augment_cpus=16 for multi-GPU fan-out.
For a one-GPU run on an existing node, --var augment_cpus=12 is a supported
placement-only override when read-only capacity preflight shows that shared
controller/system reservations leave fewer than 16 CPUs free. Do not lower it for
multi-GPU fan-out without separately proving host-side model-loading headroom; the
override changes neither model settings nor evaluator thresholds.
SkyPilot runs the same augment command in every pod of the gang, so the stage
shards: node k of N renders variants k, k+N, … (striding keeps the nodes within
one variant of each other) with node-local GPU pins and publishes clips plus
manifest-rank-<k>.json under
cosmos_augmented/_attempts/<attempt-id>/. Rank 0 is the join: it waits for all N
current-attempt shards and conditionally commits the usual
cosmos_augmented/manifest.json in sampled
combo order, adding node_count and a per-rank shards block; a rank that never
reports fails the stage by name instead of publishing an understated fan-out. That
wait has no default deadline — a sibling's remaining work is however long its
diffusions take. It periodically reports elapsed time and missing/received ranks;
NPA_COSMOS_SHARD_JOIN_TIMEOUT_S opts into a visible deterministic deadline for a
live-but-hung sibling. The rank-0 identity rendezvous is also unbounded by default;
NPA_COSMOS_IDENTITY_TIMEOUT_S is its separate explicit opt-in bound. SkyPilot
0.12.2 intentionally preserves its task id across managed recovery and exposes no
globally ordered recovery epoch to the workload. The durable NPA runtime therefore
pre-issues an ordered wave-sequence/explicit-attempt fence. Rank 0 may claim only
that token and shares its fresh attempt id with the exact ordered gang. An inner
SkyPilot recovery retains the token and cannot supersede an existing same-token
claim; it may safely become the first claimant if the prior worker died before
claiming. A configured NPA retry gets a higher token after the prior job is terminal. Final publication is
compare-and-swap fenced by that claim, so a late old worker stays beneath its old
attempt prefix and an escaped old leader cannot replace the newer canonical claim.
Downstream consumers follow only the executed canonical manifest, never enumerate
_attempts/. With augment_nodes=1 no shard file is written, but the scheduler
claim, attempt-private clip prefix, and conditional canonical commit still fence a
late process from a prior loop or recovery.
Cosmos Transfer 2.5 itself also supports torchrun --nproc_per_node=N context
parallelism for one clip; NPA does not use it, because one-variant-per-GPU gives a
better throughput for a multiply fan-out. A single-variant run therefore does not go
faster on more GPUs.
Authoring from chat (agent). The NPA chat agent can WRITE this blueprint. Ask
it e.g. *"write me a paidf workflow: augment my robot clips and fan out 4 scenarios
on at least 4 RTX 6000 PRO GPUs"* — the deterministic router classifies
create_data_factory_workflow, agent_workflow.choose_workflow_template selects the
physical-ai-data-factory template, and extract_data_factory_params parses the
fan-out count → config.n_augmentations, the GPU count → resources.gpu.accelerators
config.variant_parallelism(capped to the GPU count), and the free-form
augmentation subject → config.augment_subject. The generated YAML is validated +
planned before it is returned (chat only emits runnable specs). generate_data_factory_yaml(user_text=...)
is the direct entry point; generate_workflow_draft(intent="create_data_factory_workflow", user_text=...)
is the chat path.
Chat authoring fails closed above 64 augmented variants or 8 GPUs. These are
generation ceilings, not workflow/job-count budgets: an operator can still edit
and validate a larger hand-authored spec after confirming real cluster capacity.
Input conditioning (real augmentation of the caller's input). The managed
workbench.cosmos2.transfer_execute path always conditions on the PAIDF run's
input. Its config.trigger_uri must contain captionable PNG/JPEG frames and may
also contain a supported video (.mp4, .mov, .webm, .mkv, or .avi). The
augment uses the first video when present; for a PAIDF frame-only prefix it
assembles those frames into a temporary 1280x720, 93-frame clip inside the GPU
runner. An empty, inaccessible, or image/video-free input fails closed before
inference. Bundled upstream media was removed for redistribution reasons and is
not a fallback. The runner builds a controlnet spec with video_path = that clip
and the selected config.augment_control signal, and the sampled
appearance prompt drives the new look — so the output preserves the input's
structure/motion with a new appearance. Generic direct CLI callers remain strict:
they opt in with --condition-on-input or --input-video <path|s3://> and must
supply a video. Conditioned runs record mode: cosmos_transfer2.5_gpu +
input_conditioned: true + conditioned_input in the augment metadata.json /
manifest.json, which the agent's provenance panel surfaces.
For nvidia-paidf-vda-cosmos-transfer25, require the task-scoped
source-fidelity-v3 input policy and source-fidelity-v3 prompt policy. The
input policy maps decoded frame timestamps across one 93-frame traversal (never
loops a short action), letterboxes rather than crops, performs an explicit SDR
conversion to limited-range BT.709, extracts endpoint-inclusive caption frames,
and records the full source-index/timestamp map. It rejects HDR/BT.2020 rather
than silently retagging it. The prompt policy confines palette/finish changes to
the replaceable horizontal work surface beneath the manipulation, makes
foreground color/geometry/contact/timing
invariants explicit, and passes Transfer's native negative_prompt for cyan
cast, clipping, warping, duplication, contact loss, repeated action, and flicker.
Verify both prompt fields in the candidate manifest; do not infer them from a
render label. Its RRD must open with source, conditioning control, and generated
videos together on video_time, and retain the exact probed codec, cadence,
frame-count, pixel-format, range, matrix, transfer, primaries, byte-size, and
SHA-256 evidence.
Segmentation conditioning and region masks (--var augment_control=seg).
edge (Canny), vis (bilateral blur), and seg (GroundingDINO-base + SAM2) may
be derived from the staged input. depth is deliberately precomputed-only and
requires augment_control_asset_uri produced by an operator-owned permissive,
weight-free method. NPA does not download, execute, or validate Video Depth Anything
Large or Small weights. Each modality selects an exact pinned ControlNet checkpoint
from nvidia/Cosmos-Transfer2.5-2B; submit verifies the caller-owned HF token can
access that exact revision/file before provisioning or GPU work. Token presence is
not treated as license consent. NPA used to rewrite requests outside edge/vis silently;
an unsupported modality now fails closed instead.
- What seg buys you.
edgepreserves every texture edge, so a prompt that
restyles a surface fights the old material's edge detail. seg preserves class
boundaries only, which lets the prompt change what a region is made of while
keeping the region's shape and motion.
config.augment_control_promptnames what to segment (`"robot arm, conveyor,
bin"`). Upstream defaults it to the first 128 words of the appearance prompt.
- Region masks restrict any modality to part of the frame: white pixels are
where the control applies, black pixels follow the prompt freely.
config.augment_mask_prompt has SAM2 segment the region from text;
config.augment_mask_asset_uri supplies a precomputed binary spatiotemporal mask
video. They are mutually exclusive — upstream accepts one or the other.
config.augment_control_weightis finite and bounded0.0–1.0. The
shared semantic contract rejects bad weights, mask mutual exclusion, non-seg
control prompts, missing depth assets, and nodes exceeding variants during
validate/plan/submit, before image, cluster, or GPU work.
config.augment_control_asset_urisubstitutes a precomputed control video
(e.g. a segmentation map from an earlier pipeline) for the on-the-fly one. A named
asset that does not exist fails rather than quietly reverting to on-the-fly.
- Published conditioning. The control map and mask land under
config.augment_control_uri as cosmos_control/<clip>/control_<modality>.mp4,
mask_<modality>.mp4, and extracted frames beneath each. That prefix is a
sibling of cosmos_augmented/, never a child: cosmos_evaluator treats every
child directory of the augment prefix as a variant and falls back to the
alphabetically first PNG inside one, so a nested control/ would hand the
attribute-verify VLM a segmentation map instead of the frame it must grade. Rerun
logs them as control/<clip>/control_<modality> next to augmented/<clip>, and
the augment manifest.json records control, control_weight,
control_prompt, mask_prompt, and control_uris.
Example:
npa workbench workflow submit workflows/testing/nvidia-paidf-vda-cosmos-transfer25.yaml --run-id <id> \
--var augment_control=seg \
--var augment_control_prompt="robot arm, conveyor, bin" \
--var augment_mask_prompt="robot arm"
NPA_COSMOS_CONTROL, NPA_COSMOS_CONTROL_PROMPT, NPA_COSMOS_CONTROL_ASSET,
NPA_COSMOS_MASK_PROMPT, and NPA_COSMOS_MASK_ASSET override the same knobs for a
submit that cannot change the toolRef argv.
To inspect an existing evaluator artifact, read one exact local file or S3
object with npa workbench cosmos-evaluator report --input-path <report>;
add --output-format json for the SDK-compatible diagnostic projection.
The command preserves reported outcomes and shows required, advisory, or
unverified enforcement plus incomplete evidence. A valid failed-quality report
is a successful read. Inspection runs no inference, performs no prefix
discovery, and establishes neither calibrated confidence nor semantic material
or multiview validation. See
Cosmos Evaluator grading (evaluate stage). `npa workbench cosmos-evaluator
evaluate` runs two of upstream's checks per augmented variant and writes
grade/cosmos_evaluator.json (schema npa.cosmos_evaluator.report.v1):
- attribute verification — upstream's protocol: an LLM writes one
multiple-choice question per sampled appearance attribute (guided JSON schema,
with upstream's tolerant text fallback), then a VLM answers it from a frame of
the variant. Both hops run on Token Factory, because upstream drives them
through a configurable OpenAI-compatible endpoint. The sampled combo is
upstream's selected_variables and APPEARANCE_VARIABLES is its
variable_options, so a variant that ignored its prompt fails.
nvidia-paidf-vda-cosmos-transfer25 uses the account-verified
google/gemma-3-27b-it VLM and source-relative-change evidence. Background,
palette, and finish questions receive a deterministic changed-surface crop
derived from the exact conditioning video; lighting remains full-frame and may
use a separately recorded VLM override. Missing, misaligned, or too-small
changes fail closed. Other workflows default to the upstream full-frame evidence
shape.
- hallucination — per-frame dynamic-mask comparison of the source clip against
the variant. CPU only. It delegates to upstream's own HallucinationProcessor
when a checkout is importable (NPA_COSMOS_EVALUATOR_SRC, else
/opt/cosmos-evaluator) and otherwise runs the in-repo port of the same
algorithm; the result's engine field says which ran, and the two agree to
~1e-3. Managed variants are input-conditioned, so this comparison contributes
to their score. For a generic unconditioned transfer the source and output are
different scenes, so it remains informational and the score is the attribute
pass rate.
grade_gate thresholds on that report's score. It also still accepts older
vlm_eval reports named vlm_eval_stub.json through the tool's explicit
LEGACY_RESULT_FILENAME, so runs started before the evaluate stage existed
keep grading. New VLM results use the backend-neutral vlm_eval.json; the
payload's backend and provider evidence distinguish real inference from a
fixture. All filenames come from the producing tools' constants, so the gate
cannot drift from its producers.
Cosmos Curator curation (cosmos-curate stage). `npa workbench cosmos-curate
curate-augmented` drives upstream's real stage classes in-process — no Ray
scheduler, no GPU: VideoDownloader → FixedStrideExtractorStage →
ClipTranscodingStage → MotionVectorDecodeStage + MotionFilterStage →
ClipWriterStage. It writes upstream's canonical tree under curated_clips_uri
(clips/<clip-uuid>.mp4, metas/v0/<clip-uuid>.json with real per-clip motion
scores, processed_videos/) plus a summary at curator_report_uri, which the
curate review stage merges into its report under cosmos_curator.
Runs in the npa-cosmos-curate image, which bakes a pinned upstream checkout and
a conda-forge ffmpeg carrying libopenh264 — upstream's transcoding stage accepts
only libopenh264 or h264_nvenc, and Debian/Ubuntu ffmpeg builds have neither.
Outside that image the stage records engine: unavailable with the exact reason
(npa workbench cosmos-curate engine prints the same diagnosis) rather than
pretending to curate, and the FiftyOne review stage still runs. Operators with the
full curator container can instead run upstream's GPU pipeline — `npa workbench
cosmos-curate plan-pipeline prints the documented video-pipeline split` command,
which adds TransNetV2 shot detection, aesthetic filtering, embeddings, and VLM
captioning; both paths write the same layout, so the ingest reads either.
Containers And Model Weights
Both NVIDIA tools are containerized as workbench images, and **neither image
carries model weights**. That is a licensing boundary, not an optimization:
upstream's code is Apache-2.0 and redistributable, its weights are not ours to
ship. A build-time check in each Dockerfile fails if a weight file is present, a
guardrail test (npa/tests/docker/test_cosmos_oss_images.py) fails if a Dockerfile
grows a build-time download, and both checkouts are fetched with
GIT_LFS_SKIP_SMUDGE=1 so upstream's Git-LFS payloads never enter a layer.
| Image | Tier | Weights | Credential at run time |
| --- | --- | --- | --- |
| npa-cosmos-evaluator | job, CPU | none needed | NEBIUS_TOKEN_FACTORY_KEY, for attribute verification only |
| npa-cosmos-curate | job, CPU | none baked; GPU stages fetch on demand | HF_TOKEN, for fetch-models |
The evaluator needs no weights at all. The hallucination check is classical
computer vision, and attribute verification calls a hosted VLM instead of loading
one — so its golden eval runs with --network none. Upstream's objects/obstacle
check would need an EULA-gated SegFormer ONNX and a CWIP checkpoint; those stay as
LFS pointers and that check is not wired. Anyone who needs it must accept
upstream's EULA and fetch the weights themselves.
The curator's GPU stages do need weights, so the image fetches them at run time
with the operator's own Hugging Face token, into a /config/models volume that
survives across runs:
docker run --rm -e HF_TOKEN=... -v curator-weights:/config/models \
<registry>/npa-cosmos-curate:0.1.0 fetch-models --models split-annotate
docker run --rm -v curator-weights:/config/models \
<registry>/npa-cosmos-curate:0.1.0 models --output text
Model sets name a capability, and each set's membership mirrors the
model_id_names of the upstream model class that stage instantiates:
split-transnetv2, embed-internvideo2, embed-cosmos-embed1,
filter-aesthetic, caption-qwen, dataset-t5, and split-annotate (what
upstream's video-pipeline split needs with default flags). The model ids **and
their pinned revisions come from upstream's own registry**
(cosmos_curator/configs/all_models.json), and the download is upstream's own
huggingface_hub call, so a pin moves only when the checkout does — never because
NPA hardcoded one. fetch-models skips anything already complete, records
per-model failures instead of aborting the batch (a gated repo shows up as its own
403), and refuses outright with an actionable message when no token is set.
NGC versus HF: every curator model is a Hugging Face repo, so HF_TOKEN is the
credential that fetches weights. NGC_API_KEY is what pulls NVIDIA containers
(and what upstream's own NVCF path uses); models reports whether each is visible
so an operator can tell which one is missing.
Both images are mode-based (engine, smoke, plus each tool's commands), so one
image serves the workflow stage, the golden eval, and interactive debugging.
Custom images must satisfy SkyPilot's Kubernetes setup. Its provisioner runs, in
the image and as the image's own user, `$(prefix_cmd) apt install openssh-server
rsync -y then service ssh restart, where prefix_cmd is sudo` for a non-root
user. An image missing sudo or those packages fails that script, the container
exits, and SkyPilot reports container not found ("ray-node") — which reads like a
scheduling fault and is the reason operators historically reached for unpinned
submits. All three Cosmos images install
openssh-server, rsync, and sudo and grant their user passwordless sudo;
npa/tests/docker/test_cosmos_oss_images.py fails if that regresses. The same test
covers the entrypoint contract: a bare ENTRYPOINT ["/bin/bash"] swallows the args
Kubernetes passes, so an entrypoint must exec its arguments.
Verified Token Factory model roles: MiniMaxAI/MiniMax-M3 (generic VLM),
google/gemma-3-27b-it (NVIDIA VDA attribute VLM),
nvidia/Nemotron-3_5-Lightning (LLM), MiniMaxAI/MiniMax-M3
(hosted reasoning critic). Cosmos Transfer 2.5 is the GPU augment engine, not a
Token Factory model.
Commands
SPEC=workflows/testing/nvidia-paidf-vda-cosmos-transfer25.yaml
npa workbench workflow validate-spec "$SPEC" --json
# --var bucket= is required for a meaningful plan; without it the spec's
# `example-bucket` placeholder is planned (plan-spec warns). The shipped
# plan_assume_decision previews the accepted path; runtime still reads S3.
npa workbench workflow plan-spec "$SPEC" --run-id demo \
--var bucket=<bucket> --json
# Prerequisites, in order, on a fresh machine/account:
npa workbench health preflight
npa workbench health access --capability paidf # Cosmos Transfer gate must PASS
npa skypilot bootstrap # persists skypilot.sky_bin
npa provision-if-absent --project <alias> --cluster-name <context> \
--cpu-nodes 1 --cpu-preset 8vcpu-32gb \
--accelerator RTXPRO6000:1 # CPU hosts controller + CPU stages
# Submit stages missing/outdated content-addressed NPA source automatically.
# `stage-src` or submit `--stage-src` remains the explicit force/restage path.
# Render/submit on GPUs:
npa workbench workflow submit "$SPEC" --run-id "$(date -u +paidf-%Y%m%dt%H%M%sz)" \
--assume-decision promote_checkpoint --var bucket=<bucket> \
--var n_augmentations=1 \
--infra k8s/<context> \
--secret-env NEBIUS_TOKEN_FACTORY_KEY --secret-env AWS_ACCESS_KEY_ID \
--secret-env AWS_SECRET_ACCESS_KEY --secret-env HF_TOKEN
The secret names above are resolved from the environment first and then the
selected project's configured NPA credentials; operators do not re-export values
already stored by npa configure. With no input selector, submit fetches,
checksum-verifies, caches, normalizes, and stages the pinned real RoboPro starter.
Use --input-video, --input-uri, or --lerobot-uri to replace it; LeRobot
selection may add an exact --lerobot-camera and non-negative
--lerobot-episode, and materializes only the chosen observation video. For a
subject-sensitive run, privately review representative beginning, middle, and
end frames and pass --require-explicit-lerobot-selection; it fails before
object-store access unless both selectors were explicitly supplied. The flag is
data-agnostic and records no selectors or subject labels in Git. Omitting it
retains the compatibility defaults and is not semantic-subject proof. Use
--seed-fixture only for explicitly synthetic developer/test input.
The one-variant override keeps the first real run decisive; omit it for the
spec's default two-variant multiply or raise it with the requested GPU count.
submit reports missing prerequisites together: SkyPilot, source staging,
bucket/S3, the four forwarded runtime secrets, gated Cosmos Transfer access,
and a Ready, schedulable, appropriately untainted node with 6 CPU/24 GiB
allocatable for one PAIDF CPU stage plus the SkyPilot controller. A qualifying
GPU node is valid. Image preflight proves each selected manifest;
private Nebius pulls refresh the Kubernetes secret before launch. --plan-only
skips runtime-only checks; --skip-preflight bypasses them.
The immutable infrastructure plan also checks boot-disk count and
compute.disk.size.network-ssd byte capacity before any mutation. The shipped
one-CPU/one-GPU cluster requires 1,151 GiB (128 + 1,023); the README path with a
new 100 GiB agent requires 1,251 GiB. JSON and human output include exact bytes
and GiB for required, available, and shortfall. Preemptible GPU selection does
not change these disk requirements.
Key Operational Notes
- Prepare a verified video before GPU work. The submit path selects the
pinned RoboPro physical capture by default, or an explicit --input-video /
--input-uri / --lerobot-uri; LeRobot inputs validate meta/info.json, a
declared video feature, and the selected episode before media staging. It
validates H.264 MP4 media, verifies the default digest,
caches/reuses safely, stages source.mp4, and derives the exact
conditioning.mp4 plus caption frames. --seed-fixture is the only synthetic
geometry path. Conflicts, offline cache misses, invalid media, or checksum
failures stop before automatic provisioning and never fall back. The catalog's
mandatory --condition-on-input makes the staged conditioning clip the real
Cosmos control. Consequently the Dataset & provenance tab and the full
reports/sim2real.rrd Rerun recording is built after grading on both outcomes:
accepted runs include downstream captions/curation/finalization when available;
rejected runs get a partial evidence recording before the explicit fail-closed
state. Runs that fail before usable input/augmented frames exist cannot produce
an RRD.
- Schema is not semantic proof. A valid LeRobot
meta/info.json, checksum,
or automatic camera choice cannot establish the depicted subject. For a
subject-sensitive run, inspect representative frames outside the repository,
supply exact camera and episode selectors, and enable
--require-explicit-lerobot-selection so compatibility defaults cannot choose
a different stream. Ambiguous visual candidates fail closed operationally.
- SAM2 is explicit and optional.
segmentation_mode: offis the default and
keeps the non-SAM path unchanged. sam2-auto invokes upstream Meta SAM2 in the
Cosmos GPU task once per source clip, publishes an exact
frame-aligned mask contract, and reuses it across augmentation variants for
protected source-chroma/luma-bounded compositing. Raw prompt coordinates are
not a workflow config surface. Keep the official source and model revisions
immutable and fail closed on an incomplete mask sequence. The SAM2 masks are
distinct from Cosmos Evaluator comparison masks.
- Control A/B prompt sampling. Set the same non-sensitive
augmentation_seed on two fresh runs when measuring an optional component.
Empty preserves deterministic run-ID-derived sampling.
- Refinement policy and precedence. The first pass retains Cosmos Transfer's
established control_weight=1.0 with guidance 3. A failed gate consumes the
durable decision/report contract and must select a different in-bounds pair
(the default retry lowers guidance). Attempts are immutable JSON objects with
commit markers; only the current pointer is mutable. Explicit CLI values are
overridden by NPA_COSMOS_* conditioning variables, and a validated refinement
artifact overrides both so ambient worker settings cannot change a committed
retry. Prior live evidence showed that stronger control is non-monotonic with
attribute score, so this is compatibility policy rather than an improvement
claim.
Run either NVIDIA component on its own, against a run prefix or local files:
# Which engine will each resolve to here, and why?
npa workbench cosmos-evaluator engine --output text
npa workbench cosmos-curate engine --output text
# Grade one run's variants (writes grade/cosmos_evaluator.json).
npa workbench cosmos-evaluator evaluate \
--augment-uri s3://<bucket>/physical-ai-data-factory/<run>/cosmos_augmented/ \
--output-uri s3://<bucket>/physical-ai-data-factory/<run>/grade/ \
--input-uri s3://<bucket>/physical-ai-data-factory/<run>/input/ \
--configs-uri s3://<bucket>/physical-ai-data-factory/<run>/configs/
# One check at a time (both take local paths).
npa workbench cosmos-evaluator hallucination --original-video a.mp4 --augmented-video b.mp4
npa workbench cosmos-evaluator attribute-verify --video b.mp4 \
--variables '{"color_grade": "warm"}' --options '{"color_grade": ["warm","cool","neutral"]}'
# Curate one run's variants (writes the curator tree + cosmos_curator.json).
npa workbench cosmos-curate curate-augmented \
--augment-uri s3://<bucket>/physical-ai-data-factory/<run>/cosmos_augmented/ \
--curated-uri s3://<bucket>/physical-ai-data-factory/<run>/curation/cosmos_curator/
# Curate a local directory of clips.
npa workbench cosmos-curate curate-videos --input-dir ./clips --output-dir ./curated
Key Operational Notes
- Cancellation distinguishes planning from launch. A durable
planned/reserved/staged ledger with no workflow, stage, controller, or job ID
returns NOT_SUBMITTED without S3 or SkyPilot. Once any durable evidence says
submission began, missing S3/SkyPilot remains VERIFICATION_UNAVAILABLE until
exact provider or terminal receipt evidence resolves it. Receipt/exact flags
follow exact > receipt > live-config precedence and conflicts fail closed.
- Managed-job identity is per stage/wave attempt. Runtime state records each
wave key, encoded stage members, attempt number, job ID/name, timestamps, and
outcome. Status and cancellation reconcile those records independently; they
never copy one discovered job ID (for example 8) onto every stage. Parallel
JobGroup members share an ID only because the durable wave proves that
membership. Retries retain all attempts and select the final attempt
deterministically; missing/conflicting evidence is unknown/ambiguous rather
than an invented mapping. Legacy root-ID fan-out remains only for the proven
single-managed-job manifest contract.
- Controller launch is a transaction, including wave 1 and resume. NPA
requires stable exact-context Kubernetes API readiness, serializes the durable
logical wave/attempt identity locally, and reconciles structured SkyPilot queue
evidence before retry or cancellation. A client-side refusal after acceptance
adopts the immutable job ID; authoritative absence plus transient transport
may recover within the same submit; indeterminate existence blocks and prints
the exact --resume-run <same-id> remedy. No ID means cancellation is
not_applicable, never a name-based teardown or a fabricated CANCELLED state.
- Image and completion evidence are digest/run bound. Selected PAIDF images
satisfy the SkyPilot 0.12.2 bootstrap contract at immutable digest; FiftyOne
uses its declared non-root user and UID-0 overrides are forbidden. A terminal
current-schema ten-wave ledger with exact durable artifacts remains terminal
after managed jobs disappear. Stale planning cannot produce NOT_SUBMITTED;
resume skips succeeded waves without launch.
Supply distinct validation artifacts with repeatable
--image-override TOOL_REF=IMAGE, using the same exact mapping for preflight,
initial submit, and resume; each verified digest is rendered only for its tool.
- Neither NVIDIA component fetches code at run time. The evaluator looks for
a checkout at NPA_COSMOS_EVALUATOR_SRC / /opt/cosmos-evaluator and falls
back to the in-repo port; the curator requires NPA_COSMOS_CURATE_SRC /
/opt/cosmos-curate (baked into npa-cosmos-curate) and reports
engine: unavailable without one. If a report says unavailable, read its
reason — it names the missing piece (checkout, importability, or ffmpeg
encoder) instead of guessing.
- Curator encoder gotcha.
ffmpeg -encoders | grep -E 'libopenh264|h264_nvenc'
must match something, or upstream's ClipTranscodingStage cannot write clips.
Debian/Ubuntu ffmpeg has neither; conda-forge's build carries libopenh264, and
some GPU images also advertise h264_nvenc. The in-process CPU curation path
deliberately prefers libopenh264: H100/H200 expose a CUDA device but no NVENC
hardware, so selecting an advertised NVENC encoder there drops every clip.
- Curator needs Python >= 3.12 (upstream declares
requires-python >=3.12,<3.13). On an older interpreter the failure otherwise
surfaces as cannot import name 'Self' from 'typing' from deep inside an
upstream import, so the availability probe checks the version first and says so.
The npa-cosmos-curate image is 3.12; a dev box on 3.10/3.11 needs its own
3.12 environment (uv venv --python 3.12) to run the curator locally.
- A VLM can answer outside the options it was given. Token Factory's VLM does
return D for a three-option question. That reads as UNKNOWN (a failed check
with no verdict about the pixels), not as a concrete wrong answer, so check
vlm_answer before drawing conclusions from a failed attribute.
- GPU accelerator name is cluster-specific. The spec uses canonical
RTXPRO6000:1; some clusters advertise RTXPRO-6000-BLACKWELL-SERVER-EDITION.
If sky reports FAILED_PRECHECKS / no matching resources, check
sky gpus list and resubmit with the cluster's accelerator name.
- Reproducible deploy/submit: unset a stale
NEBIUS_IAM_TOKENbefore
sky/terraform (the Nebius provider prefers the ambient token over the
fresh one). provisioner._run scrubs it for agent deploys.
- Augment output contract (per-clip layout):
cosmos2.transferwrites a
contract manifest by default; with --execute on S3 output,
publish_transfer_to_s3 uploads the real Cosmos Transfer 2.5 result in the
per-clip layout the consumers require:
cosmos_augmented/<clip>/{augmented_video.mp4, frame-*.png, metadata.json}
plus a run-level cosmos_augmented/manifest.json. Every scheduler-managed
augment puts its clip dirs below _attempts/<attempt-id>/; a multi-node augment
also puts manifest-rank-<k>.json there. Consumers resolve only variants named
by the executed canonical manifest. build_run_rrd reads each selected clip's
metadata.json for its Rerun label. Producer and consumers share this shape;
- Real FiftyOne curation: the
curatestage invokes
workbench.fiftyone.curate_augmented in the npa-fiftyone image with
--require-fiftyone. It builds a fiftyone.Dataset,
computes a GPU-free per-variant embedding (downsampled RGB + color histogram),
and runs compute_uniqueness + compute_similarity().find_duplicates() +
compute_visualization(method="pca"). The report gains `curation_engine:
fiftyone-brain, per-variant uniqueness`, near-duplicate clusters, and a
kept/dropped selection (schema stays npa.fiftyone.curation.v1 — new fields
are additive). A completed real Cosmos Curator report is required, and if
Curator, Brain, or its database is unavailable, every caller fails this stage;
no report-only success mode remains. --require-fiftyone is retained as an
explicit workflow contract marker.
The agent's Dataset & provenance tab surfaces uniqueness + kept/dropped per
card, curation stats, original-versus-synthetic grouping, and source metadata
(build_fiftyone_dataset).
test_publish_transfer_layout_interoperates_with_curate_and_viz guards it. The
augment stage "multiplies": it runs one inference per sampled combo and emits
one clip dir per variant (publish_transfer_clip per clip + a single
write_run_manifest), so N sampled combos → N clip dirs.
- Full or rejected-evidence pipeline in the Rerun panel:
build_run_rrdlogs the run's input
frames and each augmented clip's frames/label PLUS a static text doc per stage
— sampled scenarios (config), the attribute-verify / hallucination grade + gate
decision, final quality disposition, any curation/finalize reports, and a stage
log — under the pipeline/* entities. Rejected runs take visualize-rejected
before reject-quality, so the evidence survives while promotion remains
fail-closed.
PAIDF recordings contain selected producer facts, raw source-report SHA-256
hashes, and run-relative artifact references. Captions, models, candidate
decisions, quality measurements, and timelines remain reviewable; private
storage locations and runtime identities are omitted. Original reports stay
private and unchanged, and existing recordings are not rewritten. Apply
skills/workflows/emit-reviewable-rrd/SKILL.md when validating decoded content.
- Viewing in the NPA agent: every stage lands under one S3 run prefix
(`input/ configs/ labeled_original/ cosmos_augmented/ grade/ labeled_augmented/
curation/ reports/). The visualize stage writes reports/sim2real.rrd`,
which the agent's embedded Rerun viewer renders. Browse via
/api/artifacts/runs?prefix=physical-ai-data-factory. See
docs/workbench/guides/physical-ai-data-factory.md.
- Restricted-egress visualization: the
visualizestate uses
workbench.nurec.visualize, which the renderer pins to the prebuilt
npa-rerun-viewer image. It never performs pip install at task runtime.
Immutable campaign reuse and provider derivatives
The expensive source, generation, and evaluation stages are frozen once into an
immutable base campaign (npa.paidf.campaign.v1), and every provider workshop
becomes a derivative run that reads the base read-only and writes to its own
prefix. The contracts live in npa.workflows.paidf_campaign
(docs/workbench/guides/paidf-campaign-reuse.md is the runbook):
build_partner_input/validate_partner_inputpin the base campaign ID,
manifest URI, and canonical digest; a derivative run cannot execute
source, generation, or evaluation, must declare a curation,
observability, or simulation role, credential references (never
values), and an output prefix separate from the base campaign.
build_execution_receipt/build_partner_resultaccount for every
declared overlay stage and prove source_mutated: false with every output
under the derivative prefix.
- Curation flows through provider-neutral candidates
(npa.paidf.candidates.v1), decisions (npa.paidf.decisions.v1), and
reconciliation (npa.paidf.reconciliation.v1). A decision provider is
exactly name plus a curation or evaluation role; each decision is
exactly candidate_id, decision, evidence, reason, and a
caller-supplied decided_at in YYYY-MM-DDTHH:MM:SSZ UTC-second form.
accept enters the training set, reject is dropped, and review is a
valid but unresolved state that is reported explicitly and never enters
accepted replacements. Provider exports reconcile by exact external ID and
every terminal row must carry a non-null decision state.
- Regenerating any base stage creates a new campaign; existing campaigns are
never silently changed. This is a contract layer, not a provider plugin
system: provider execution stays in provider-specific code, and no live
second-provider integration is claimed until one runs.
Testing (live-infra is a priority)
Follow skills/atomic/testing-conventions/SKILL.md ("Live-Infra Testing Is A
Priority"). The blueprint is registered in SUBMIT_LIVE_MATRIX and
DYNAMIC_SPECS; smoke via test_all_workflow_yamls.py; the Rerun builder via
npa/tests/workflows/test_data_factory_viz.py.
Opt-in World Factory backend for the main Cosmos3 workflow
workflows/main/paidf-cosmos3.yaml keeps use_hosted_endpoint: false by default.
For hosted generation, set it to true, provide endpoint_url, owner-scoped
endpoint_input_connection and endpoint_output_connection, and transport the
key using --secret-env WMH_API_KEY or a private key file present on the worker.
Use the World Factory client skill to register
connections. Scope input access to the prepared video and output access to the
run's augmentation prefix. Only a verified Nebius output bucket is accepted;
NPA's publication S3 endpoint must match that registered destination.
The main workflow still prepares/captions inputs and evaluates, refines, curates,
and publishes actual outputs. Set variant_count: "12" and
variant_parallelism: "12" to exercise concurrent submissions; service lanes
control actual GPU concurrency. Do not report submitted jobs as active GPUs.
Preserve endpoint state on interruption and resume the same run identity.
Native-only chunk/RGB/CFG/topology overrides are rejected. Hosted negative
prompts are unsupported; endpoint_negative_prompt stays empty. Guardrails
remain enabled. Follow the configuration contract
for supported parameters and honest endpoint execution receipts.
Present the canonical manifest's augmented_video_uri in demos and downstream
consumers. Both backends restore verified source borders during PAIDF publication
without changing generated scene pixels. Retained raw model videos can alter
padding and are diagnostic artifacts, not the final publication. Label compressed
viewing copies explicitly and retain their canonical-file provenance. The live
endpoint audit checks border and scene pixels across every decoded frame.