[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CQC6R6V35CMA9RHDYVBXNZ":3,"skill-same:01M7CQC6R6V35CMA9RHDYVBXNZ":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M7CQC6R6V35CMA9RHDYVBXNZ","tao-finetune-cosmos-reason",null,"Cosmos3-Nano video QA supervised fine-tuning with FSDP parallelism. Use when training or evaluating video question-answering models, fine-tuning Cosmos3-Nano or compatible Cosmos Reason models with SFT\u002FLoRA, or working with Cosmos-RL. Trigger phrases include \"fine-tune Cosmos\", \"Cosmos3 Nano Reasoner\", \"Cosmos-RL SFT\", \"video QA fine-tune\", \"Cosmos3-Nano training\".","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fnvidia-skills\u002Ftao-finetune-cosmos-reason\u002Fskills\u002Ftao-finetune-cosmos-reason\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tao-finetune-cosmos-reason\ndescription: Cosmos3-Nano video QA supervised fine-tuning with FSDP parallelism. Use when training or evaluating video\n  question-answering models, fine-tuning Cosmos3-Nano or compatible Cosmos Reason models with SFT\u002FLoRA, or working with\n  Cosmos-RL. Trigger phrases include \"fine-tune Cosmos\", \"Cosmos3 Nano Reasoner\", \"Cosmos-RL SFT\",\n  \"video QA fine-tune\", \"Cosmos3-Nano training\".\nlicense: Apache-2.0\ncompatibility: Requires docker + nvidia-container-toolkit.\nmetadata:\n  author: NVIDIA Corporation\n  version: \"0.1.0\"\nallowed-tools: Read Bash\ntags:\n- video\n- qa\n- cosmos\n- sft\n- reasoning\n- vlm\n---\n\n# Cosmos-RL\n\nSupervised fine-tuning (SFT) of Cosmos Reason video QA models. The packaged\ndefault base model is **hf_model:\u002F\u002Fnvidia\u002FCosmos3-Nano**. Pretrained weights\nare sourced from HuggingFace, not NGC. Gated HuggingFace models require\n`HF_TOKEN`. Some Cosmos-RL images cannot load the native Cosmos3 Omni checkpoint\nformat directly; for those images, convert Cosmos3-Nano to a Qwen3-VL HF\nsafetensors directory before train\u002Fevaluate and use that converted directory as\nthe PTM path.\n\nUses FSDP-based parallelism with `dp_shard_size` for GPU count and `dp_replicate_size` for node count (not the standard `num_gpus`\u002F`num_nodes`).\n\nRequests for \"Cosmos Reason 3\", \"Cosmos3 Nano Reasoner\", or\n`nvidia\u002FCosmos3-Nano` are handled by this skill. There is no separate Cosmos3\nmodel directory in the skill bank; route those requests here. Override the base\nHuggingFace model only when the user explicitly asks for a different model.\n\nDeep detail lives in references; load the smallest one that matches the task:\n\n- `references\u002Fcosmos-reason-launch.md` — launch intake, preflight, per-action dataset requirements, spec construction, typical overrides.\n- `references\u002Fcosmos-reason-evaluate.md` — evaluate (flat TOML, task types, LoRA eval, selective download, results) and datasets.\n- `references\u002Fcosmos-reason-automl.md` — AutoML\u002FHPO policy and search-space guidance.\n- `references\u002Fcosmos-reason-parameters.md` — important parameters, hardware, error patterns, DEFT\u002Fgap analysis, parent-model inference mappings.\n\n## Dataclass Schemas\n\nGenerated TAO Core schemas are packaged in `schemas\u002F\u003Caction>.schema.json`, with `schemas\u002Fmanifest.json` listing available actions. Each generated schema also emits `references\u002Fspec_template_\u003Caction>.yaml` from the schema top-level `default` field. AutoML enablement is declared at the model layer in `references\u002Fskill_info.yaml` via `automl_enabled`. Runnable AutoML still requires `schemas\u002Ftrain.schema.json` and `references\u002Fspec_template_train.yaml` to exist and parse. Use the packaged train schema for `automl_default_parameters`, `automl_disabled_parameters`, defaults, min\u002Fmax bounds, enums, option weights, math conditions, dependencies, and popular parameters. Do not expect `~\u002Ftao-core` at runtime; maintainers regenerate schemas\u002Ftemplates before packaging the skill bank.\n\n## Train Action Policy\n\nThis model is AutoML-enabled at the model layer. Before handling any train-stage request, read `references\u002Fskill_info.yaml` and resolve the run override from either an explicit `automl_policy` value or the user's workflow request. Use `automl_policy: on` by default and only expose `on` \u002F `off` in new launch prompts. Treat phrases like \"turn off AutoML\", \"disable AutoML\", \"no HPO\", or \"plain training\" as `automl_policy: off` for this run only. When `automl_policy: on`, `automl_enabled: true`, and both `schemas\u002Ftrain.schema.json` and `references\u002Fspec_template_train.yaml` are packaged, route the train action through `tao-skill-bank:tao-run-automl` by default with this model's `skill_dir`. Preserve workflow\u002Fapplication overrides for datasets, specs, output directories, GPU\u002Fplatform settings, parent checkpoints, and `automl_policy`. Use direct model training only when `automl_policy: off` or the packaged train schema\u002Ftemplate is missing; in the missing-schema case, report that AutoML is enabled but not runnable for this model until schemas are generated.\n\nNon-train actions such as `evaluate`, `inference`, and `quantize` stay in this model skill. The per-run `automl_policy` override does not change model metadata.\n\n## Credentials\n\n- **HF_TOKEN** (required for gated models): HuggingFace access token. For the\n  packaged default, the user must accept the model agreement at\n  \u003Chttps:\u002F\u002Fhuggingface.co\u002Fnvidia\u002FCosmos3-Nano> and provide a token with read\n  access. If the user explicitly overrides the base model, they must accept\n  that target model's agreement too. Passed to the container as a\n  `docker_env_var`.\n\n## Cosmos3 Checkpoint Conversion\n\nWhen a selected image cannot load the native Cosmos3 checkpoint format\n(`model_type=\"cosmos3_omni\"` or `Cosmos3ForConditionalGeneration`), do not patch\nQwenVL, Transformers, or vLLM first. Use the upstream Cosmos Framework VLM\nconversion path to produce a Qwen3-VL HF safetensors directory, then point\nCosmos-RL specs at that converted directory.\n\nThe model skill packages a helper:\n\n```bash\npython skills\u002Fmodels\u002Ftao-finetune-cosmos-reason\u002Fscripts\u002Fprepare_cosmos3_vlm_checkpoint.py \\\n  --checkpoint-path \u002Fabs\u002Fpath\u002FCosmos3-Nano \\\n  --output-path \u002Fabs\u002Fpath\u002FCosmos3-Nano-VLM \\\n  --secrets-env ~\u002F.tao\u002Fsecrets.env \\\n  --validate-with-image \u003Ccosmos-rl-image>\n```\n\nAfter conversion, use the converted directory consistently as the PTM:\n\n```text\ntrain:    policy.model_name_or_path=\u002Fabs\u002Fpath\u002FCosmos3-Nano-VLM\nevaluate: model.model_name=\u002Fabs\u002Fpath\u002FCosmos3-Nano-VLM\nevaluate: model.base_model_path=\u002Fabs\u002Fpath\u002FCosmos3-Nano-VLM\n```\n\nFor local Docker, mount the converted directory read-only into the Cosmos-RL\ncontainer and set the spec to the container path. If a converted copy already\nexists and validates, reuse it for PTM baseline evaluation, AutoML\nrecommendations, and final best-checkpoint evaluation rather than converting\nagain.\n\n## Training Requirements\n\n- **Dataset type:** vlm\n- **Formats:** llava, daft\n- **Accepted dataset intents:** training, evaluation, testing\n- **Monitoring metric:** val\u002Favg_loss, val\u002Freward_avg, val\u002Floss\n- **Dataset URI examples:** `s3:\u002F\u002Fbucket\u002Fcosmos\u002Ftrain`, `s3:\u002F\u002Fbucket\u002Fcosmos\u002Feval`, `\u002Flustre\u002Ffsw\u002Ftao_datasets\u002Fcosmos_rl\u002Ftrain`, `\u002Flustre\u002Ffsw\u002Ftao_datasets\u002Fcosmos_rl\u002Feval`\n- **Input modes:** accept either dataset roots or direct spec-key paths. Root mode maps `\u003Croot>\u002Fannotations.json` plus `\u003Croot>` as the media path. Direct spec mode is valid when annotations and media live in different locations, for example `custom.train_dataset.annotation_path=\u002Flustre\u002F...\u002Ftrain.json` and `custom.train_dataset.media_path=\u002Flustre\u002F...\u002Fvideos.tar.gz`.\n- **Media handling:** do not ask the user to choose `videos.tar.gz` vs `images.tar.gz` unless they are using direct spec mode or the model\u002Faction requires a single media archive. In root mode, pass the dataset root as the media path.\n- **Annotation validation:** before launching train\u002FAutoML\u002Fevaluate, verify the\n  annotation JSON is readable and the referenced media path or archive is\n  visible from the selected platform. Do not block, patch, or mutate\n  annotations solely because optional fields are absent.\n- **Per-record video FPS:** the packaged train template uses\n  `custom.vision.nframes`, so per-record `video_fps` is not required by\n  default. If the user switches to `custom.vision.fps`, selects a dataset\n  profile that requires per-record timing, or uses an image\u002Fversion that\n  requires `video_fps`, make it a preflight requirement with\n  `--json-required-field train_annotation=video_fps` and\n  `--json-required-field val_annotation=video_fps` before any download or\n  job launch.\n\n## Spec construction\n\ncosmos-rl is `mode: config`. **Always start from the packaged\n`references\u002Fspec_template_\u003Caction>.yaml` for the requested action** — load it\nas your base spec via `yaml.safe_load(...)` and apply user overrides on top.\nDon't rebuild from scratch.\n\n```python\nimport yaml\nfrom pathlib import Path\n\nskill = Path.home() \u002F \"tao-sdk\u002Ftao-skills-external\u002Fskills\u002Fmodels\u002Ftao-finetune-cosmos-reason\"\naction = \"train\"  # train, evaluate, inference, or quantize\nspecs = yaml.safe_load((skill \u002F f\"references\u002Fspec_template_{action}.yaml\").read_text())\n# Now apply your overrides on top of `specs`.\n```\n\nThe reference TOML (and the spec the model actually consumes) is **nested\ndicts**, not flat dotted keys. Dotted notation in override examples denotes\n*paths into the nested spec* — walk the path and assign at the leaf. See\n`skills\u002Fplatform\u002Ftao-run-platform\u002FSKILL.md`'s \"spec is nested dicts\" callout.\nData source overrides are **mandatory for every action**.\n\nThe packaged template keeps `custom.vision.nframes=8` for bounded 1-GPU memory;\nswitch to `fps` only after checking token budget and GPU memory, and delete\n`custom.vision.nframes` from the spec when you do.\n\nSee `references\u002Fcosmos-reason-launch.md` for launch intake, the full\n`check_tao_launch_preflight.py` slurm\u002Flocal-Docker examples, the\n`video_fps` preflight example, S3 staging, the GPU resource\u002Farchitecture gate,\nthe per-action dataset requirements table, the `\u002Fworkspace` mount caveat,\nthe quantize compatibility shim, and the full typical-overrides list.\n\n## Critical Overrides (Train)\n\nThese are the keys whose template defaults are wrong or where omission flips the run into a different mode:\n\n| Parameter | Template Default | Required Value | Why |\n|---|---|---|---|\n| `policy.model_name_or_path` | `hf_model:\u002F\u002Fnvidia\u002FCosmos3-Nano` | Direct Docker: `nvidia\u002FCosmos3-Nano`, `hf_model:\u002F\u002Fnvidia\u002FCosmos3-Nano`, or a local HF snapshot path. SDK\u002Fmanaged platform predownload: `hf_model:\u002F\u002Fnvidia\u002FCosmos3-Nano`. | Keep the train and evaluate base model aligned. |\n| `policy.model_max_length` | 40960 | Keep at 40960 or higher | Smaller than ~40k causes `vision_embeds` shape mismatch on video inputs |\n| `train.train_batch_per_replica` | 32 | Any multiple of `train.train_policy.mini_batch` | Mismatch raises an immediate AssertionError |\n| `train.train_policy.type` | `\"sft\"` | Keep as `\"sft\"` for SFT workflows | If dropped during agent regeneration, cosmos-rl flips to RL mode → rollout replica allocated → multi-node attempted → hostname errors when `num_nodes=1` |\n\n## Evaluate\n\nThe evaluator reads a flat TOML config (`dataset`, `model`, `task`,\n`evaluation`, `vision`, `generation`, `metrics`, `results`, `num_gpus`,\n`results_dir`); the `actions.evaluate` block in `references\u002Fskill_info.yaml`\ndeclares inputs and outputs. See `references\u002Fcosmos-reason-evaluate.md` for the\nflat-TOML config detail, task types (`\"\"` General Evaluator vs\n`\"its_directionality\"`), LoRA evaluation via spec_overrides, selective download,\nresults\u002Fmetrics, and the datasets section.\n\n## AutoML \u002F HPO Notes\n\nThe packaged default base model is `hf_model:\u002F\u002Fnvidia\u002FCosmos3-Nano`; apply it\nconsistently to train (`policy.model_name_or_path`) and post-training evaluation\n(`model.base_model_path`) unless the user provides a different model. See\n`references\u002Fcosmos-reason-automl.md` for accuracy-vs-`val\u002Favg_loss` objective\nselection, the `eval_fn` per-recommendation evaluate flow, the knob mapping\n(learning rate, batch size, epochs, weight decay, warmup ratio), example\n`custom_param_ranges`, `train_sample_count` batch-size capping,\n`ordered_int` requirements, and the pre-launch recommendation summary.\n\n## Parameters, Hardware, Errors, DEFT, Inference\n\nFor parallelism, set `policy.parallelism.dp_shard_size` = GPUs per node and\n`policy.parallelism.dp_replicate_size` = node count (1 for single node).\nCosmos-RL handles distributed init internally via FSDP and does not rely on\nplatform-level `MASTER_ADDR`\u002F`WORLD_SIZE`; submit with\n`gpu_count=\u003Cgpus_per_node>` and `num_nodes=\u003CN>` and the spec keys drive\nsharding. Cosmos-RL models are 8B parameters; recommended 8x A100 or H100\n(80GB each).\n\nSee `references\u002Fcosmos-reason-parameters.md` for important parameters (training\nloop, model\u002Fpolicy, parallelism incl. multi-node FSDP, optimization, vision\nencoders, checkpointing incl. the `best` symlink\u002F`epoch_*` resolution,\nvalidation, logging), hardware sizing, the full error-pattern catalog (CUDA OOM,\nLoRA-eval OOM, NaN loss, `vision_embeds` mismatch, quantize token mismatch,\nbatch-size divisibility and per-rank limits, stale cache, scheduler-None,\ngated-repo `HF_TOKEN`, GPU resource\u002Farchitecture gate, status-logging warnings),\nDEFT support and `scripts\u002Fanalyze_gaps.py` gap analysis, and the parent-model\ninference mapping table.\n","# Cosmos-RL\n\nSupervised fine-tuning (SFT) of Cosmos Reason video QA models. The packaged\ndefault base model is **hf_model:\u002F\u002Fnvidia\u002FCosmos3-Nano**. Pretrained weights\nare sourced from HuggingFace, not NGC. Gated HuggingFace models require\n`HF_TOKEN`. Some Cosmos-RL images cannot load the native Cosmos3 Omni checkpoint\nformat directly; for those images, convert Cosmos3-Nano to a Qwen3-VL HF\nsafetensors directory before train\u002Fevaluate and use that converted directory as\nthe PTM path.\n\nUses FSDP-based parallelism with `dp_shard_size` for GPU count and `dp_replicate_size` for node count (not the standard `num_gpus`\u002F`num_nodes`).\n\nRequests for \"Cosmos Reason 3\", \"Cosmos3 Nano Reasoner\", or\n`nvidia\u002FCosmos3-Nano` are handled by this skill. There is no separate Cosmos3\nmodel directory in the skill bank; route those requests here. Override the base\nHuggingFace model only when the user explicitly asks for a different model.\n\nDeep detail lives in references; load the smallest one that matches the task:\n\n- `references\u002Fcosmos-reason-launch.md` — launch intake, preflight, per-action dataset requirements, spec construction, typical overrides.\n- `references\u002Fcosmos-reason-evaluate.md` — evaluate (flat TOML, task types, LoRA eval, selective download, results) and datasets.\n- `references\u002Fcosmos-reason-automl.md` — AutoML\u002FHPO policy and search-space guidance.\n- `references\u002Fcosmos-reason-parameters.md` — important parameters, hardware, error patterns, DEFT\u002Fgap analysis, parent-model inference mappings.\n\n## Dataclass Schemas\n\nGenerated TAO Core schemas are packaged in `schemas\u002F\u003Caction>.schema.json`, with `schemas\u002Fmanifest.json` listing available actions. Each generated schema also emits `references\u002Fspec_template_\u003Caction>.yaml` from the schema top-level `default` field. AutoML enablement is declared at the model layer in `references\u002Fskill_info.yaml` via `automl_enabled`. Runnable AutoML still requires `schemas\u002Ftrain.schema.json` and `references\u002Fspec_template_train.yaml` to exist and parse. Use the packaged train schema for `automl_default_parameters`, `automl_disabled_parameters`, defaults, min\u002Fmax bounds, enums, option weights, math conditions, dependencies, and popular parameters. Do not expect `~\u002Ftao-core` at runtime; maintainers regenerate schemas\u002Ftemplates before packaging the skill bank.\n\n## Train Action Policy\n\nThis model is AutoML-enabled at the model layer. Before handling any train-stage request, read `references\u002Fskill_info.yaml` and resolve the run override from either an explicit `automl_policy` value or the user's workflow request. Use `automl_policy: on` by default and only expose `on` \u002F `off` in new launch prompts. Treat phrases like \"turn off AutoML\", \"disable AutoML\", \"no HPO\", or \"plain training\" as `automl_policy: off` for this run only. When `automl_policy: on`, `automl_enabled: true`, and both `schemas\u002Ftrain.schema.json` and `references\u002Fspec_template_train.yaml` are packaged, route the train action through `tao-skill-bank:tao-run-automl` by default with this model's `skill_dir`. Preserve workflow\u002Fapplication overrides for datasets, specs, output directories, GPU\u002Fplatform settings, parent checkpoints, and `automl_policy`. Use direct model training only when `automl_policy: off` or the packaged train schema\u002Ftemplate is missing; in the missing-schema case, report that AutoML is enabled but not runnable for this model until schemas are generated.\n\nNon-train actions such as `evaluate`, `inference`, and `quantize` stay in this model skill. The per-run `automl_policy` override does not change model metadata.\n\n## Credentials\n\n- **HF_TOKEN** (required for gated models): HuggingFace access token. For the\n  packaged default, the user must accept the model agreement at\n  \u003Chttps:\u002F\u002Fhuggingface.co\u002Fnvidia\u002FCosmos3-Nano> and provide a token with read\n  access. If the user explicitly overrides the base model, they must accept\n  that target model's agreement too. Passed to the container as a\n  `docker_env_var`.\n\n## Cosmos3 Checkpoint Conversion\n\nWhen a selected image cannot load the native Cosmos3 checkpoint format\n(`model_type=\"cosmos3_omni\"` or `Cosmos3ForConditionalGeneration`), do not patch\nQwenVL, Transformers, or vLLM first. Use the upstream Cosmos Framework VLM\nconversion path to produce a Qwen3-VL HF safetensors directory, then point\nCosmos-RL specs at that converted directory.\n\nThe model skill packages a helper:\n\n```bash\npython skills\u002Fmodels\u002Ftao-finetune-cosmos-reason\u002Fscripts\u002Fprepare_cosmos3_vlm_checkpoint.py \\\n  --checkpoint-path \u002Fabs\u002Fpath\u002FCosmos3-Nano \\\n  --output-path \u002Fabs\u002Fpath\u002FCosmos3-Nano-VLM \\\n  --secrets-env ~\u002F.tao\u002Fsecrets.env \\\n  --validate-with-image \u003Ccosmos-rl-image>\n```\n\nAfter conversion, use the converted directory consistently as the PTM:\n\n```text\ntrain:    policy.model_name_or_path=\u002Fabs\u002Fpath\u002FCosmos3-Nano-VLM\nevaluate: model.model_name=\u002Fabs\u002Fpath\u002FCosmos3-Nano-VLM\nevaluate: model.base_model_path=\u002Fabs\u002Fpath\u002FCosmos3-Nano-VLM\n```\n\nFor local Docker, mount the converted directory read-only into the Cosmos-RL\ncontainer and set the spec to the container path. If a converted copy already\nexists and validates, reuse it for PTM baseline evaluation, AutoML\nrecommendations, and final best-checkpoint evaluation rather than converting\nagain.\n\n## Training Requirements\n\n- **Dataset type:** vlm\n- **Formats:** llava, daft\n- **Accepted dataset intents:** training, evaluation, testing\n- **Monitoring metric:** val\u002Favg_loss, val\u002Freward_avg, val\u002Floss\n- **Dataset URI examples:** `s3:\u002F\u002Fbucket\u002Fcosmos\u002Ftrain`, `s3:\u002F\u002Fbucket\u002Fcosmos\u002Feval`, `\u002Flustre\u002Ffsw\u002Ftao_datasets\u002Fcosmos_rl\u002Ftrain`, `\u002Flustre\u002Ffsw\u002Ftao_datasets\u002Fcosmos_rl\u002Feval`\n- **Input modes:** accept either dataset roots or direct spec-key paths. Root mode maps `\u003Croot>\u002Fannotations.json` plus `\u003Croot>` as the media path. Direct spec mode is valid when annotations and media live in different locations, for example `custom.train_dataset.annotation_path=\u002Flustre\u002F...\u002Ftrain.json` and `custom.train_dataset.media_path=\u002Flustre\u002F...\u002Fvideos.tar.gz`.\n- **Media handling:** do not ask the user to choose `videos.tar.gz` vs `images.tar.gz` unless they are using direct spec mode or the model\u002Faction requires a single media archive. In root mode, pass the dataset root as the media path.\n- **Annotation validation:** before launching train\u002FAutoML\u002Fevaluate, verify the\n  annotation JSON is readable and the referenced media path or archive is\n  visible from the selected platform. Do not block, patch, or mutate\n  annotations solely because optional fields are absent.\n- **Per-record video FPS:** the packaged train template uses\n  `custom.vision.nframes`, so per-record `video_fps` is not required by\n  default. If the user switches to `custom.vision.fps`, selects a dataset\n  profile that requires per-record timing, or uses an image\u002Fversion that\n  requires `video_fps`, make it a preflight requirement with\n  `--json-required-field train_annotation=video_fps` and\n  `--json-required-field val_annotation=video_fps` before any download or\n  job launch.\n\n## Spec construction\n\ncosmos-rl is `mode: config`. **Always start from the packaged\n`references\u002Fspec_template_\u003Caction>.yaml` for the requested action** — load it\nas your base spec via `yaml.safe_load(...)` and apply user overrides on top.\nDon't rebuild from scratch.\n\n```python\nimport yaml\nfrom pathlib import Path\n\nskill = Path.home() \u002F \"tao-sdk\u002Ftao-skills-external\u002Fskills\u002Fmodels\u002Ftao-finetune-cosmos-reason\"\naction = \"train\"  # train, evaluate, inference, or quantize\nspecs = yaml.safe_load((skill \u002F f\"references\u002Fspec_template_{action}.yaml\").read_text())\n# Now apply your overrides on top of `specs`.\n```\n\nThe reference TOML (and the spec the model actually consumes) is **nested\ndicts**, not flat dotted keys. Dotted notation in override examples denotes\n*paths into the nested spec* — walk the path and assign at the leaf. See\n`skills\u002Fplatform\u002Ftao-run-platform\u002FSKILL.md`'s \"spec is nested dicts\" callout.\nData source overrides are **mandatory for every action**.\n\nThe packaged template keeps `custom.vision.nframes=8` for bounded 1-GPU memory;\nswitch to `fps` only after checking token budget and GPU memory, and delete\n`custom.vision.nframes` from the spec when you do.\n\nSee `references\u002Fcosmos-reason-launch.md` for launch intake, the full\n`check_tao_launch_preflight.py` slurm\u002Flocal-Docker examples, the\n`video_fps` preflight example, S3 staging, the GPU resource\u002Farchitecture gate,\nthe per-action dataset requirements table, the `\u002Fworkspace` mount caveat,\nthe quantize compatibility shim, and the full typical-overrides list.\n\n## Critical Overrides (Train)\n\nThese are the keys whose template defaults are wrong or where omission flips the run into a different mode:\n\n| Parameter | Template Default | Required Value | Why |\n|---|---|---|---|\n| `policy.model_name_or_path` | `hf_model:\u002F\u002Fnvidia\u002FCosmos3-Nano` | Direct Docker: `nvidia\u002FCosmos3-Nano`, `hf_model:\u002F\u002Fnvidia\u002FCosmos3-Nano`, or a local HF snapshot path. SDK\u002Fmanaged platform predownload: `hf_model:\u002F\u002Fnvidia\u002FCosmos3-Nano`. | Keep the train and evaluate base model aligned. |\n| `policy.model_max_length` | 40960 | Keep at 40960 or higher | Smaller than ~40k causes `vision_embeds` shape mismatch on video inputs |\n| `train.train_batch_per_replica` | 32 | Any multiple of `train.train_policy.mini_batch` | Mismatch raises an immediate AssertionError |\n| `train.train_policy.type` | `\"sft\"` | Keep as `\"sft\"` for SFT workflows | If dropped during agent regeneration, cosmos-rl flips to RL mode → rollout replica allocated → multi-node attempted → hostname errors when `num_nodes=1` |\n\n## Evaluate\n\nThe evaluator reads a flat TOML config (`dataset`, `model`, `task`,\n`evaluation`, `vision`, `generation`, `metrics`, `results`, `num_gpus`,\n`results_dir`); the `actions.evaluate` block in `references\u002Fskill_info.yaml`\ndeclares inputs and outputs. See `references\u002Fcosmos-reason-evaluate.md` for the\nflat-TOML config detail, task types (`\"\"` General Evaluator vs\n`\"its_directionality\"`), LoRA evaluation via spec_overrides, selective download,\nresults\u002Fmetrics, and the datasets section.\n\n## AutoML \u002F HPO Notes\n\nThe packaged default base model is `hf_model:\u002F\u002Fnvidia\u002FCosmos3-Nano`; apply it\nconsistently to train (`policy.model_name_or_path`) and post-training evaluation\n(`model.base_model_path`) unless the user provides a different model. See\n`references\u002Fcosmos-reason-automl.md` for accuracy-vs-`val\u002Favg_loss` objective\nselection, the `eval_fn` per-recommendation evaluate flow, the knob mapping\n(learning rate, batch size, epochs, weight decay, warmup ratio), example\n`custom_param_ranges`, `train_sample_count` batch-size capping,\n`ordered_int` requirements, and the pre-launch recommendation summary.\n\n## Parameters, Hardware, Errors, DEFT, Inference\n\nFor parallelism, set `policy.parallelism.dp_shard_size` = GPUs per node and\n`policy.parallelism.dp_replicate_size` = node count (1 for single node).\nCosmos-RL handles distributed init internally via FSDP and does not rely on\nplatform-level `MASTER_ADDR`\u002F`WORLD_SIZE`; submit with\n`gpu_count=\u003Cgpus_per_node>` and `num_nodes=\u003CN>` and the spec keys drive\nsharding. Cosmos-RL models are 8B parameters; recommended 8x A100 or H100\n(80GB each).\n\nSee `references\u002Fcosmos-reason-parameters.md` for important parameters (training\nloop, model\u002Fpolicy, parallelism incl. multi-node FSDP, optimization, vision\nencoders, checkpointing incl. the `best` symlink\u002F`epoch_*` resolution,\nvalidation, logging), hardware sizing, the full error-pattern catalog (CUDA OOM,\nLoRA-eval OOM, NaN loss, `vision_embeds` mismatch, quantize token mismatch,\nbatch-size divisibility and per-rank limits, stale cache, scheduler-None,\ngated-repo `HF_TOKEN`, GPU resource\u002Farchitecture gate, status-logging warnings),\nDEFT support and `scripts\u002Fanalyze_gaps.py` gap analysis, and the parent-model\ninference mapping table.\n",{"name":5,"tags":24,"license":15,"metadata":31,"description":7,"allowed-tools":34,"compatibility":35},[25,26,27,28,29,30],"video","qa","cosmos","sft","reasoning","vlm",{"author":32,"version":33},"NVIDIA Corporation","0.1.0","Read Bash","Requires docker + nvidia-container-toolkit.","main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fnvidia-skills\u002Ftao-finetune-cosmos-reason\u002Fskills\u002Ftao-finetune-cosmos-reason",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill tao-finetune-cosmos-reason",{"tool":50,"command":51},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill tao-finetune-cosmos-reason",{"tool":53,"command":54},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill tao-finetune-cosmos-reason","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fnvidia-skills\u002Ftao-finetune-cosmos-reason\u002Fskills\u002Ftao-finetune-cosmos-reason\u002FSKILL.md",true,[],[59,67,72,79,84,91],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":63,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":68,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":63,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":63,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":80,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":63,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":63,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":92,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":63,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]