[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CQQQVJK6WC1HY6JB8E7GRD":3,"skill-same:01M7CQQQVJK6WC1HY6JB8E7GRD":60},{"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":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M7CQQQVJK6WC1HY6JB8E7GRD","tao-train-image-classification",null,"PyTorch-based TAO image classification. Supports a wide range of backbones (FAN, EfficientNet, ResNet, etc.) with distillation and quantization for deployment. Use when training, evaluating, distilling, quantizing, exporting, or running inference for a TAO image-classification (PyT) model. Trigger phrases include \"train image classifier\", \"TAO classification\", \"ResNet\u002FEfficientNet\u002FFAN backbone classifier\", \"classification-pyt\".","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-train-image-classification\u002FSkill.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tao-train-image-classification\ndescription: PyTorch-based TAO image classification. Supports a wide range of backbones (FAN, EfficientNet, ResNet, etc.)\n  with distillation and quantization for deployment. Use when training, evaluating, distilling, quantizing, exporting, or\n  running inference for a TAO image-classification (PyT) model. Trigger phrases include \"train image classifier\",\n  \"TAO classification\", \"ResNet\u002FEfficientNet\u002FFAN backbone classifier\", \"classification-pyt\".\nlicense: Apache-2.0\ncompatibility: Requires docker + nvidia-container-toolkit.\nmetadata:\n  version: \"0.1.0\"\n  author: NVIDIA Corporation\nallowed-tools: Read Bash\ntags:\n- image\n- classification\n---\n\n# Classification PyT\n\nPyTorch image classification. Supports a wide range of backbones (FAN, EfficientNet, ResNet, etc.) with distillation and quantization for deployment.\n\nSet model.backbone.pretrained_backbone_path for backbone weights or train.pretrained_model_path for full model.\n\nFor TAO Deploy TensorRT actions (`gen_trt_engine`, TensorRT `evaluate`, and TensorRT `inference`), read `references\u002Ftao-deploy-image-classification.md` first. Deploy spec templates live in this skill's `references\u002F` folder with the `spec_template_deploy_*.yaml` prefix.\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`, `export`, and deploy flows stay in this model skill. The per-run `automl_policy` override does not change model metadata.\n\n## Training Requirements\n\n- **Dataset type:** image_classification\n- **Formats:** classification_pyt\n- **Monitoring metric:** val_acc_1\n\n### Per-Action Dataset Requirements\n\n| Action | Spec Key | Source | Files | List? |\n|---|---|---|---|---|\n| distill | dataset.train_dataset.images_dir | train_datasets | images_train.tar.gz | No |\n| distill | dataset.classes_file | train_datasets | classes.txt | No |\n| distill | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n| evaluate | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n| evaluate | dataset.classes_file | eval_dataset | classes.txt | No |\n| evaluate | dataset.test_dataset.images_dir | inference_dataset | images_test.tar.gz | No |\n| export | dataset.root_dir | train_datasets |  | No |\n| inference | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n| inference | dataset.classes_file | eval_dataset | classes.txt | No |\n| inference | dataset.test_dataset.images_dir | inference_dataset | images_test.tar.gz | No |\n| quantize | dataset.train_dataset.images_dir | train_datasets | images_train.tar.gz | No |\n| quantize | dataset.classes_file | train_datasets | classes.txt | No |\n| quantize | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n| quantize | dataset.quant_calibration_dataset.images_dir | calibration_dataset | images_train.tar.gz | No |\n| train | dataset.train_dataset.images_dir | train_datasets | images_train.tar.gz | No |\n| train | dataset.classes_file | train_datasets | classes.txt | No |\n| train | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n\n### Typical Spec Overrides\n\nData 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`.\n\n```python\nTRAIN_IMAGES_DIR = \"\u002Fworkspace\u002Fdata\u002Fextracted\u002Ftrain\u002Fimages_train\"\nVAL_IMAGES_DIR = \"\u002Fworkspace\u002Fdata\u002Fextracted\u002Fval\u002Fimages_val\"\nTEST_IMAGES_DIR = \"\u002Fworkspace\u002Fdata\u002Fextracted\u002Ftest\u002Fimages_test\"\nCLASSES_FILE = \"\u002Fworkspace\u002Fdata\u002Fs3\u002Fclasses.txt\"\n```\n\nFor local Docker, download the S3 archives, extract them first, and point\n`dataset.*.images_dir` at the extracted class-root folder. Do not pass\n`images_train.tar.gz`, `images_val.tar.gz`, or `images_test.tar.gz` directly to\nlocal Docker specs; the skill metadata declares these inputs as folders.\n\n**train (mandatory data sources):**\n```python\n{\n    \"train.num_epochs\": 2,\n    \"train.validation_interval\": 2,\n    \"train.checkpoint_interval\": 2,\n    \"train.num_gpus\": 1,\n    \"dataset.train_dataset.images_dir\": TRAIN_IMAGES_DIR,\n    \"dataset.classes_file\": CLASSES_FILE,\n    \"dataset.val_dataset.images_dir\": VAL_IMAGES_DIR,\n}\n```\n\n**export (mandatory data sources):**\n```python\n{\n    \"export.input_height\": 224,\n    \"export.input_width\": 224,\n    \"dataset.root_dir\": \"\u002Fworkspace\u002Fdata\u002Fextracted\",\n}\n```\n\n**gen_trt_engine:**\n```python\n{\n    \"gen_trt_engine.tensorrt.data_type\": \"fp16\",\n}\n```\n\n**inference (mandatory data sources):**\n```python\n{\n    \"dataset.batch_size\": 1,\n    \"dataset.val_dataset.images_dir\": VAL_IMAGES_DIR,\n    \"dataset.classes_file\": CLASSES_FILE,\n    \"dataset.test_dataset.images_dir\": TEST_IMAGES_DIR,\n}\n```\n\n**distill (mandatory data sources):**\n```python\n{\n    \"dataset.train_dataset.images_dir\": TRAIN_IMAGES_DIR,\n    \"dataset.classes_file\": CLASSES_FILE,\n    \"dataset.val_dataset.images_dir\": VAL_IMAGES_DIR,\n    \"train.optim.policy\": \"step\",\n}\n```\n\n**evaluate (mandatory data sources):**\n```python\n{\n    \"dataset.val_dataset.images_dir\": VAL_IMAGES_DIR,\n    \"dataset.classes_file\": CLASSES_FILE,\n    \"dataset.test_dataset.images_dir\": TEST_IMAGES_DIR,\n}\n```\n\n**quantize (mandatory data sources):**\n```python\n{\n    \"dataset.train_dataset.images_dir\": TRAIN_IMAGES_DIR,\n    \"dataset.classes_file\": CLASSES_FILE,\n    \"dataset.val_dataset.images_dir\": VAL_IMAGES_DIR,\n    \"dataset.quant_calibration_dataset.images_dir\": TRAIN_IMAGES_DIR,\n}\n```\n## Eval Dataset\n\nOptional. Validation images are provided as a separate tar alongside training images.\nFor small smoke datasets that do not provide a separate `images_test.tar.gz`,\nset `dataset.test_dataset.images_dir` to the validation archive so evaluate and\ninference still exercise the checkpoint handoff.\n\n## Important Parameters\n\n- **dataset.num_classes**: Number of classes. Default 20. Must match the number of subdirectories in your image tarballs.\n- **model.backbone.type**: Default fan_small_12_p4_hybrid. Supported backbones and their head in_channels (from model_params_mapping.py): FAN: fan_tiny, fan_small_12_p4_hybrid, fan_base_16_p4_hybrid, fan_large_16_p4_hybrid. GCViT: gcvit_tiny through gcvit_large. FasterViT: fastervit_0 through fastervit_6. ViT\u002FEVA\u002FDINO: vit_large_patch14_dinov2, eva02_large_patch14, etc. SigLIP-CLIPA: ViT-H-14-SigLIP-CLIPA-224, etc. Some backbones require non-default input resolution (384, 512, 768).\n- **dataset.classes_file**: Path to classes.txt listing class names.\n- **train.optim.lr**: Learning rate. Default 6e-5.\n- **dataset.img_size**: Input image size. Default 224.\n- **dataset.batch_size**: Per-GPU batch size. Default 8.\n\n## Multi-GPU \u002F Multi-Node\n\n**Launch method:** Lightning-managed (single `python` process, Lightning spawns workers).\n\n| Spec Key | Description | Default |\n|----------|-------------|---------|\n| `train.num_gpus` | Number of GPUs | 1 |\n| `train.gpu_ids` | GPU device indices | [0] |\n| `train.num_nodes` | Number of nodes | 1 |\n\n- Multi-GPU strategy: `ddp_find_unused_parameters_true`\n- No fsdp support\n\n**Multi-node env vars** (set by orchestrator): `WORLD_SIZE`, `NODE_RANK`, `MASTER_ADDR`, `MASTER_PORT`, `NUM_GPU_PER_NODE`.\n\n## Hardware\n\nMinimum 1 GPU(s), recommended 2 GPU(s). 16GB+ (V100 or A100) VRAM per GPU. Classification is generally lightweight. Most backbones at 224x224 fit well on 16GB GPUs with batch_size=8.\n\n## Error Patterns\n\n**CUDA out of memory**: Reduce batch_size or use a smaller backbone.\n\n**num_classes mismatch**: Ensure dataset.num_classes matches the actual class directories in your image tarballs and classes.txt.\n\n**Empty class directory**: Every class in classes.txt must have at least one image in the corresponding subdirectory.\n\n**Distill scheduler default**: The bundled distill template and schema use\n`train.optim.policy: step`. Keep that setting for distill specs unless the\ncontainer implementation is updated; the 7.0 PyT distiller does not assign a\nscheduler interval for `train.optim.policy: linear`.\n\n**Checkpoint handoff**: Training produces `model_epoch_*.pth` checkpoints and a\n`classifier_model_latest.pth` symlink. For evaluate, inference, export, quantize,\ndistill, and resume, select the exact intended epoch checkpoint through the SDK\nresolver; use the latest symlink only when the user explicitly requests latest.\n\n## Spec Param \u002F Parent Model Inference\n\nModel-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.\n\nInference mappings from TAO Core `classification_pyt.config.json`:\n\n| Action | Spec Field | Inference Function | Meaning |\n|---|---|---|---|\n| distill | `distill.pretrained_teacher_model_path` | `parent_model` | model file inferred from the parent job results folder |\n| distill | `results_dir` | `output_dir` | current job results directory |\n| evaluate | `evaluate.checkpoint` | `parent_model` | model file inferred from the parent job results folder |\n| evaluate | `results_dir` | `output_dir` | current job results directory |\n| export | `export.checkpoint` | `parent_model` | model file inferred from the parent job results folder |\n| export | `export.onnx_file` | `create_onnx_file` | output ONNX path |\n| export | `results_dir` | `output_dir` | current job results directory |\n| gen_trt_engine | `gen_trt_engine.onnx_file` | `parent_model` | model file inferred from the parent job results folder |\n| gen_trt_engine | `gen_trt_engine.trt_engine` | `create_engine_file` | output TensorRT engine path |\n| gen_trt_engine | `results_dir` | `output_dir` | current job results directory |\n| inference | `inference.checkpoint` | `parent_model` | model file inferred from the parent job results folder |\n| inference | `inference.trt_engine` | `parent_model` | model file inferred from the parent job results folder |\n| inference | `results_dir` | `output_dir` | current job results directory |\n| quantize | `quantize.model_path` | `parent_model` | model file inferred from the parent job results folder |\n| quantize | `results_dir` | `output_dir` | current job results directory |\n| train | `model.backbone.pretrained_backbone_path` | `ptm_if_no_resume_model` | PTM when no resume checkpoint exists |\n| train | `results_dir` | `output_dir` | current job results directory |\n| train | `train.pretrained_model_path` | `ptm_if_no_resume_model` | PTM when no resume checkpoint exists |\n| train | `train.resume_training_checkpoint_path` | `resume_model` | model file inferred from the current job results folder |\n\nFor `parent_model` or `parent_model_folder`, pass the upstream train\u002Fexport\u002FAutoML 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.\n\n## Deployment\n\n- [tao-deploy-image-classification](references\u002Ftao-deploy-image-classification.md)\n","# Classification PyT\n\nPyTorch image classification. Supports a wide range of backbones (FAN, EfficientNet, ResNet, etc.) with distillation and quantization for deployment.\n\nSet model.backbone.pretrained_backbone_path for backbone weights or train.pretrained_model_path for full model.\n\nFor TAO Deploy TensorRT actions (`gen_trt_engine`, TensorRT `evaluate`, and TensorRT `inference`), read `references\u002Ftao-deploy-image-classification.md` first. Deploy spec templates live in this skill's `references\u002F` folder with the `spec_template_deploy_*.yaml` prefix.\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`, `export`, and deploy flows stay in this model skill. The per-run `automl_policy` override does not change model metadata.\n\n## Training Requirements\n\n- **Dataset type:** image_classification\n- **Formats:** classification_pyt\n- **Monitoring metric:** val_acc_1\n\n### Per-Action Dataset Requirements\n\n| Action | Spec Key | Source | Files | List? |\n|---|---|---|---|---|\n| distill | dataset.train_dataset.images_dir | train_datasets | images_train.tar.gz | No |\n| distill | dataset.classes_file | train_datasets | classes.txt | No |\n| distill | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n| evaluate | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n| evaluate | dataset.classes_file | eval_dataset | classes.txt | No |\n| evaluate | dataset.test_dataset.images_dir | inference_dataset | images_test.tar.gz | No |\n| export | dataset.root_dir | train_datasets |  | No |\n| inference | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n| inference | dataset.classes_file | eval_dataset | classes.txt | No |\n| inference | dataset.test_dataset.images_dir | inference_dataset | images_test.tar.gz | No |\n| quantize | dataset.train_dataset.images_dir | train_datasets | images_train.tar.gz | No |\n| quantize | dataset.classes_file | train_datasets | classes.txt | No |\n| quantize | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n| quantize | dataset.quant_calibration_dataset.images_dir | calibration_dataset | images_train.tar.gz | No |\n| train | dataset.train_dataset.images_dir | train_datasets | images_train.tar.gz | No |\n| train | dataset.classes_file | train_datasets | classes.txt | No |\n| train | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n\n### Typical Spec Overrides\n\nData 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`.\n\n```python\nTRAIN_IMAGES_DIR = \"\u002Fworkspace\u002Fdata\u002Fextracted\u002Ftrain\u002Fimages_train\"\nVAL_IMAGES_DIR = \"\u002Fworkspace\u002Fdata\u002Fextracted\u002Fval\u002Fimages_val\"\nTEST_IMAGES_DIR = \"\u002Fworkspace\u002Fdata\u002Fextracted\u002Ftest\u002Fimages_test\"\nCLASSES_FILE = \"\u002Fworkspace\u002Fdata\u002Fs3\u002Fclasses.txt\"\n```\n\nFor local Docker, download the S3 archives, extract them first, and point\n`dataset.*.images_dir` at the extracted class-root folder. Do not pass\n`images_train.tar.gz`, `images_val.tar.gz`, or `images_test.tar.gz` directly to\nlocal Docker specs; the skill metadata declares these inputs as folders.\n\n**train (mandatory data sources):**\n```python\n{\n    \"train.num_epochs\": 2,\n    \"train.validation_interval\": 2,\n    \"train.checkpoint_interval\": 2,\n    \"train.num_gpus\": 1,\n    \"dataset.train_dataset.images_dir\": TRAIN_IMAGES_DIR,\n    \"dataset.classes_file\": CLASSES_FILE,\n    \"dataset.val_dataset.images_dir\": VAL_IMAGES_DIR,\n}\n```\n\n**export (mandatory data sources):**\n```python\n{\n    \"export.input_height\": 224,\n    \"export.input_width\": 224,\n    \"dataset.root_dir\": \"\u002Fworkspace\u002Fdata\u002Fextracted\",\n}\n```\n\n**gen_trt_engine:**\n```python\n{\n    \"gen_trt_engine.tensorrt.data_type\": \"fp16\",\n}\n```\n\n**inference (mandatory data sources):**\n```python\n{\n    \"dataset.batch_size\": 1,\n    \"dataset.val_dataset.images_dir\": VAL_IMAGES_DIR,\n    \"dataset.classes_file\": CLASSES_FILE,\n    \"dataset.test_dataset.images_dir\": TEST_IMAGES_DIR,\n}\n```\n\n**distill (mandatory data sources):**\n```python\n{\n    \"dataset.train_dataset.images_dir\": TRAIN_IMAGES_DIR,\n    \"dataset.classes_file\": CLASSES_FILE,\n    \"dataset.val_dataset.images_dir\": VAL_IMAGES_DIR,\n    \"train.optim.policy\": \"step\",\n}\n```\n\n**evaluate (mandatory data sources):**\n```python\n{\n    \"dataset.val_dataset.images_dir\": VAL_IMAGES_DIR,\n    \"dataset.classes_file\": CLASSES_FILE,\n    \"dataset.test_dataset.images_dir\": TEST_IMAGES_DIR,\n}\n```\n\n**quantize (mandatory data sources):**\n```python\n{\n    \"dataset.train_dataset.images_dir\": TRAIN_IMAGES_DIR,\n    \"dataset.classes_file\": CLASSES_FILE,\n    \"dataset.val_dataset.images_dir\": VAL_IMAGES_DIR,\n    \"dataset.quant_calibration_dataset.images_dir\": TRAIN_IMAGES_DIR,\n}\n```\n## Eval Dataset\n\nOptional. Validation images are provided as a separate tar alongside training images.\nFor small smoke datasets that do not provide a separate `images_test.tar.gz`,\nset `dataset.test_dataset.images_dir` to the validation archive so evaluate and\ninference still exercise the checkpoint handoff.\n\n## Important Parameters\n\n- **dataset.num_classes**: Number of classes. Default 20. Must match the number of subdirectories in your image tarballs.\n- **model.backbone.type**: Default fan_small_12_p4_hybrid. Supported backbones and their head in_channels (from model_params_mapping.py): FAN: fan_tiny, fan_small_12_p4_hybrid, fan_base_16_p4_hybrid, fan_large_16_p4_hybrid. GCViT: gcvit_tiny through gcvit_large. FasterViT: fastervit_0 through fastervit_6. ViT\u002FEVA\u002FDINO: vit_large_patch14_dinov2, eva02_large_patch14, etc. SigLIP-CLIPA: ViT-H-14-SigLIP-CLIPA-224, etc. Some backbones require non-default input resolution (384, 512, 768).\n- **dataset.classes_file**: Path to classes.txt listing class names.\n- **train.optim.lr**: Learning rate. Default 6e-5.\n- **dataset.img_size**: Input image size. Default 224.\n- **dataset.batch_size**: Per-GPU batch size. Default 8.\n\n## Multi-GPU \u002F Multi-Node\n\n**Launch method:** Lightning-managed (single `python` process, Lightning spawns workers).\n\n| Spec Key | Description | Default |\n|----------|-------------|---------|\n| `train.num_gpus` | Number of GPUs | 1 |\n| `train.gpu_ids` | GPU device indices | [0] |\n| `train.num_nodes` | Number of nodes | 1 |\n\n- Multi-GPU strategy: `ddp_find_unused_parameters_true`\n- No fsdp support\n\n**Multi-node env vars** (set by orchestrator): `WORLD_SIZE`, `NODE_RANK`, `MASTER_ADDR`, `MASTER_PORT`, `NUM_GPU_PER_NODE`.\n\n## Hardware\n\nMinimum 1 GPU(s), recommended 2 GPU(s). 16GB+ (V100 or A100) VRAM per GPU. Classification is generally lightweight. Most backbones at 224x224 fit well on 16GB GPUs with batch_size=8.\n\n## Error Patterns\n\n**CUDA out of memory**: Reduce batch_size or use a smaller backbone.\n\n**num_classes mismatch**: Ensure dataset.num_classes matches the actual class directories in your image tarballs and classes.txt.\n\n**Empty class directory**: Every class in classes.txt must have at least one image in the corresponding subdirectory.\n\n**Distill scheduler default**: The bundled distill template and schema use\n`train.optim.policy: step`. Keep that setting for distill specs unless the\ncontainer implementation is updated; the 7.0 PyT distiller does not assign a\nscheduler interval for `train.optim.policy: linear`.\n\n**Checkpoint handoff**: Training produces `model_epoch_*.pth` checkpoints and a\n`classifier_model_latest.pth` symlink. For evaluate, inference, export, quantize,\ndistill, and resume, select the exact intended epoch checkpoint through the SDK\nresolver; use the latest symlink only when the user explicitly requests latest.\n\n## Spec Param \u002F Parent Model Inference\n\nModel-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.\n\nInference mappings from TAO Core `classification_pyt.config.json`:\n\n| Action | Spec Field | Inference Function | Meaning |\n|---|---|---|---|\n| distill | `distill.pretrained_teacher_model_path` | `parent_model` | model file inferred from the parent job results folder |\n| distill | `results_dir` | `output_dir` | current job results directory |\n| evaluate | `evaluate.checkpoint` | `parent_model` | model file inferred from the parent job results folder |\n| evaluate | `results_dir` | `output_dir` | current job results directory |\n| export | `export.checkpoint` | `parent_model` | model file inferred from the parent job results folder |\n| export | `export.onnx_file` | `create_onnx_file` | output ONNX path |\n| export | `results_dir` | `output_dir` | current job results directory |\n| gen_trt_engine | `gen_trt_engine.onnx_file` | `parent_model` | model file inferred from the parent job results folder |\n| gen_trt_engine | `gen_trt_engine.trt_engine` | `create_engine_file` | output TensorRT engine path |\n| gen_trt_engine | `results_dir` | `output_dir` | current job results directory |\n| inference | `inference.checkpoint` | `parent_model` | model file inferred from the parent job results folder |\n| inference | `inference.trt_engine` | `parent_model` | model file inferred from the parent job results folder |\n| inference | `results_dir` | `output_dir` | current job results directory |\n| quantize | `quantize.model_path` | `parent_model` | model file inferred from the parent job results folder |\n| quantize | `results_dir` | `output_dir` | current job results directory |\n| train | `model.backbone.pretrained_backbone_path` | `ptm_if_no_resume_model` | PTM when no resume checkpoint exists |\n| train | `results_dir` | `output_dir` | current job results directory |\n| train | `train.pretrained_model_path` | `ptm_if_no_resume_model` | PTM when no resume checkpoint exists |\n| train | `train.resume_training_checkpoint_path` | `resume_model` | model file inferred from the current job results folder |\n\nFor `parent_model` or `parent_model_folder`, pass the upstream train\u002Fexport\u002FAutoML 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.\n\n## Deployment\n\n- [tao-deploy-image-classification](references\u002Ftao-deploy-image-classification.md)\n",{"name":5,"tags":24,"license":15,"metadata":27,"description":7,"allowed-tools":30,"compatibility":31},[25,26],"image","classification",{"author":28,"version":29},"NVIDIA Corporation","0.1.0","Read Bash","Requires docker + nvidia-container-toolkit.","main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fnvidia-skills\u002Ftao-train-image-classification",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":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill tao-train-image-classification",{"tool":46,"command":47},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill tao-train-image-classification",{"tool":49,"command":50},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill tao-train-image-classification","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fnvidia-skills\u002Ftao-train-image-classification\u002FSkill.md",true,[54],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"metadata.json","REFERENCE","参考文档",470,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fnvidia-skills\u002Ftao-train-image-classification\u002Fmetadata.json",[61,69,74,81,86,93],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"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":70,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"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":82,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"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":94,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]