AGENT SKILL

pytorch-training

Configure and inspect face.evoLVe PyTorch training, validation, checkpoints, and model components.

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

01 前言 Front Matter

name
pytorch-training
license
MIT
metadata
{ "disco-role": "operating" }
description
Configure and inspect face.evoLVe PyTorch training, validation, checkpoints, and model components.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

face.evoLVe PyTorch Training Router

Use this sub-skill when a task is about face.evoLVe PyTorch training configuration, PyTorch model/backbone/head/loss inspection, legacy PyTorch training-source repair, checkpoint naming/resume behavior, validation during training, or GPU/CPU training expectations.

Do not use this sub-skill for identity-folder creation or low-shot pruning; route those to data-preparation. Route MTCNN alignment and crop generation to face-alignment, post-training checkpoint feature extraction or ROC verification to feature-extraction-verification, and PaddlePaddle training/deployment workflows to paddle-workflows.

Read or run these bundled files

  • Read references/training-workflows.md when you need the end-to-end PyTorch config, data-loader, train/validate, checkpoint, tiny-smoke, or skip/full-training decision flow.
  • Read references/model-api-reference.md when you need supported ResNet/IR/IR-SE backbones, advanced source backbones, head signatures, loss signatures, and stable-versus-experimental API status.
  • Read references/configuration.md before editing config.py values such as BACKBONE_NAME, HEAD_NAME, LOSS_NAME, data/checkpoint/log roots, optimizer schedule, MULTI_GPU, and GPU_ID.
  • Read references/troubleshooting.md when PyTorch training or component inspection fails with syntax errors, missing validation data, bcolz/numpy issues, head.metrics import errors, GPU placement problems, checkpoint mismatches, or BatchNorm/tiny-batch issues.
  • Run scripts/inspect_pytorch_components.py for a safe parser/import/signature/CPU tensor-shape check of PyTorch components without launching full training.

Operating defaults

  • Prefer README-supported training combinations first: IR_SE_50 or IR_50 backbone, ArcFace head, and Focal or softmax cross-entropy loss.
  • Treat full PyTorch training as a user-checkout operation that needs datasets, validation arrays, checkpoint/log directories, compatible dependencies, and usually CUDA GPUs. This sub-skill does not provide a bundled full-training launcher.
  • Use the bundled inspection script before modifying full training code. It imports backbone/head/loss modules directly and intentionally avoids importing or executing the training entrypoint.
  • If a task asks for an executable tiny CPU smoke, keep it to model/head/loss construction and one synthetic forward pass unless the user supplies a deliberately tiny ImageFolder fixture and accepts source repair work.

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