Tao Run Deft Cr Its Mining
NVIDIAOfficialCreated by NVIDIA Corporation
- Skill
- Workflow
- Software development
- Apache-2.0
- Medium risk
- Has scripts
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The TAO Run DEFT CR ITS Mining skill provides an iterative, data-driven workflow to improve Cosmos-Reason binary video classification models. It focuses on identifying gaps in model performance through mining nearest neighbors from training datasets, refining the model, and evaluating improvements. The workflow manages the entire lifecycle, including baseline preparation, embedding generation, gap analysis, iterative training, and performance reporting.
What it does
- Validates workspace configuration and dataset integrity for DEFT runs.
- Prepares baseline Cosmos-Reason models through validation or conversion.
- Generates and manages embeddings for KPI and training datasets using Cosmos Embed.
- Performs automated gap analysis to identify weak samples in model predictions.
- Executes iterative training loops using mined nearest-neighbor data to improve accuracy.
- Generates comprehensive accuracy reports comparing baseline and iterative performance.
When to use it
- When you need to improve the accuracy of ITS Cosmos-Reason binary video classification models.
- When performing iterative refinement of Cosmos-RL models driven by gap analysis.
- When you need to identify and address specific classification failures using data mining.
- When managing a structured, multi-stage improvement loop for traffic-camera video datasets.
Advantages
- Automates complex multi-stage model improvement loops.
- Ensures consistent model preparation and evaluation across iterations.
- Provides clear visibility into performance gains via automated accuracy reporting.
- Supports flexible configuration for dataset paths, model checkpoints, and mining parameters.
Usage examples
- “Run the DEFT CR ITS mining workflow for my traffic-camera dataset.”
- The agent validates the workspace configuration, prepares the baseline model, initializes mining embeddings, and begins the iterative training loop as defined in the workflow.yaml.
- “Perform an iterative Cosmos-RL refinement based on gap analysis.”
- The agent executes the gap analysis stage, identifies weak samples, mines relevant training data, and triggers the training and evaluation cycle to improve the model.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/nvidia/tao-run-deft-cr-its-mining/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip tao-run-deft-cr-its-mining.zip -d .agents/skills
Documentation by NVIDIA Corporation
Skill: TAO Run DEFT CR ITS Mining
Prerequisites
Before preflight, follow references/host-prerequisites.md; use its selected DEFT_PYTHON for every bundled helper and stop if the dependency probe fails.
Bundled Resources
Resolve DEFT_SKILL_ROOT to the absolute directory containing this installed SKILL.md. The agent or plugin runtime resolves this path; it is not a user input. Invoke bundled helpers with "$DEFT_PYTHON" "$DEFT_SKILL_ROOT/scripts/<name>.py" .... Never require a skill-bank checkout or change the user's working directory to a repository root.
This workflow invokes tao-finetune-cosmos-embed, tao-analyze-gaps-vlm-bcq, tao-mine-nearest-neighbors, and the selected platform skill by registered skill name. Those skills own their credentials, actions, and bundled assets. Cosmos Reason is workflow-owned: resolve images.tao_toolkit.deft_cosmos_reason, generate TOMLs with this workflow's helpers and configured base templates, and submit the exact train/evaluate commands in references/mining-loop.md through the selected platform. The baseline-preparation stage reuses only tao-finetune-cosmos-reason's packaged Omni-to-Qwen3-VL conversion helper; do not invoke that model skill for planning, templates, action bundles, train/evaluate commands, or hook resolution.
User Inputs (DEFT Workspace and Workflow Configuration Yaml)
The user should provide a DEFT workspace absolute path that will be used for the entire run. This path should not be /workspace because that conflicts with the Cosmos Reason skills.
The layout of the DEFT workspace should be as follows:
<deft_workspace>/
├── data/
├── hf_cache/
├── model/
├── specs/
└── results/| Path | Purpose |
|---|---|
<deft_workspace>/data/ | User-provided KPI and training datasets, including LLaVA annotations and media directories. |
<deft_workspace>/hf_cache/ | Persistent Hugging Face cache used when workflow steps download or reuse HF models. |
<deft_workspace>/model/ | Local model/checkpoint inputs for the workflow, including the baseline Cosmos Reason checkpoint and any user-provided Cosmos Embed checkpoint. |
<deft_workspace>/specs/ | User-provided configuration files, including templates for Cosmos Reason train and evaluate, Cosmos Embed inference, and TAO Data Services mining. |
<deft_workspace>/results/ | All workflow-generated run artifacts, including state, logs, baseline evaluation, Cosmos Embed outputs, mining outputs, and iteration directories. |
Each workflow run writes under a run-specific directory inside <deft_workspace>/results/. If run.name is set in workflow.yaml, that exact value is used as the directory name; otherwise the workflow creates a timestamped directory. For example, run.name: deft_cr_its_mining_test writes baseline evaluation under <deft_workspace>/results/deft_cr_its_mining_test/baseline/evaluate.
The run directory layout is:
<deft_workspace>/results/<run_name_or_timestamp>/
├── workflow.yaml
├── deft_state.json
├── loop_log.jsonl
├── bcq_accuracy_report.md
├── bcq_accuracy_summary.json
├── baseline/
│ ├── model_preparation.json
│ └── evaluate/
│ └── bcq_accuracy_metrics.json
├── cosmos_embed_output/
│ ├── kpi/
│ └── train/
├── embedding_parquets/
│ ├── kpi/
│ │ └── embeddings.parquet
│ └── train/
│ └── embeddings.parquet
├── iter_1/
│ └── evaluate/
│ └── bcq_accuracy_metrics.json
├── iter_2/
└── ...workflow.yaml snapshots the run config. loop_log.jsonl is the append-only resume source, and every append refreshes deft_state.json. baseline/model_preparation.json records the prepared model and its provenance. Baseline and iteration evaluation directories contain metrics; the run-level reports compare them. cosmos_embed_output/ contains raw inference outputs, embedding_parquets/ contains fixed mining inputs, and each iter_<N>/ contains one loop iteration.
Workflow Configuration
There should be a file called <deft_workspace>/specs/workflow.yaml, which will be the high-level workflow config for the full DEFT run:
run:
name: null
max_iterations: 1
kpi_dataset:
annotations_path: /abs/path/to/deft_workspace/data/kpi/annotations.json
media_dir: /abs/path/to/deft_workspace/data/kpi/media
train_dataset:
annotations_path: /abs/path/to/deft_workspace/data/train/annotations.json
media_dir: /abs/path/to/deft_workspace/data/train/media
cosmos_reason:
baseline_model_path: /abs/path/to/deft_workspace/model/reasoner_checkpoint
base_evaluate_toml: /abs/path/to/deft_workspace/specs/cr_base_evaluate.toml
base_train_toml: /abs/path/to/deft_workspace/specs/cr_base_train.toml
continual_model: false
mining:
embeddings_spec_template: /abs/path/to/deft_workspace/specs/cosmos_embed_inference_template.yaml
embeddings_modality: both
cosmos_embed_checkpoint_path: null
embedding_parquets:
kpi: null
train: null
mining_spec_template: /abs/path/to/deft_workspace/specs/mining_spec_template.yaml
mine_unique_only: truerun, kpi_dataset, train_dataset, cosmos_reason, and mining are required. All configured paths should be absolute and inside <deft_workspace>. cosmos_reason.baseline_model_path is a local checkpoint directory whose config.json declares either qwen3_vl or cosmos3_omni; model preparation validates or converts it before any Cosmos-RL action. cosmos_reason.continual_model is optional and defaults to false; when false, every iteration trains from the prepared baseline checkpoint. mining.embeddings_modality selects KPI target modalities; train/source embeddings always contain both text and video. mining.mine_unique_only is optional and defaults to true; when true, previously mined train/source filepaths are filtered out before later mining runs.
Write all workflow outputs under <deft_workspace>/results; do not add another output root. When run.name is set, use <deft_workspace>/results/<run.name> and explain that baseline/, cosmos_embed_output/, embedding_parquets/, and iter_<N>/ are nested there. When it is null, create <deft_workspace>/results/run_<YYYYMMDD_HHMMSS> and record that path in deft_state.json so resume never recomputes it.
Before running any workflow stage, validate the config:
"$DEFT_PYTHON" "$DEFT_SKILL_ROOT/scripts/verify_workflow_yaml.py" \
--workspace "$WORKSPACE" \
--workflow-yaml "$WORKSPACE/specs/workflow.yaml"The validator requires all configured paths to exist inside <deft_workspace>, checks embeddings_modality, and verifies KPI/train LLaVA ids and media references. It reports the baseline model_type, rejects unsupported formats, and fully validates an existing Qwen3-VL baseline. It also requires positive Cosmos Embed GPU count. The optional Embed checkpoint may be null, a local workspace path, or an HF model id. Supplied KPI/train embedding Parquets must contain filepath, embedding, and modality; KPI must contain the selected modalities and train must contain both. Removed per-modality embedding fields are invalid. Each invoked skill still owns its mount behavior.
If the user does not provide custom Cosmos Reason or Cosmos Embed templates, copy $DEFT_SKILL_ROOT/assets/cr_base_evaluate.toml, $DEFT_SKILL_ROOT/assets/cr_base_train.toml, and $DEFT_SKILL_ROOT/assets/default_cosmos_embed_inference.yaml into <deft_workspace>/specs/. Use tao-mine-nearest-neighbors to copy its bundled assets/default_nearest_neighbors.yaml when the user does not provide a mining template. Point workflow.yaml at the workspace copies. The bundled Cosmos Embed template requests 8 GPUs; do not launch until preflight confirms the selected platform can satisfy that request, or the user approves a modified template.
Initialize a run once after validation:
"$DEFT_PYTHON" "$DEFT_SKILL_ROOT/scripts/initialize_workflow.py" \
--workspace "$WORKSPACE" \
--workflow-yaml "$WORKSPACE/specs/workflow.yaml"Use the printed run_dir as RUN_DIR for every later command. If run.name is null, never ask another preparation script to derive the run directory again; pass --run-dir "$RUN_DIR" so all stages write into the initialized run.
Do not use --force for an ordinary resume. It rewrites the state/config snapshot but intentionally leaves loop_log.jsonl and all stage artifacts in place. Use it only to repair the snapshot for the same run; choose a new run.name for a clean restart. Before resuming, run "$DEFT_PYTHON" "$DEFT_SKILL_ROOT/scripts/resume_position.py" --run-dir "$RUN_DIR" and continue from the reported stage.
Baseline Evaluation
Before preparing TOMLs, follow references/mining-loop.md#qwen3-vl-patch-embedding
for both base templates, including custom templates and resumed workspaces.
Prepare the baseline once before evaluation. Reuse a complete Qwen3-VL checkpoint or convert Cosmos3 Omni through the current model-skill contract, cache it under <deft_workspace>/model/prepared/, and validate it with the pinned runtime. Read references/cosmos-reason-model-preparation.md for this stage.
After its manifest records status: ready, evaluate the prepared path on KPI data and compute baseline/evaluate/bcq_accuracy_metrics.json. Use references/mining-loop.md for evaluation commands and logging.
Initialize Mining Embeddings
Initialize mining embeddings once before the DEFT iteration loop. The KPI and train datasets are fixed for the run, so their Cosmos Embed outputs are reusable across all iterations.
Use scripts/prepare_cosmos_embed_inference.py to prepare the Cosmos Embed inference specs from workflow.yaml. The KPI dataset requires the modality or modalities selected by mining.embeddings_modality; the train dataset always requires text and video. If the user provides a complete dataset Parquet under mining.embedding_parquets.kpi or .train, the preparation script stages it at $RUN_DIR/embedding_parquets/<dataset>/embeddings.parquet and generates no inference specs for that dataset. While staging, it remaps text embedding identifiers from the source run's question files to the current run's lookup by question content; embeddings and video identifiers are preserved. If the dataset value is null or omitted, the script generates every required modality spec for that dataset. Partial per-modality reuse is not supported. If mining.cosmos_embed_checkpoint_path is an absolute local path, the script uses it for generated specs. If it is a remote Hugging Face model id, with or without the hf_model:// prefix, the script downloads or reuses it under <deft_workspace>/hf_cache and writes the local downloaded checkpoint path into the generated inference specs. If the field is null, the script uses nvidia/Cosmos-Embed1-224p.
The script downloads remote HF checkpoints before Cosmos Embed runs because Cosmos Embed startup can race when inference.num_gpus > 1 and multiple workers try to download the same model at once. If both combined dataset Parquets are provided, the preparation script does not need the checkpoint and does not download it.
Use scripts/prepare_cosmos_embed_inference.py once. It prepares both the KPI dataset and the train dataset:
"$DEFT_PYTHON" "$DEFT_SKILL_ROOT/scripts/prepare_cosmos_embed_inference.py" \
--workspace "$WORKSPACE" \
--workflow-yaml "$WORKSPACE/specs/workflow.yaml" \
--run-dir "$RUN_DIR"The preparation script writes only the missing embedding specs under the initialized RUN_DIR. Initialization owns the $RUN_DIR/workflow.yaml snapshot; this stage does not derive a new run or overwrite that snapshot.
For each dataset without a supplied combined Parquet, the preparation script writes all required modality-specific inference specs under cosmos_embed_output/<dataset>/specs/, creates raw Cosmos Embed result directories, stages text questions as files for stable joins, and writes lookup.parquet. After inference, the conversion script gathers those separate modality outputs into one mining-facing file per dataset. Each row contains filepath, embedding, and modality:
$RUN_DIR/embedding_parquets/kpi/embeddings.parquet
$RUN_DIR/embedding_parquets/train/embeddings.parquetThe KPI parquet contains only the selected modality or modalities. The train parquet always contains both text and video rows.
Run Cosmos Embed Inference
Use tao-finetune-cosmos-embed for each generated inference spec. Follow the mandatory terminal-exit validation, permission repair, and conversion procedure in references/mining-loop.md. Do not run inference or conversion for a dataset whose combined Parquet was supplied during preparation.
The generated lookup Parquet uses annotation_id for the original LLaVA id and video_path for resolved media. Do not rename either column to video_id; that external field belongs to Cosmos Reason and gap-analysis records.
DEFT Mining Loop
Run iterations 1..run.max_iterations. The loop is mining-only: no PAIDF or generated-video branch runs in this skill. Before gap analysis, each iteration rewrites Cosmos Reason result video_id values from LLaVA annotation ids to resolved KPI video paths and stores the prepared predictions in the iteration's gaps/ directory. It then runs gap analysis, builds one selected-modality target parquet, mines it against the combined text/video train source in one tao-mine-nearest-neighbors run, converts mined rows to LLaVA annotations, merges annotations, trains Cosmos Reason, evaluates the trained checkpoint, computes that evaluation's BCQ accuracy metrics, and removes the resumable training checkpoints while preserving the exported safetensors. At loop termination, generate the run-level accuracy report and include its baseline/iteration table in the agent's final response. See references/mining-loop.md for exact commands and completion criteria.
Completion Criteria
| Stage | Complete when |
|---|---|
validate_workflow | verify_workflow_yaml.py exits successfully. |
initialize_workflow | $RUN_DIR/workflow.yaml and $RUN_DIR/deft_state.json exist. |
prepare_cosmos_reason_model | baseline/model_preparation.json records status=ready, a complete Qwen3-VL checkpoint, and successful pinned-runtime validation. |
baseline_evaluate | The evaluate job exits successfully, exactly one baseline results.json is found, and baseline/evaluate/bcq_accuracy_metrics.json exists. |
prepare_cosmos_embed_inference | Each dataset has a lookup parquet and either all required Cosmos Embed specs or a staged combined embedding Parquet. |
cosmos_embed | Every generated inference spec has a current completion_validation.json; exit 0 is accepted after output validation, while exit 130 additionally records a teardown warning. |
convert_embeddings | embedding_parquets/{kpi,train}/embeddings.parquet exist; train contains both modalities and KPI contains the selected modalities. |
gap_analysis | $RUN_DIR/iter_<N>/gaps/predictions.json exists and the container exits successfully. The workflow counts valid rows directly from kpi_gaps.jsonl; missing or empty output after successful completion means zero weak samples. |
prepare_nearest_neighbor_mining | One target parquet, optional filtered source parquet, and one nearest-neighbor spec exist. |
mine_nearest_neighbors | One mined-neighbor parquet and mining summary exist. |
record_mined_paths | When mine_unique_only is true, $RUN_DIR/mining/mined_paths_log.parquet exists; otherwise the stage is logged as skipped. |
prepare_cosmos_reason_train | Mined and accumulated LLaVA annotations plus train/specs/train.toml exist, with a positive expected optimizer-step count. |
train | The Cosmos Reason job reaches terminal success, reports at least one optimizer step, and has writable timestamped output and checkpoint directories. |
evaluate | Evaluation preparation finds the latest completed training checkpoint, the evaluation job exits successfully, exactly one iteration results.json is found, and its bcq_accuracy_metrics.json exists. |
cleanup_cosmos_reason_training | train/checkpoint_cleanup.json exists, raw checkpoint directories are gone, and its listed safetensors exports remain. |
loop_stop | Stop reason is logged and bcq_accuracy_report.md plus bcq_accuracy_summary.json compare the baseline with every completed iteration. |
Troubleshooting
Prediction id does not match an annotation: Confirm the evaluation used the same KPI annotations configured by kpi_dataset.annotations_path. Every Cosmos Reason result video_id must match a LLaVA annotation id or an already-resolved annotation video path.
Baseline model format is unsupported: Accept only complete qwen3_vl or local cosmos3_omni. For Omni, follow references/cosmos-reason-model-preparation.md; never pass the source directly to evaluation.
CUDA error 803 in Cosmos-RL: Follow the exact-image probe in references/mining-loop.md. A host that passes nvidia-smi may still load an incompatible image-bundled library. Use the verified launch environment; never mask this with CPU inference or relaxed video decoding.
No target embeddings matched: Check that gaps/predictions.json and gap-analysis video_id paths match the KPI LLaVA media paths used during embedding preparation. Text mode also requires the question text to match after removing <video> and trailing “Answer with yes or no.”
Mining compares visible symlink targets without rewriting inputs. For remote-only media, prepare on the execution host or use identical path spellings.
Mined neighbors do not join to train lookup: Confirm every mined filepath exists in embedding_parquets/train/embeddings.parquet. Its modality determines whether the path must match train lookup.parquet filepath for text or video_path for video.
Run directory looks nested under results/<run.name>: This is expected. run.name is the run directory name under <deft_workspace>/results; all baseline, embedding, and iteration artifacts are nested there.
Docker output permissions or Cosmos Reason status paths fail: Stop and follow the permission-repair and stage-local TAO status contracts in references/mining-loop.md.
Unparseable prediction count is nonzero: Report the count to the user and inspect the corresponding raw results.json responses. These predictions count as incorrect in accuracy and class recall; the metrics script does not silently drop them. An unparseable ground truth stops metric computation because the expected class is undefined.
Cosmos Reason reports No space left on device for /dev/shm/nccl-*: This is container shared memory, not ordinary disk capacity. For local Docker, run the Cosmos Reason action through tao-run-on-docker and require --shm-size=8g --ulimit memlock=-1 --ulimit stack=67108864. Confirm these flags in the submitted job before retrying. Other platforms must provide equivalent shared-memory and memlock settings.
Files
- ATTRIBUTION.mdAdded by AutoGineer948 B
- BENCHMARK.md8.5 KiB
- LICENSELicence file added by AutoGineer11.2 KiB
- SKILL.md19.7 KiB
- assets/cr_base_evaluate.toml554 B
- assets/cr_base_train.toml1.3 KiB
- assets/default_cosmos_embed_inference.yaml800 B
- config/skillspector-baseline.yaml2.6 KiB
- evals/evals.json3.3 KiB
- references/cosmos-reason-model-preparation.md4.0 KiB
- references/host-prerequisites.md1.8 KiB
- references/mining-loop.md32.2 KiB
- scripts/batch_cosmos_embed_text.pyScript10.5 KiB
- scripts/cleanup_cosmos_reason_training.pyScript5.1 KiB
- scripts/compute_bcq_accuracy_metrics.pyScript6.7 KiB
- scripts/cosmos_embed_outputs_to_parquet.pyScript7.1 KiB
- scripts/deft_python.shScript2.0 KiB
- scripts/find_cosmos_reason_results.pyScript856 B
- scripts/initialize_workflow.pyScript3.4 KiB
- scripts/log_stage.pyScript6.8 KiB
- scripts/native_process.pyScript9.5 KiB
- scripts/prepare_cosmos_embed_inference.pyScript16.0 KiB
- scripts/prepare_cosmos_reason_evaluate.pyScript5.8 KiB
- scripts/prepare_cosmos_reason_model.pyScript18.5 KiB
- scripts/prepare_cosmos_reason_train.pyScript15.7 KiB
- scripts/prepare_gap_analysis_predictions.pyScript6.1 KiB
- scripts/prepare_nearest_neighbor_mining.pyScript10.8 KiB
- scripts/record_mined_paths.pyScript2.5 KiB
- scripts/restore_docker_mount_permissions.pyScript4.0 KiB
- scripts/resume_position.pyScript7.2 KiB
- scripts/summarize_bcq_accuracy_metrics.pyScript4.6 KiB
- scripts/validate_cosmos_embed_output.pyScript10.2 KiB
- scripts/verify_workflow_yaml.pyScript11.3 KiB
- scripts/workflow_common.pyScript17.7 KiB
- skill-card.md4.9 KiB
- skill.oms.sig13.0 KiB
- tests/test_batch_process_lifecycle.pyScript14.1 KiB
- tests/test_cosmos_embed_batching.pyScript10.5 KiB
- tests/test_cosmos_embed_completion.pyScript8.1 KiB
- tests/test_host_dependencies.pyScript6.2 KiB
- tests/test_mining_media_paths.pyScript4.6 KiB
- tests/test_model_preparation.pyScript24.0 KiB
references/cosmos-reason-model-preparation.md
Cosmos Reason Baseline Model Preparation
Use this reference only for the prepare_cosmos_reason_model stage, after workflow validation and initialization and before baseline evaluation.
Contract
cosmos_reason.baseline_model_path is the source-model lineage and must point to a local checkpoint inside the DEFT workspace. The preparation stage inspects its config.json:
qwen3_vl: validate and reuse the source directory.cosmos3_omni: convert it to a complete Qwen3-VL safetensors checkpoint.any other
model_type: stop with an unsupported-format error.
The prepared checkpoint, not the raw Omni source, is used for baseline evaluation, iteration 1 training, and every non-continual iteration. A continual iteration after iteration 1 still uses the previous iteration checkpoint.
Inputs Owned By Other Skills
Resolve DEFT_COSMOS_REASON_IMAGE from images.tao_toolkit.deft_cosmos_reason in the installed skill bank's versions.yaml.
For an Omni source, first read and follow the current tao-finetune-cosmos-reason model-preparation contract. The pinned DEFT_COSMOS_REASON_IMAGE owns the Cosmos-RL preparation wrapper and its isolated Framework converter runtime. Inspect that exact local image and record its immutable ID or repo digest as DEFT_COSMOS_REASON_IMAGE_DIGEST. Do not select a second image, invent a digest, or invoke the Framework converter directly.
The workflow uses Qwen/Qwen3-VL-8B-Instruct as the Nano architecture donor. prepare_cosmos_reason_model.py resolves the requested donor revision to an immutable Hugging Face commit and records it. It passes HF_TOKEN or HUGGING_FACE_HUB_TOKEN by environment only when already set; never print or persist a token. Edge and Super require a separately validated architecture mapping and are not eligible for the Nano default.
Run
For an already-Qwen3-VL baseline:
"$DEFT_PYTHON" "$DEFT_SKILL_ROOT/scripts/prepare_cosmos_reason_model.py" \
--workspace "$WORKSPACE" \
--workflow-yaml "$WORKSPACE/specs/workflow.yaml" \
--run-dir "$RUN_DIR" \
--runtime-image "$DEFT_COSMOS_REASON_IMAGE" \
--runtime-image-digest "$DEFT_COSMOS_REASON_IMAGE_DIGEST"The same command handles a Cosmos3 Nano Omni baseline:
"$DEFT_PYTHON" "$DEFT_SKILL_ROOT/scripts/prepare_cosmos_reason_model.py" \
--workspace "$WORKSPACE" \
--workflow-yaml "$WORKSPACE/specs/workflow.yaml" \
--run-dir "$RUN_DIR" \
--runtime-image "$DEFT_COSMOS_REASON_IMAGE" \
--runtime-image-digest "$DEFT_COSMOS_REASON_IMAGE_DIGEST"The helper invokes the installed model skill's scripts/prepare_cosmos3_vlm_checkpoint.py with --backend cosmos-rl, the source and architecture inputs, the output/cache paths, and the exact runtime image and digest. That shared helper owns the packaged conversion entrypoint and its isolated converter runtime. Override --model-preparation-script only if the plugin runtime resolves that shared helper at a different absolute path.
Converted outputs are cached at <workspace>/model/prepared/<source-fingerprint16>/<conversion-fingerprint16>/prepared. The source fingerprint covers checkpoint metadata and safetensors contents; the conversion fingerprint covers the donor commit, Cosmos-RL backend, and runtime-image digest. Reuse requires a complete checkpoint and matching provenance. A stale or partial cache is replaced only at that exact deterministic target.
Completion And Logging
The stage validates config.json, tokenizer files, processor configuration, and either a complete single-file safetensors checkpoint or every shard referenced by its index. It then constructs the model from config inside DEFT_COSMOS_REASON_IMAGE without loading the full weights. Completion requires $RUN_DIR/baseline/model_preparation.json with status: ready and runtime_validation.status: passed.
Log the stage with iter-label=baseline, stage=prepare_cosmos_reason_model, and the manifest as its artifact. On failure, log the error and stop before creating the baseline evaluation TOML.
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
The author says: Requires Docker with NVIDIA Container Toolkit, Python 3.11 with venv/ensurepip, numpy, pandas, pyarrow, PyYAML, and huggingface_hub, plus the selected platform CLI.
Security
What our scanner noticed· Medium risk
- Large base64-encoded blobs
- Instructions that use the network
- 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-run-deft-cr-its-mining · 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-run-deft-cr-its-mining.zip