Install the "tao-train-segformer" agent skill from https://github.com/NVIDIA/skills/tree/main/skills/tao-train-segformer into .claude/skills/tao-train-segformer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tao-train-segformer", 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-segformer -a codex
Project install goes to .agents/skills/; add -g for ~/.codex/skills/.
Install the "tao-train-segformer" agent skill from https://github.com/NVIDIA/skills/tree/main/skills/tao-train-segformer into .agents/skills/tao-train-segformer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tao-train-segformer", 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-segformer -a cursor
Project install goes to .agents/skills/; add -g for ~/.cursor/skills/.
Install the "tao-train-segformer" agent skill from https://github.com/NVIDIA/skills/tree/main/skills/tao-train-segformer into .cursor/skills/tao-train-segformer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tao-train-segformer", 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-segformer -a gemini-cli
Project install goes to .agents/skills/; add -g for ~/.gemini/skills/.
Install the "tao-train-segformer" agent skill from https://github.com/NVIDIA/skills/tree/main/skills/tao-train-segformer into .gemini/skills/tao-train-segformer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tao-train-segformer", 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-segformer -a github-copilot
Project install goes to .agents/skills/; add -g for ~/.copilot/skills/.
Install the "tao-train-segformer" agent skill from https://github.com/NVIDIA/skills/tree/main/skills/tao-train-segformer into .github/skills/tao-train-segformer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tao-train-segformer", 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-segformer -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-segformer" agent skill from https://github.com/NVIDIA/skills/tree/main/skills/tao-train-segformer into .opencode/skills/tao-train-segformer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tao-train-segformer", 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-segformer
GitHub stars
3.5k
Token cost
~3.7k tokens
SKILL.md length
1,455 words
Files
23 (incl. references)
Skills in repo
386
Repo updated
First seen
Licence
Apache-2.0
At a glance
SegFormer for semantic segmentation. An agent skill from NVIDIA/skills.
Running inference for a TAO SegFormer model
SKILL.md covers Dataclass Schemas, Train Action Policy, Supported Actions and Training Requirements, plus 7 more sections
Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
Phrases include train SegFormer
What it does
Tao Train Segformer is an agent skill from NVIDIA/skills, published by the product's own GitHub organization. SegFormer for semantic segmentation. Lightweight transformer-based architecture with hierarchical feature extraction, efficient for real-time segmentation tasks. Use when training, evaluating, exporting, quantizing, or running inference for a TAO SegFormer model. Trigger phrases include "train SegFormer", "semantic segmentation", "lightweight transformer segmenter", "real-time semantic segmentation".
Its SKILL.md is about 3.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 26 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
No URLs in SKILL.md.
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 Segformer loads about 3.7k tokens when it runs, and up to ~11k if it reads all its reference files. Until then it costs about 106 tokens; SKILL.md has 1,455 words of instructions outside code blocks.
Always· name and description, kept in context so the agent knows when to use it
~106
When it runs· the whole SKILL.md, loaded when a task matches
~3.7k
With references· SKILL.md plus every file in references/, read only if the agent opens them
~11k
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-segformer/SKILL.md (or your agent's skills folder). This skill also uses 22 other files; get the full folder from GitHub.
name
tao-train-segformer
description
SegFormer for semantic segmentation. Lightweight transformer-based architecture with hierarchical feature extraction, efficient for real-time segmentation tasks. Use when training, evaluating, exporting, quantizing, or running inference for a TAO SegFormer model. Trigger phrases include "train SegFormer", "semantic segmentation", "lightweight transformer segmenter", "real-time semantic segmentation".
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
SegFormer
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).
SegFormer for semantic segmentation. Lightweight transformer-based architecture with hierarchical feature extraction. Efficient for real-time segmentation tasks.
Set model.backbone.pretrained_backbone_path for backbone weights.
For TAO Deploy TensorRT actions (gen_trt_engine, TensorRT evaluate, and TensorRT inference), read references/tao-deploy-segformer.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.
Supported Actions
The packaged SegFormer PyT CLI supports train, evaluate, export, inference, quantize, and default_specs. This model skill exposes train, evaluate, export, inference, and quantize; resume/retrain is performed through train with train.resume_training_checkpoint_path.
The parent PyT CLI does not expose gen_trt_engine. Use models/segformer/deploy for TensorRT engine generation, TensorRT evaluation, and TensorRT inference.
Training Requirements
Dataset type: segmentation
Formats: unet
AutoML training metric:val_miou (maximize).
Standalone evaluation metric:test_miou. Use the train-status val_miou for AutoML ranking and the evaluator's test_miou only for checkpoint verification.
Per-Action Dataset Requirements
Action
Spec Key
Source
Files
List?
evaluate
dataset.segment.root_dir
eval_dataset
extracted root containing images/<split> and masks/<split>
No
export
dataset.segment.root_dir
train_datasets
extracted root containing images/<split> and masks/<split>
No
inference
dataset.segment.root_dir
inference_dataset
extracted root containing images/<split> and masks/<split>
No
quantize
dataset.segment.root_dir
train_datasets
extracted root containing images/<split> and masks/<split>
extracted root containing images/<split> and masks/<split>
No
Typical Spec Overrides
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.
If the source dataset is delivered as separate images/*.tar.gz and
masks/*.tar.gz archives, extract them before launch so root_dir contains
directories such as images/train, images/val, images/test, masks/train,
and masks/val. Do not point dataset.segment.root_dir at an archive staging
folder that still contains only tarballs.
Eval Dataset
Optional. Validation data is typically part of the root_dir structure.
Important Parameters
dataset.segment.num_classes: Number of segmentation classes. Default 2 (binary). Must match the number of classes in your mask annotations.
model.backbone.type: Default fan_small_12_p4_hybrid. Supported includes FAN variants, SegFormer MIT variants, and others.
dataset.segment.root_dir: Root directory of the segmentation dataset.
dataset.segment.img_size: Input image size. Default 256. Increase for finer segmentation at the cost of memory.
train.optim.lr: Learning rate. Default 6e-5.
model.freeze_backbone: Whether to freeze the backbone during training. Useful for fine-tuning with limited data.
dataset.segment.label_transform: Use the string "None" when no label
transform is desired. Do not set this to JSON/YAML null; strict schema merge
treats the field as a string enum.
dataset.segment.palette: For grayscale masks, use one integer per RGB
entry, for example rgb: [85]. Preserve the dataset's actual label ids and
class names rather than normalizing them unless the user explicitly asks for a
conversion.
Multi-node env vars (set by orchestrator): WORLD_SIZE, NODE_RANK, MASTER_ADDR, MASTER_PORT, NUM_GPU_PER_NODE.
Hardware
Minimum 1 GPU(s), recommended 2 GPU(s). 16GB+ (V100 or A100) VRAM per GPU. SegFormer is relatively lightweight. Default img_size=256 is memory-friendly. Increase img_size for higher resolution at the cost of memory and speed.
Show full SKILL.md (646 more words)Show less
Error Patterns
CUDA out of memory: Reduce batch_size or img_size. SegFormer memory scales quadratically with image size.
num_classes mismatch: Ensure dataset.segment.num_classes matches the actual number of classes in your mask annotations.
TensorBoard unsupported for segmentation training: Keep train.tensorboard.enabled: false. The SegFormer training entrypoint asserts that TensorBoard visualization is not supported for segmentation, so do not enable TensorBoard just to extract AutoML metrics; use log parsing or a post-train evaluator instead.
AutoML metric extraction: SegFormer train status files report val_miou alongside val_loss, val_acc, and other validation KPIs. Default AutoML train launches must optimize val_miou with direction: maximize; do not optimize val_loss for default model invocations.
For AutoML or long segmentation sweeps, read val_miou from
results_dir/train/status.json first. If the wrapper reports a terminal
failure but the structured status file reached the configured training budget
and contains finite val_miou, report the recovered metric with the wrapper
failure noted instead of discarding the measurement.
For high-resolution custom segmentation targets, keep dataset paths as per-run
inputs. Do not add customer/user-specific roots to this reusable skill. When the
user asks for a fixed full-budget search, remember that bracket algorithms
(asha, bohb, dehb, hyperband, hyperband_es, pbt) may intentionally
lower train.num_epochs for some recommendations; use Bayesian/BFBO or lock the
budget if every recommendation must run the full epoch count.
Checkpoint handoff: For evaluate/export/inference/quantize/resume, use the checkpoint resolver on the best AutoML child job's results_dir/train/ folder and select the action-appropriate model_epoch_*.pth checkpoint, such as model_epoch_000_step_00010.pth. SegFormer may also write segformer_model_latest.pth, but that should only be used when a caller explicitly requests latest. Preserve dataset.segment.num_classes, dataset.segment.img_size, and dataset.segment.root_dir overrides for downstream actions.
Resume/retrain checkpoint: Resume uses train.resume_training_checkpoint_path.
Pass the exact resolved checkpoint from the previous train output, not a guessed
model.pth path. A resumed one-epoch run should produce the next checkpoint in
the new results directory, for example model_epoch_001_step_00020.pth.
Export / TensorRT shape alignment: Keep export.input_height and
export.input_width aligned with dataset.segment.img_size unless the trained
model and deploy specs have been validated at another resolution. The packaged
fresh-install path is validated at 256x256, matching the default SegFormer
dataset and deploy templates.
Parent segformer gen_trt_engine rejected by the PyT CLI: In the validated 7.0.0 PyT container, segformer gen_trt_engine is not a valid parent-model subtask. Use the SegFormer deploy workflow (references/tao-deploy-segformer.md) for TensorRT engine generation, TensorRT evaluation, and TensorRT inference.
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 segformer.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
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
quantize
results_dir
output_dir
current job results directory
train
encryption_key
key
encryption key
train
model.backbone.pretrained_backbone_path
ptm_if_no_resume_model
PTM when no resume checkpoint exists
train
results_dir
output_dir
current job results directory
train
train.pretrained_model_path
ptm_if_no_resume_model
PTM when no resume checkpoint exists
train
train.resume_training_checkpoint_path
resume_model
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.
Tao Train Segformer 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.
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.
SegFormer for semantic segmentation. An agent skill from NVIDIA/skills. Tao Train Segformer is an agent skill from NVIDIA/skills, published by the product's own GitHub organization. SegFormer for semantic segmentation.
When should I use Tao Train Segformer?
Tao Train Segformer fits situations like: running inference for a TAO SegFormer model; phrases include train SegFormer; semantic segmentation; lightweight transformer segmenter.
How do I install Tao Train Segformer in Claude Code?
Run `npx skills add NVIDIA/skills --skill tao-train-segformer -a claude-code`. Or copy the skill folder (skills/tao-train-segformer in NVIDIA/skills) into .claude/skills/tao-train-segformer in your project. Claude Code loads it when a task matches its description.
How do I install Tao Train Segformer in Codex?
Run `npx skills add NVIDIA/skills --skill tao-train-segformer -a codex`. Or copy the skill folder (skills/tao-train-segformer in NVIDIA/skills) into .agents/skills/tao-train-segformer in your project. Codex loads it when a task matches its description.
Can I use Tao Train Segformer 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-segformer -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-segformer, .gemini/skills/tao-train-segformer, .github/skills/tao-train-segformer and .opencode/skills/tao-train-segformer in your project.
What does Tao Train Segformer need to run?
SKILL.md names no scripts, command-line tools or credentials: Tao Train Segformer 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 Segformer access the network?
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Is Tao Train Segformer 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 Segformer use?
Tao Train Segformer 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 Segformer use?
About 3.7k tokens (SKILL.md is roughly 15k 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 7.6k tokens, read only when the agent opens those files.
What are the alternatives to Tao Train Segformer?
Skills that share tags, products or a category with Tao Train Segformer: 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 Segformer?
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.