Tao Finetune Cosmos Reason
NVIDIAOfficialCreated by NVIDIA Corporation
- Skill
- Workflow
- Data and AI
- Apache-2.0
- Medium risk
- Has scripts
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The tao-finetune-cosmos-reason skill provides a structured, unified interface for managing the lifecycle of Cosmos3 multimodal model training and evaluation. It handles complex routing between Cosmos Framework and Cosmos-RL backends, enforces strict input validation for datasets and model checkpoints, and manages the orchestration of training jobs on platforms like SLURM. The skill ensures reproducibility by sealing plans, validating runtime environments, and enforcing rigorous data and model contracts, while automating necessary conversions for Nano-tier architectures.
What it does
- Routes training requests to the appropriate Cosmos Framework or Cosmos-RL backend.
- Validates runtime inputs, including model paths, video datasets, and SLURM configurations.
- Automates the conversion of Nano-tier checkpoints to required formats.
- Executes training jobs with integrated validation of gradients and loss metrics.
- Manages evaluation workflows, inheriting training configurations for consistency.
- Ensures reproducibility through sealed plans and immutable reference resolution.
When to use it
- When training or fine-tuning Cosmos3-Nano or Cosmos3-Edge models.
- When you need to perform task-aware video reasoning or conversation-style training.
- When orchestrating training jobs on SLURM clusters with specific container requirements.
- When you require a reproducible, validated pipeline for model evaluation and metric extraction.
Advantages
- Enforces strict reproducibility through sealed, immutable plan artifacts.
- Simplifies backend selection by automatically routing based on the task type.
- Provides robust validation of inputs and environment configurations before job submission.
- Ensures consistency between training and evaluation phases by inheriting configurations.
- Supports both dense and PEFT training modes with standardized parameter contracts.
Usage examples
- “Train a Cosmos3-Nano model using the Cosmos-RL backend on my video conversation dataset.”
- The agent will validate the dataset structure, resolve the base model, prepare the Nano checkpoint, and generate a sealed plan for the training job.
- “Evaluate my fine-tuned Cosmos3-Edge model on the validation set.”
- The agent will inherit the training configuration, run the evaluation workflow, and extract final metrics such as token-weighted loss and task accuracy.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/nvidia/tao-finetune-cosmos-reason/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip tao-finetune-cosmos-reason.zip -d .agents/skills
Documentation by NVIDIA Corporation
Cosmos3 TAO training
Keep one shared model-facing frontend. Backend image fields and contract paths
live under backend_contracts in references/skill_info.yaml; image literals
are stamped from versions.yaml, while referenced backend YAMLs define native
runtime schemas. Never translate between them.
Mandatory runtime intake
Before planning training, collect all of the following. Do not infer a path from history, another user, a prior job, an image, or a developer checkout.
base_model_path_or_uri. For a Hugging Face model ID or URL, accept an optional friendlybase_model_revisionsuch as a branch or tag. If omitted, resolvemain; do not ask the user for a commit SHA. Resolve the selected ref read-only through the Hub API to its immutable commit and seal the model ID, requested ref, and resolved SHA in the plan. A complete local snapshot needs no revision and is sealed by its file fingerprints.For Cosmos3-Nano, an explicit input-checkpoint
model_type:qwen3_vlorcosmos3_omni. If the user did not supply it, ask once before planning; never infer the choice fromconfig.json, a model ID, a path name, or a previous run. Explain the two choices in plain language:qwen3_vluses a compatible Hugging Face checkpoint directly, whilecosmos3_omnirequires an immutable conversion to exact Qwen3-VL safetensors before training. Record the answer asbase_model_format. Cosmos3-Edge is inferred ascosmos3_edgefrom the resolved model ID and does not present this Nano-only choice.Do not expose Omni preparation implementation fields during normal intake. For Nano, use
Qwen/Qwen3-VL-8B-Instruct, resolve both Hub models to immutable commits, and run the selected backend's packaged converter. Framework usescosmos_framework.scripts.convert_model_to_vlm_safetensors; Cosmos-RL usescosmos_rl.model_preparation.vlm_safetensorswith its pinned isolated converter runtime. Validate an explicitly suppliedprepared_checkpoint_pathor donor, but never ask for one by default.Accept
hf_model://nvidia/Cosmos3-Nanodirectly. If a gated/private model cannot be resolved, ask the user only to setHF_TOKENin the session environment; never ask them to discover a SHA or provide the token value in chat.explicit video sampling mode: either uniform
nframesorfps. FPS mode may also setmin_framesandmax_frames; both modes may set clip-time, resize, and pixel-budget fields supported by the selected backend.training/validation annotation paths and media roots for conversation-style or task-aware video supervision, plus optional task selection.
explicit
backendfor a comparison;cosmos-frameworkorcosmos-rl.training_mode;denseorpeft. PEFT also requires rank, alpha, dropout, target modules, bias, RS-LoRA, modules-to-save, and adapter precision.user-owned
results_dir,checkpoint_dir,cache_dir, and, for SLURM,sqsh_cache_dir,ssh_key_path, mounts, and scheduler settings.Runtime order: compute-readable
sqsh_path, explicit image, then the selected backend image inreferences/skill_info.yaml. On SLURM reuse or convert it once undersqsh_cache_dir. Never compare an SQSH filename with an image tag or request source provenance/SHA.Repository paths, commits/trees, branch, base image, build context, and timestamp are advanced inputs required only for explicit
source-build. Seereferences/cosmos-backend-operations.md; never infer a build from runtime selection.
The planner preserves each original path and reports an accessible realpath.
Missing required paths fail. A missing supplied SQSH fails; an omitted SQSH
selects the packaged image. No historical fallback path or image is allowed.
Nano checkpoint model-type choice
Treat the selected base_model_format as a user decision and verify that it
matches the supplied local checkpoint's config.json.model_type. A mismatch
fails; it is not permission to relabel or rewrite the source checkpoint.
For qwen3_vl, fingerprint and use a complete compatible Hugging Face Nano
checkpoint directly. For cosmos3_omni, tell the user in the launch review
that Cosmos-RL will prepare its compatible checkpoint automatically, name the
planned output path, and preserve the source checkpoint unchanged. Do not ask
the user for an architecture donor, preparation image, or preparation SQSH.
The backend-owned preparation step emits a verified qwen3_vl checkpoint
under the selected platform's user-owned checkpoint_dir:
Docker: the local Docker host's
checkpoint_dir.SLURM: the compute-node-verified shared
checkpoint_dir, covered by an explicit container mount. Run conversion through the SLURM/Pyxis contract; do not write the converted checkpoint to controller-local storage.
Use the packaged Nano architecture mapping and selected backend runtime unless
an advanced override was explicitly supplied. Fingerprint the source,
architecture mapping, converted config/tokenizer/processor/index/shards, and
conversion provenance. Before conversion, bind the
sealed plan's backend-native training fields and VLM_SAFETENSORS_PATH to the
planned converted checkpoint inside the selected container. Validate that
exact output before training without mutating the sealed plan. The original
Omni/Hugging Face path remains provenance only and must never remain as the
runtime model path. Reuse is allowed only when the exact target has complete
matching conversion provenance and passes the same validation.
Public Cosmos3-Edge checkpoint contract
Accept the public model at its resolved immutable revision or a local
snapshot; never request a second checkpoint.
Apply the model-aware runtime defaults from references/skill_info.yaml and
references/cosmos-framework-backend.yaml, preserving separate model and
processor-profile fingerprints and each default/override origin.
Backend selection
Run scripts/cosmos_workflow.py resolve first.
| Request | Automatic selection |
|---|---|
| Cosmos3-Nano plain train | Cosmos-RL (compatibility default) |
| Cosmos3-Nano AutoML/HPO | Cosmos-RL |
| Nano Framework-DCP export | Cosmos Framework |
| Nano evaluate/inference/microservice with no explicit backend | Cosmos-RL |
| Nano quantize | Cosmos-RL |
| Cosmos3-Edge train/export/evaluate/inference/microservice | Cosmos Framework |
An explicit supported backend wins, so users can select Cosmos Framework for
Nano training without changing model ownership. Comparative runs reject
auto, so both sides of an experiment are deliberately forced.
Framework-trained checkpoints use the native exact-key exporter, then the
repository-backed TAO evaluation adapter. That does not make Framework a
Cosmos-RL version.
Evaluation intake and inheritance
Run scripts/evaluation_workflow.py for every evaluate action and follow
references/cosmos-reason-evaluate.md completely. A parent training plan owns
all inheritable model, dataset, prompt, preprocessing, precision, checkpoint,
and scoring fields; never ask the user to repeat them. Ask once only for the
helper's required_user_inputs, execute its automated_actions, and launch
only a checksum-valid ready=true plan. Cosmos-RL policy checkpoints require
the emitted cosmos_rl_checkpoint_pre_action; Framework DCP inputs require
their emitted export pre-action. The ready plan includes a validated
spec_bundle.execution; pass it unchanged to the selected platform. Cosmos
owns runtime attestation and evaluator configuration; the platform owns launch.
Framework checkpoint pre-action
Before Framework evaluate, inference, or microservice actions, run
scripts/framework_checkpoint_action.py plan and its emitted prepare and
verify steps. Follow references/cosmos-backend-operations.md; never ask the
user to export DCP manually. On SLURM stage only the helper dependency set
declared by workflow_contract.action_helper_dependencies; the platform
verifies the closed bundle. Use only the verified
action_model_path, reuse only matching complete exports, and record the
pre-action, manifest, fingerprints, and independent child result.
Required gates
Execute these stages in order and persist their outputs.
Resolve model/backend/action and load the selected backend contract.
Check credentials by presence only. Never read or persist credential values. Require a token only for the operation that needs it.
Validate tools, storage, paths, and runtime selection in the mandatory intake order; existing-SQSH and packaged-image modes skip source gates.
Only for explicit
source-build, validate/build clean sources and verify/opt/tao/image-provenance.json. Never mount host source into training.Enforce the explicit Nano checkpoint model-type choice. If it is
cosmos3_omni, show the conversion and platform-owned output path in the launch review, then prepare the model through the shared TAO integration entrypoint packaged in the selected clean backend image after approval. Resolve URI/model-ID refs to immutable Hub commits automatically. Validate exact tensor/config keys and fingerprint model, tokenizer, processor, weight index, every shard, and provenance. Assign the verified converted path—not the original source path—to training.Validate inputs, counts, duplicates, overlap, tasks, and identities. A no-byte-hashing request selects both fast fingerprint flags; metadata stays hashed while weight/media payloads use path+size. Verify the resolved inputs again from an allocated compute node. When SLURM storage is not mounted on the launch host, let
cosmos_workflow.pystream its checked-incosmos_common.pyinspector to a login host over SSH. It runs from stdin, preserves remoterealpathvalues, and creates no remote script or source overlay. Do not require local Lustre,sbatch, orsrunon an SSH-based launch host. Run this expensive input inspection exactly once with theplanverb and pass a local--plan-artifact <path>so the resolved request and inspection results are sealed for the remaining launch verbs.Resolve the video runtime from the structural dataset contract and enforce every profile gate in
references/cosmos-reproducibility-gates.md. Cosmos-RLautoselects source-bakedpynv-device-rgbpforvideo_conversationandsystem-pyavfortask_aware_video_reasoning; Framework selectstorchcodec-cuda-on-demand. All defaults use bounded rank-local, on-demand memory with no disk prewarm. Repeated-media validation may use the backend-native grouped sharder and validation-only caches only while preserving records, explicit batch, weighting, prompts, and preprocessing. Throughput settings that relax batch-1 parity require user authorization.Generate backend-native TOML, environment, topology, preflight commands, parity data, runtime profile, and metadata. Full specs contain no sample limit. Reuse one sealed
--plan-artifactacross read-onlypreflight, post-reviewmaterialize, andrender-slurm; do not repeat original inputs. Materialize atomically in the verified compute frame, derive container paths only from explicit mounts, and never copy source patches to the cluster. Diagnostic subsets are explicit opt-ins, never launch prerequisites.On SLURM reuse the supplied/derived SQSH or convert the selected image once before GPU submit. SQSH SHA and source provenance are not runtime gates. When Omni preparation is required, inspect the SQSH filesystem and reject it unless it contains the shared TAO launcher, the native Framework converter, and
/opt/tao/framework-converter-runtime.json. The runtime artifact must reportvalidation_mode=imported_converter_module, proving the isolated converter's transitive dependency graph imported during the image build; file presence alone is not sufficient. Verify Pyxis/Enroot, mounts, Python/packages, decoder, GPU, CUDA, NCCL, and storage in the training allocation.Launch the requested training job directly; do not submit a separate smoke job unless the user explicitly requests one. For Cosmos-RL VLM training, require packaged source that emits a padding-aware
attention_maskand runs the visual-gradient contract after the first backward pass and before the first optimizer update. Persist total/trainable/frozen counts and gradient norms for the vision encoder, visual projector, language model, and language head. Fail immediately when a trainable visual component has no gradient, a non-finite norm, or a zero norm. Report an explicitly frozen visual component as not applicable rather than as a failure.Materialize the full spec once and verify its SHA256 in the compute frame before rendering the job from the same plan artifact. Monitor scheduler and structured TAO state to a terminal result, and preserve the child exit code independently of scheduler state. Require child exit zero, structured
SUCCESS, finite global train/validation loss, checkpoint completion, and a final evaluator metric before reporting completion.Resolve evaluation with
scripts/evaluation_workflow.py. Inherit exact fine-tuning artifacts, collect only its remaining user inputs, run its backend-owned automated checkpoint pre-actions, and requireready=true. On Cosmos-RL, verify the selected HF export withcosmos_rl_checkpoint_action.py, rerun resolution with its manifest, and submit the emitted spec-bundle through the chosen platform; never select the native policy directory, copy the lifecycle into an application-owned launcher, or improvise result/status variables. Evaluate the selected checkpoint with identical prompt, preprocessing, generation, normalization, and task scoring. Extract final metrics withscripts/extract_cosmos_metrics.py.
Dataset contracts
Resolve datasets by structure, not by project, benchmark, directory, or file name. The supported families are:
video_conversation: a JSON array with media and at least two ShareGPT, LLaVA, or OpenAI-style conversation turns;task_aware_video_reasoning: one or more item-envelope or array annotation files with media, task identity, and conversation/response targets.
Default dataset_family to auto, inspect every annotation, and require train
and validation to resolve to the same family. Capture record count, unique
media count, media reuse, extensions, byte-size distribution, task/metric
metadata, and any declared width, height, FPS, and duration. Select processor,
cache and resource profiles from those characteristics and the
model tier. Never branch on a customer dataset name.
Tasks declaring accuracy participate in deterministic accuracy; common binary and multiple-choice task types are recognized. Generative tasks report their declared metrics and are excluded from aggregate accuracy with a reason. Aggregate accuracy is example-weighted over records with an accuracy definition.
Dense and PEFT contracts
Dense SFT has no LoRA block and reports trainable, frozen, and total counts. PEFT preserves rank, alpha, dropout, targets, bias, RS-LoRA, saved modules, precision, and trainable count across backends; mismatched semantics block a pair.
For fair comparisons, force the same logical model, train/validation records, media, prompt, frames, sequence length, precision, seed, epochs, effective global batch, optimizer, learning rate, schedule, warmup, weight decay, clipping, loss masking, validation/checkpoint cadence, evaluated checkpoint, and generation/normalization settings. Classify differences as equivalent syntax, unavoidable implementation difference, or invalid mismatch; an invalid mismatch blocks the full pair.
Metrics and completion
The required primary metrics are:
complete-run globally reduced token-weighted training loss, with numerator and valid-label denominator;
final-validation globally reduced token-weighted loss, with numerator and valid-label denominator;
the repository evaluator's final validation metric and any supporting values it emits. Do not add a second post-evaluation gate.
Do not average console lines or rank means. A step loss is not the average training loss. A validation heartbeat is not final validation loss. A generative exact match is not accuracy unless the task defines it.
The native Framework callback and native Cosmos-RL logger own early failure,
checkpoint, progress, metric, and terminal events. Do not stage a status bridge
or patch status at container startup. COMPLETED from SLURM is failure when the
child exit code is nonzero or the terminal TAO state is not successful.
SLURM invariants
Generated jobs use Bash, SQSH via Pyxis, no requeue by default, one launcher
task per node, runtime-supplied logs, and the training child exit code. A
single-node exclusive allocation preserves the requested CPU count in
the SBATCH contract but passes every CPU actually granted by SLURM to the
training step and records requested, allocated, and step counts. Before the
training child, the same allocation runs the planner-owned packaged-runtime
gate as the training job's first Pyxis step; a failed gate writes the independent
child exit artifact and blocks training. Generated jobs set
SLURM_EXPORT_ENV=ALL, and the platform consumer still submits with
sbatch --export=ALL. Every Pyxis step also receives the planner-owned
runtime variable names through --container-env, so a baked image ENV value
cannot override the selected decoder, frame-transfer, cache, or worker profile.
Framework topology is
shard=gpus_per_node, replica=nodes.
Cosmos-RL uses one controller on node zero and its policy-worker topology.
Asynchronous distributed checkpointing is rejected for multi-node runs.
Every job metadata record must validate against
schemas/cosmos-job-metadata.schema.json and contain paths, fingerprints,
runtime identity, config, resources, states, outputs, and timing without
credentials. Source provenance exists only for source-build; SQSH SHA is
optional and never a runtime gate.
Source-affecting recovery
If a run exposes a code or image defect, stop the affected path, change the owning repository, add a test, commit it, rebuild both image and SQSH from a clean checkout, then restart every affected training job from its clean sealed plan. Never edit a running container, patch an existing image, reuse an old SQSH after a source change, or rely on a temporary launch script as the implementation.
Use references/cosmos-reproducibility-gates.md as the source-owner/test map.
For infrastructure retries, the launch skill classifies the failure and opens
the new --retry-of record; SLURM supplies validated node inventory and
exclusions. Run cosmos_workflow.py retry-plan with the new record's
<action-root>/config/train.toml; it rebases all writable paths and reseals the
Cosmos request. Render that plan; never patch SBATCH.
Files
- ATTRIBUTION.mdAdded by AutoGineer948 B
- BENCHMARK.md9.6 KiB
- LICENSELicence file added by AutoGineer11.2 KiB
- SKILL.md19.4 KiB
- config/skillspector-baseline.yaml2.0 KiB
- evals/evals.json8.3 KiB
- references/cosmos-actions-parameters.md18.8 KiB
- references/cosmos-automl-deft.md5.5 KiB
- references/cosmos-backend-operations.md7.9 KiB
- references/cosmos-data-specs.md3.5 KiB
- references/cosmos-framework-backend.yaml7.0 KiB
- references/cosmos-reason-automl.md14.2 KiB
- references/cosmos-reason-evaluate.md11.6 KiB
- references/cosmos-reason-launch.md12.8 KiB
- references/cosmos-reason-parameters.md16.8 KiB
- references/cosmos-reason-single-gpu-video.md4.5 KiB
- references/cosmos-reproducibility-gates.md10.4 KiB
- references/cosmos-rl-backend.yaml7.7 KiB
- references/demo_datasets.yaml503 B
- references/detailed-guide.md645 B
- references/skill_info.yaml19.0 KiB
- references/spec_template_evaluate.yaml1.5 KiB
- references/spec_template_inference.yaml240 B
- references/spec_template_quantize.yaml345 B
- references/spec_template_train.yaml1.8 KiB
- schemas/cosmos-job-metadata.schema.json1.6 KiB
- schemas/evaluate.schema.json12.7 KiB
- schemas/inference.schema.json1.7 KiB
- schemas/manifest.json3.1 KiB
- schemas/quantize.schema.json2.4 KiB
- schemas/train.schema.json35.3 KiB
- schemas/train_request.schema.json9.8 KiB
- scripts/cosmos_common.pyScript41.3 KiB
- scripts/cosmos_rl_checkpoint_action.pyScript9.9 KiB
- scripts/cosmos_workflow.pyScript268.2 KiB
- scripts/evaluate_video_conversation_single_gpu.pyScript7.5 KiB
- scripts/evaluation_workflow.pyScript61.9 KiB
- scripts/extract_cosmos_metrics.pyScript11.9 KiB
- scripts/framework_checkpoint_action.pyScript23.3 KiB
- scripts/framework_evaluation_image_preflight.pyScript5.9 KiB
- scripts/gate_docker_train_evaluate.pyScript20.2 KiB
- scripts/prepare_cosmos3_vlm_checkpoint.pyScript14.1 KiB
- scripts/train_video_conversation_single_gpu.pyScript6.2 KiB
- skill-card.md4.5 KiB
- skill.oms.sig14.5 KiB
- tests/test_gate_docker_train_evaluate.pyScript6.8 KiB
- tests/test_prepare_cosmos3_vlm_checkpoint.pyScript2.8 KiB
- tests/test_runtime_preflight_contract.pyScript36.4 KiB
references/cosmos-reason-evaluate.md
Cosmos evaluation
Load this only when SKILL.md points here. The repository evaluator is shared
by Cosmos-RL checkpoints and Framework checkpoints after the mandatory native
Framework export.
Resolution contract
Never submit references/spec_template_evaluate.yaml directly. It is a
dataset-neutral shape template whose zero and empty semantic values are
deliberately unresolved. Run scripts/evaluation_workflow.py first. The
helper verifies a sealed fine-tuning plan, records field-level provenance,
returns all missing user inputs in one bounded list, and emits runtime TOML
only when the request is complete.
Resolve fields in this order:
Use an explicit current evaluation override when the user is deliberately changing the validation corpus or evaluation semantics.
Apply a packaged fingerprint-locked evaluator profile when the exact annotation bytes match one.
Otherwise inherit exact values from the selected fine-tuning plan.
Run deterministic checkpoint pre-actions owned by the backend.
Ask the user only for fields that remain absent or ambiguous.
Do not use a template value, nearby directory, historical run, checkpoint mtime, or filename convention as an additional source.
Fingerprint-locked evaluator profiles
The packaged profiles below were verified by full-split evaluation and are selected only when the single validation annotation SHA256 matches exactly. All use maximum 1,024 generated tokens, temperature zero, repetition penalty one, and zero presence/frequency penalties.
| Annotation SHA256 | Profile | Answer/batch/seed |
|---|---|---|
c33afc26f979cbdb488b8f1aefdc65604992cd7552d5e75ea782e4565fdc21e1 | VALIDATION_C33AFC26 | letter / 1 / 42 |
6a30babb1921af59155dfe45cf766465597b57cafa1e0e83663a159d89289b6a | VALIDATION_6A30BABB | freeform / 1 / 42 |
f828a63f1bbdd45197e1f3393fb94f76ebfdfc785402617aa8c1397b0b47c555 | VALIDATION_F828A63F | letter / 1 / 42 |
f120ca66f28e3e5b5a01a3ace93d16c856cf13098faf61b44263a4afc449c709 | PEFT_HPO_VALIDATION_F120CA66 | freeform / 8 / 1 |
The runtime implementation is backend-owned: Cosmos-RL retains strict
pynvvideocodec; Framework uses its sealed
torchcodec-cuda-on-demand profile. Report that identity separately from the
protocol anchor.
Never activate this profile from a filename, directory, record count, or only part of its metadata. Explicit current-run overrides remain authoritative and their provenance must replace the packaged value in the evaluation plan.
Inherit from fine-tuning
For the original validation split, inherit these without asking again:
annotation manifest, media root, and dataset fingerprint;
system prompt, including an explicitly empty prompt;
complete frame-sampling, clip-time, resize, and pixel-budget configuration, plus precision, seed, and validation batch size;
training sequence limit and evaluator tensor-parallel degree (one model replica per rank);
task/answer/metric semantics when validation inspection proved them;
backend, training mode, base-model identity/fingerprint, and GPU count;
dense versus PEFT behavior and the prepared base model required to merge a Cosmos-RL adapter.
The fine-tuning planner stores these in evaluation_contract. Dataset
inspection stores evaluation_profile, including task semantics, declared
metrics, answer type, normalization version, and any fields that could not be
inferred safely.
Ask only when unresolved
Prompt once for the remaining fields reported in
required_user_inputs. Common cases are:
the new user-owned evaluation results directory;
exact checkpoint or checkpoint epoch when more than one checkpoint event is present and the training plan did not record a selection;
generation maximum tokens, because it is not a fine-tuning parameter;
maximum video pixels when a non-Nano training plan did not record a usable budget. For Nano, a sealed native default remains an omitted evaluator override so preprocessing does not silently change;
task type or metric names when annotation targets/metadata were ambiguous;
exact annotation and media paths when evaluating a different corpus.
An empty system prompt is valid. The flow must distinguish “recorded empty” or “user supplied empty” from “missing”. For a different evaluation corpus, fingerprint and inspect that exact manifest/media pair on the selected compute frame before launch; do not inherit the old dataset's prompt or scoring semantics automatically.
Resolver usage
First run with the selected training artifacts and whatever evaluation inputs are already known:
python scripts/evaluation_workflow.py \
--training-plan <sealed-training-plan.json> \
--training-status <structured-training-status.json-or-jsonl> \
--results-dir <new-evaluation-results-dir> \
--plan-output <evaluation-plan.json> \
--config-output <evaluation.toml>Exit code 3 means the JSON plan was written but contains unresolved intake or
an automated pre-action. Ask only for entries in required_user_inputs; do
not ask for entries in automated_actions. Multiple recorded validation
manifests/media roots are an automated deterministic materialization step, not
a reason to ask the user to select a subset; preserve the sealed fingerprint
and full validation selection. Rerun with user inputs such as
--checkpoint-epoch, --checkpoint, --generation-max-tokens,
--evaluation-batch-size, --evaluation-seed,
--max-video-pixels,
--task-type, --answer-type, --metric, --validation-annotation, or
--validation-media-root.
The plan and TOML contain SHA256 values. Persist both in the evaluation job record. Validate all inherited fingerprints and paths from the target compute frame before submit.
Exact checkpoint selection
Use a checkpoint recorded by the selected training job. A single structured checkpoint event is unambiguous. With multiple events, require an exact path, an exact epoch, or a checkpoint selection already sealed in the training plan. Never choose “latest” by directory order or mtime. Require terminal successful training status before consuming a checkpoint.
For Cosmos-RL, a status event normally names the native
checkpoints/epoch_N/policy artifact. That path is never evaluator-loadable.
Run scripts/cosmos_rl_checkpoint_action.py on the target compute frame; it
derives and validates the exact sibling safetensors/epoch_N export and emits
a binding manifest with path, size, and SHA256 for every config, index, shard,
or adapter file. Rerun the resolver with both --action-model-path and
--action-model-manifest. A missing, truncated, wrong-epoch, or wrong-kind
export blocks launch automatically and is not a user question.
Each emitted checkpoint pre-action carries its checksum-closed
supporting_files; the selected platform stages that declared set directly.
For Cosmos-RL dense training, the verified HF export becomes
model.model_name. For Cosmos-RL PEFT, the verified adapter becomes
model.model_name, model.enable_lora=true, and
model.base_model_path is inherited from the fine-tuning model-preparation
record. Do not ask the user to repeat that base-model path.
Framework DCP pre-action
When backend=cosmos-framework, never pass native DCP directly to the shared
evaluator and never ask the user to export it. evaluation_workflow.py emits a
framework_checkpoint_pre_action entry. Run
scripts/framework_checkpoint_action.py plan, then prepare in the clean
repository-derived Framework action image. The helper validates the saved
Framework config, DCP metadata, base-model identity/revision, exact exported
keys, indexed weights, and export manifest. Run verify from the target
compute frame and pass its action_model_path and terminal action JSON back to
evaluation_workflow.py --action-model-path ... --action-model-manifest ....
Framework PEFT is reconstructed and merged by the native exporter, so the
shared evaluation config keeps model.enable_lora=false. Export failure or
provenance mismatch blocks evaluation; it never selects another checkpoint or
export.
Task and metric semantics
The generic evaluator supports structurally detected conversation and
task-aware records. Validation inspection classifies complete yes/no
targets as binary and complete A-through-D targets as multiple choice.
Explicit task metadata such as bcq, binary, binary_choice, mcq, and
multiple_choice is canonicalized to the repository evaluator semantics.
Ambiguous A/B targets require the user to choose binary or multiple choice.
Accuracy-defined tasks use the shared task-aware scorer and metrics.names=[].
Generative tasks use only metrics declared by the annotation metadata or
explicitly selected by the user. Do not turn text metrics on for a
classification task, and do not relabel generation NLL or validation loss as
answer accuracy.
Preserve the resolved prompt, frame sampling, pixel budget, generation, parsing, normalization, and evaluator version in metadata. Report the final metric emitted by the repository evaluator, including correct/total and per-task values when it provides them.
Decoder and execution
Keep decoder contracts isolated by backend. Cosmos-RL retains its strict
pynvvideocodec path and any validated override artifact. Framework inherits
the sealed torchcodec-cuda-on-demand cache/thread/device profile and requires
an explicit min_pixels=max_pixels bound when the sealed maximum is present,
so Qwen preserves that lower Framework pixel budget for predecoded frames
instead of rejecting it against its larger runtime default minimum. This
normalization is Framework-only; it does not change Cosmos-RL's registered
reader normalization. Framework also requires
the selected SQSH to attest the Framework preprocessing implementation before
the evaluator child starts. Never copy one backend's decoder settings into the
other, invent FPS metadata, rewrite annotations, or silently fall back to CPU
decoding.
Use torchrun data parallelism according to the resolved GPU count. Keep one
model replica per rank unless the selected backend contract explicitly
requires another topology. Full evaluation uses limit=-1; the repository
evaluator owns its rank-aware outputs and scoring.
The READY evaluation plan contains a validated spec_bundle. Its
execution lifecycle owns backend CLI selection, non-secret runtime
environment, and Framework in-image capability attestation. It does not add a
post-evaluation prediction-ID, annotation-envelope, or rank-shard gate after
the evaluator returns its metric.
Pass that bundle unchanged to the selected platform. On SLURM,
tao-run-on-slurm owns the standard template, persistent results mount,
job-record placeholder binding, distributed rendezvous, no-requeue/exclusive
directives, timeout, and child-exit propagation. Do not create a Cosmos-only
SLURM renderer, copy these semantics into an application skill, or treat
per-rank shards as a complete evaluation.
Run scripts/framework_evaluation_image_preflight.py against a selected
Framework SQSH before opening/submitting the evaluation record. A missing
baked Framework preprocessor is an immutable-image incompatibility, not a
reason to stage source or select Cosmos-RL.
Completion and results
Treat scheduler completion as provisional. Require child exit zero, terminal
TAO SUCCESS, and the final metric emitted by the repository evaluator. Do not
turn a successful evaluation into a failure by comparing prediction IDs with
annotation IDs or by imposing a second annotation-format assumption.
Persist the selected checkpoint, Framework export when applicable, resolved
config and SHA256, evaluation plan and provenance, stdout/stderr, status,
results, any emitted per-task metrics, normalization/evaluator version, and
duration in the job record.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Declares allowed tools, Needs Python, Needs Node.js
The author says: Requires Python 3.11+ with PyYAML and a supported container execution platform; SLURM runs additionally require SSH, sbatch/srun, Pyxis/Enroot, and shared storage.
Security
What our scanner noticed· Medium risk
- Large base64-encoded blobs
- Scripts that your agent may run
This skill includes scripts that your agent may run. Read them before you use it.
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- NVIDIA Corporation
- Publisher
- NVIDIA (Official)
- Source
- NVIDIA/skills · skills/tao-finetune-cosmos-reason · commit fce3cca
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE-APACHE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by NVIDIA Corporation or NVIDIA.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download tao-finetune-cosmos-reason.zip