AGENT SKILL

classification

Route and operate PaddleViT image-classification workflows across standalone model directories, shared configuration/data/train/eval surfaces, checkpoint and AMP handling, and the facial-expression Swin variant.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
classification
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Route and operate PaddleViT image-classification workflows across standalone model directories, shared configuration/data/train/eval surfaces, checkpoint and AMP handling, and the facial-expression Swin variant.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

PaddleViT classification

Use this route for image-level classification in PaddleViT: choose a model family, validate a config and ImageNet-style data layout, build a model, load a checkpoint, evaluate, fine-tune, or decide whether AMP/distributed training is appropriate. Use it also for the repository's Swin-based ABAW facial-expression workflow.

Route the request

  1. Select exactly one standalone model directory. Keep its config.py, model module, datasets.py, and main script together: PaddleViT is a collection of standalone projects, not an installable Python package.
  2. Read model overview and select the family named by the config/checkpoint. If none is named, choose a baseline that meets the actual constraint (for example ViT for an explicit reference, SwinTransformer for hierarchical windows, or MobileViT/MobileOne for a mobile-oriented comparison), then state the choice.
  3. Read configuration, then run the safe standalone config check with a YAML path. Its result is structural validation, not a claim that the model or dataset is usable.
  4. For a no-data/no-checkpoint output-contract check, run the deterministic standalone model smoke. It defines a tiny independent Paddle classifier and never imports the checkout.
  5. Use workflows for evaluation, fine-tuning, AMP, distributed operation, and facial expression. Consult troubleshooting for recovery.

Coverage

This sub-skill owns supervised classification across ViT, DeiT, SwinTransformer, VOLO, CSwin, PVTv2, BEiT, MobileViT, ViP, XCiT, PiT, HaloNet, PoolFormer, BoTNet, CvT, HVT, TopFormer, ConvNeXt, CoaT, ResT/ResTV2, MLP-Mixer, ResMLP, gMLP, FF_Only, RepMLP, CycleMLP, ConvMixer, ConvMLP, RepLKNet, MobileOne, and MAE fine-tuning/import surfaces. It preserves the same operating conventions for related catalog folders when a task names one, but requires that folder's own README/config/module before asserting a builder or CLI detail.

MAE masked pretraining is not ordinary supervised classification; this route covers its classifier fine-tuning surface and safe config/model inspection. The facial-expression variant has aligned face frames and ABAW annotations, plus all, coarse, and negative label mappings; it is not an ImageNet2012 list-file workflow.

Boundaries and links

  • Do not route object detection, semantic segmentation, GAN, or DINO here.
  • Do not perform generic static export, inference-engine conversion, or deployment benchmarking here; route that to ../deployment-and-operations/SKILL.md.
  • Do not download data/checkpoints, launch full training, or infer benchmark accuracy from a config/smoke result.

Source-root and environment contract

Run a chosen model from its own source directory or put only that directory first on PYTHONPATH; several folders reuse bare module names such as config, datasets, and utils. Importing multiple directories in one interpreter can silently load the wrong module; use a fresh process per model. The bundled scripts deliberately do not use this source-root import convention: they are safe standalone checks.

The verified inspection environment contains PaddlePaddle GPU 2.6.2, yacs 0.1.8, and PyYAML. The repository documents older PaddlePaddle 2.1-era APIs, so a per-family source/API smoke is required before claiming current-runtime compatibility. The observed default ViT fact is vit.build_vit(config) with a [1, 1000] output on gpu:0; it is a shape/import fact only.

Report the selected source-root directory, config and data/checkpoint paths, model builder, preprocessing contract, device/AMP/distributed choice, checks run, and unresolved incompatibilities. Never include machine-specific activation commands or private environment paths in a downstream handoff.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351