Install the "tao-train-mask2former" agent skill from https://github.com/NVIDIA/skills/tree/main/skills/tao-train-mask2former into .claude/skills/tao-train-mask2former/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tao-train-mask2former", then confirm the skill loads.
Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
skills CLI
$ npx skills add NVIDIA/skills --skill tao-train-mask2former -a codex
Project install goes to .agents/skills/; add -g for ~/.codex/skills/.
Install the "tao-train-mask2former" agent skill from https://github.com/NVIDIA/skills/tree/main/skills/tao-train-mask2former into .agents/skills/tao-train-mask2former/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tao-train-mask2former", then confirm the skill loads.
Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add NVIDIA/skills --skill tao-train-mask2former -a cursor
Project install goes to .agents/skills/; add -g for ~/.cursor/skills/.
Install the "tao-train-mask2former" agent skill from https://github.com/NVIDIA/skills/tree/main/skills/tao-train-mask2former into .cursor/skills/tao-train-mask2former/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tao-train-mask2former", then confirm the skill loads.
Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
skills CLI
$ npx skills add NVIDIA/skills --skill tao-train-mask2former -a gemini-cli
Project install goes to .agents/skills/; add -g for ~/.gemini/skills/.
Install the "tao-train-mask2former" agent skill from https://github.com/NVIDIA/skills/tree/main/skills/tao-train-mask2former into .gemini/skills/tao-train-mask2former/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tao-train-mask2former", then confirm the skill loads.
Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
skills CLI
$ npx skills add NVIDIA/skills --skill tao-train-mask2former -a github-copilot
Project install goes to .agents/skills/; add -g for ~/.copilot/skills/.
Install the "tao-train-mask2former" agent skill from https://github.com/NVIDIA/skills/tree/main/skills/tao-train-mask2former into .github/skills/tao-train-mask2former/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tao-train-mask2former", then confirm the skill loads.
GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add NVIDIA/skills --skill tao-train-mask2former -a opencode
OpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
Install the "tao-train-mask2former" agent skill from https://github.com/NVIDIA/skills/tree/main/skills/tao-train-mask2former into .opencode/skills/tao-train-mask2former/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tao-train-mask2former", then confirm the skill loads.
OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Facts
Skill name
tao-train-mask2former
GitHub stars
3.5k
Token cost
~5k tokens
SKILL.md length
1,483 words
Files
25 (incl. references)
Skills in repo
386
Repo updated
First seen
Licence
Apache-2.0
At a glance
Mask2Former for universal image segmentation (panoptic, instance, and semantic).
Running inference for a TAO Mask2Former model
SKILL.md covers Dataclass Schemas, Train Action Policy, Training Requirements and Eval Dataset, plus 7 more sections
Reaches github.com
Phrases include train Mask2Former
What it does
Tao Train Mask2former is an agent skill from NVIDIA/skills, published by the product's own GitHub organization. Mask2Former for universal image segmentation (panoptic, instance, and semantic). Transformer-based with masked attention for high-quality segmentation results. Use when training, evaluating, exporting, quantizing, or running inference for a TAO Mask2Former model. Trigger phrases include "train Mask2Former", "universal segmentation", "panoptic / instance / semantic segmentation", "masked-attention transformer segmenter".
Its SKILL.md is about 5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 28 other files, including reference files (for example `BENCHMARK.md`, `config/skillspector-baseline.yaml` and `evals/evals.json`). Compatibility notes: Requires docker + nvidia-container-toolkit.
It sits in AI & LLM Engineering. It works with NVIDIA AI Platform. The repository describes itself as: Agent Skills for NVIDIA products — install into Claude Code, Codex, and other coding agents to run Physical AI, robotics, simulation, CUDA, and RAG workflows end to end. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit dfdd080. It shows what the files ask for, not the result of running them.
Tool permissions
Pre-approves these tools, so the agent can use them without asking each time:
Read
Bash
From allowed-tools in the SKILL.md frontmatter.
Runs code
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
Network
Hosts in commands or code, which the agent is likely to contact:
github.com
From URLs in SKILL.md, links to its own repository left out.
Credentials
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Compatibility
Requires docker + nvidia-container-toolkit.
From compatibility in the SKILL.md frontmatter.
Context cost
Tao Train Mask2former loads about 5k tokens when it runs, and up to ~16k if it reads all its reference files. Until then it costs about 111 tokens; SKILL.md has 1,483 words of instructions outside code blocks.
Always· name and description, kept in context so the agent knows when to use it
~111
When it runs· the whole SKILL.md, loaded when a task matches
~5k
With references· SKILL.md plus every file in references/, read only if the agent opens them
~16k
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
Safety
Auto-check: notes
The automated check noted patterns worth knowing about, such as sudo or a known installer.
NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
allowed-tools: Read, Bash
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
Download SKILL.mdSave it as .claude/skills/tao-train-mask2former/SKILL.md (or your agent's skills folder). This skill also uses 24 other files; get the full folder from GitHub.
name
tao-train-mask2former
description
Mask2Former for universal image segmentation (panoptic, instance, and semantic). Transformer-based with masked attention for high-quality segmentation results. Use when training, evaluating, exporting, quantizing, or running inference for a TAO Mask2Former model. Trigger phrases include "train Mask2Former", "universal segmentation", "panoptic / instance / semantic segmentation", "masked-attention transformer segmenter".
allowed-tools
Read, Bash
compatibility
Requires docker + nvidia-container-toolkit.
license
Apache-2.0
metadata.version
0.1.0
metadata.author
NVIDIA Corporation
tags
segmentation
Mask2Former
Standalone install? If this session was not initialized by the TAO skill bank plugin, run the tao-setup skill first (host preflight, credentials, cross-skill discovery).
Mask2Former for universal image segmentation (panoptic, instance, and semantic). Transformer-based with masked attention for high-quality segmentation results.
Set model.backbone.pretrained_weights for Swin backbone weights.
For TAO Deploy TensorRT actions (gen_trt_engine, TensorRT evaluate, and TensorRT inference), read references/tao-deploy-mask2former.md first. Deploy spec templates live in this skill's references/ folder with the spec_template_deploy_*.yaml prefix.
Dataclass Schemas
Generated TAO Core schemas are packaged in schemas/<action>.schema.json, with schemas/manifest.json listing available actions. Each generated schema also emits references/spec_template_<action>.yaml from the schema top-level default field. AutoML enablement is declared at the model layer in references/skill_info.yaml via automl_enabled. Runnable AutoML for an action requires schemas/<action>.schema.json and references/spec_template_<action>.yaml to exist and parse. Use the packaged selected-action schema for automl_default_parameters, automl_disabled_parameters, defaults, min/max bounds, enums, option weights, math conditions, dependencies, and popular parameters. Do not expect ~/tao-core at runtime; maintainers regenerate schemas/templates before packaging the skill bank.
Train Action Policy
This model is AutoML-enabled at the model layer. Before handling any train-stage request, read references/skill_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 / 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/train.schema.json and references/spec_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/application overrides for datasets, specs, output directories, GPU/platform settings, parent checkpoints, and automl_policy. Use direct model training only when automl_policy: off or the packaged train schema/template is missing; in the missing-schema case, report that AutoML is enabled but not runnable for this model until schemas are generated.
Non-train actions such as evaluate, inference, export, and deploy flows stay in this model skill. The per-run automl_policy override does not change model metadata.
Training Requirements
Dataset type: segmentation
Formats: coco_panoptic, coco
Monitoring metric: mIoU
AutoML metric: Maximize emitted validation/evaluation mIoU; never substitute training loss.
Data source overrides are mandatory for every action — the agent MUST construct data source paths from the Per-Action Dataset Requirements table above and include them in spec_overrides.
dataset.train.batch_size: Per-GPU batch size. Default 1. Mask2Former is memory-intensive due to per-pixel predictions.
dataset.contiguous_id: If true, set model.sem_seg_head.num_classes
to the number of label-map categories. If false, set
model.sem_seg_head.num_classes above the maximum raw category id and keep
the same setting for evaluate, inference, export, deploy, and quantize. The
COCO panoptic S3 sample has 133 categories with raw ids up to 200, so raw-id
validation uses num_classes: 201.
Same DDP/FSDP behavior as DINO (activation checkpoint aware)
FAN backbones auto-enable sync_batchnorm
fsdp forces FP16
Multi-node env vars (set by orchestrator): WORLD_SIZE, NODE_RANK, MASTER_ADDR, MASTER_PORT, NUM_GPU_PER_NODE.
Show full SKILL.md (626 more words)Show less
Export / TRT Defaults
TRT data types: FP32, FP16 only — INT8 is NOT supported
The parent PyTorch mask2former CLI supports train, evaluate,
inference, export, and quantize; run TensorRT engine generation,
TensorRT inference, and TensorRT evaluation through references/tao-deploy-mask2former.md.
Export semantic ONNX (model.mode: semantic) when validating TensorRT
evaluation because the current deploy evaluator accepts semantic engines.
Keep export input dimensions compatible with the deploy templates. The
packaged default export.input_width: 960 and export.input_height: 544
exports and builds a TensorRT engine successfully; shrinking export to tiny
validation-only sizes such as 128x128 can hit a PyTorch ONNX
minus_one_pos != -1 shape-inference assertion before ONNX is produced.
Hardware
Minimum 1 GPU(s), recommended 4 GPU(s). 24GB+ (A100 recommended) VRAM per GPU. Mask2Former is memory-heavy. batch_size=1 is the default for good reason. Multi-GPU recommended for reasonable training speed.
Error Patterns
CUDA out of memory: batch_size is already 1 by default. Reduce image resolution in augmentation config or use a smaller Swin variant.
Panoptic vs instance format mismatch: Ensure you provide the correct annotation format matching model.mode setting.
Deploy schema error for top-level dataset.type: TAO Deploy uses
dataset.val.type and dataset.test.type. Do not put dataset.type at the
top level of Mask2Former deploy specs.
Export ONNX shape assertion at very small resolution: If export fails with
minus_one_pos != -1 from PyTorch ONNX shape inference, restore the template
export dimensions (960x544) before retrying deploy validation. Keep training
and evaluation image sizes small when needed for quick smoke tests, but do not
carry those tiny dimensions into export unless the target shape has been
verified.
Quantize checkpoint load error: Older PyTorch images can fail
checkpoint-based mask2former quantize because the runtime quantize script
passes experiment_spec to Mask2formerPlModule.load_from_checkpoint instead
of the required cfg argument. Images with the quantize fix support the default
torchao checkpoint flow. ONNX quantization still requires
backend: modelopt.onnx, mode: static_ptq, a fixed
dataset.test.target_size, and an image that includes
modelopt.onnx.quantization.
Spec Param / Parent Model Inference
Model-specific inference mappings belong in this MD file, not in config.json. Generated runners should read this section and apply the mappings with SDK helpers before create_job(). This mirrors the old microservices infer_params.py flow.
Inference mappings from TAO Core mask2former.config.json:
Action
Spec Field
Inference Function
Meaning
evaluate
encryption_key
key
encryption key
evaluate
evaluate.checkpoint
parent_model
model file inferred from the parent job results folder
evaluate
evaluate.trt_engine
parent_model
model file inferred from the parent job results folder
evaluate
results_dir
output_dir
current job results directory
export
encryption_key
key
encryption key
export
export.checkpoint
parent_model
model file inferred from the parent job results folder
export
export.onnx_file
create_onnx_file
output ONNX path
export
results_dir
output_dir
current job results directory
gen_trt_engine
encryption_key
key
encryption key
gen_trt_engine
gen_trt_engine.onnx_file
parent_model
model file inferred from the parent job results folder
gen_trt_engine
gen_trt_engine.trt_engine
create_engine_file
output TensorRT engine path
gen_trt_engine
results_dir
output_dir
current job results directory
inference
encryption_key
key
encryption key
inference
inference.checkpoint
parent_model
model file inferred from the parent job results folder
inference
inference.trt_engine
parent_model
model file inferred from the parent job results folder
inference
results_dir
output_dir
current job results directory
quantize
encryption_key
key
encryption key
quantize
quantize.model_path
parent_model
model file inferred from the parent job results folder
model file inferred from the current job results folder
For parent_model or parent_model_folder, pass the upstream train/export/AutoML child job id as parent_job_id. The SDK lists the parent result folder, filters checkpoint artifacts, and returns the selected model file or folder. Do not add these mappings back to config.json and do not patch generated runner scripts to guess checkpoint paths.
When selecting a Mask2Former checkpoint outside the SDK resolver, match the
intended epoch/step artifact exactly, for example
model_epoch_000_step_00100.pth. The mask2former_model_latest.pth symlink
is valid only when latest is explicitly requested.
Tao Train Mask2former next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
Tao Train Mask2former compared with similar skills
Workflow for porting an existing Triton kernel in fla/ops/ to Gluon (triton.experimental.gluon) to gain explicit control over tensor layouts, shared memory, async data movement (cp.async / TMA), MMA…
Shows how to launch distributed Megatron-LM training on a SLURM cluster: sbatch skeleton, torch.distributed.run setup, CUDA_DEVICE_MAX_CONNECTIONS rules and failure diagnosis.
A skill your agent uses when quantizing a diffusion DiT with NVIDIA ModelOpt and making the resulting FP8 or NVFP4 checkpoint loadable, verifiable, and benchmarkable in SGLang Diffusion.
Preflight checks and diagnosis for ten known failure modes of ML training on NVIDIA DGX Spark's GB10, spanning launch errors, memory, thermals, bandwidth and precision.
A skill your agent uses when the user wants to deploy, run, debug, tear down, or call the REST API of the RTVI-CV 2D detection / tracking microservice.
Generates, validates, compares and explains HOLOLINK_def.svh macro files for the HSB IP, using bundled Python scripts and asking before it writes anything.
Orchestrates defect image generation for PCBA, metal surface and glass inspection with NVIDIA Cosmos AnomalyGen on OSMO, from cold-start Day 0 to real-photo Day 1 labeling.
Orchestrates video data augmentation and auto-labeling workflows on OSMO, from flow selection and preflight checks to submission, monitoring and output download.
Runs NVIDIA TAO Data Services KPI analysis on object detection results, comparing predictions to ground truth and writing per-class precision, recall and AP to a CSV.
Mask2Former for universal image segmentation (panoptic, instance, and semantic). Tao Train Mask2former is an agent skill from NVIDIA/skills, published by the product's own GitHub organization. Mask2Former for universal image segmentation (panoptic, instance, and semantic).
When should I use Tao Train Mask2former?
Tao Train Mask2former fits situations like: running inference for a TAO Mask2Former model; phrases include train Mask2Former; universal segmentation; panoptic / instance / semantic segmentation.
How do I install Tao Train Mask2former in Claude Code?
Run `npx skills add NVIDIA/skills --skill tao-train-mask2former -a claude-code`. Or copy the skill folder (skills/tao-train-mask2former in NVIDIA/skills) into .claude/skills/tao-train-mask2former in your project. Claude Code loads it when a task matches its description.
How do I install Tao Train Mask2former in Codex?
Run `npx skills add NVIDIA/skills --skill tao-train-mask2former -a codex`. Or copy the skill folder (skills/tao-train-mask2former in NVIDIA/skills) into .agents/skills/tao-train-mask2former in your project. Codex loads it when a task matches its description.
Can I use Tao Train Mask2former in Cursor, Gemini CLI or GitHub Copilot?
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add NVIDIA/skills --skill tao-train-mask2former -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tao-train-mask2former, .gemini/skills/tao-train-mask2former, .github/skills/tao-train-mask2former and .opencode/skills/tao-train-mask2former in your project.
What does Tao Train Mask2former need to run?
SKILL.md names no scripts, command-line tools or credentials: Tao Train Mask2former is instructions for the agent only. Our summary lists: Python 3; Docker. Its frontmatter pre-approves these tools: Read, Bash. Compatibility (from SKILL.md): Requires docker + nvidia-container-toolkit..
Does Tao Train Mask2former access the network?
SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Is Tao Train Mask2former safe to install?
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
What licence does Tao Train Mask2former use?
Tao Train Mask2former is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
How many tokens does Tao Train Mask2former use?
About 5k tokens (SKILL.md is roughly 20k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.
What are the alternatives to Tao Train Mask2former?
Skills that share tags, products or a category with Tao Train Mask2former: Fla Triton To Gluon (fla-org/flash-linear-attention, 5.8k stars), Megatron-LM on SLURM (NVIDIA/Megatron-LM, 18k stars), DGX Spark Memory and Thermal Ops (wshobson/agents, 40k stars) and Yolo Detection 2026 (SharpAI/DeepCamera, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Who maintains Tao Train Mask2former?
NVIDIA (a GitHub organization, an official publisher) maintains it in NVIDIA/skills, which has 3,546 GitHub stars. The repository holds 386 skills in this directory. The repository was last updated on October 9, 2026.
Source: NVIDIA/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.