training
Operate ECCV2022-RIFE training preflight, Vimeo triplet data layout, distributed CUDA/NCCL launch, TensorBoard logs, checkpoints, and resource planning.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- training
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Operate ECCV2022-RIFE training preflight, Vimeo triplet data layout, distributed CUDA/NCCL launch, TensorBoard logs, checkpoints, and resource planning.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/training.md7.2 KB
- 参考文档references/troubleshooting.md6.8 KB
- 脚本scripts/check_vimeo_triplet_layout.py11.4 KB
03 SKILL.md 正文
ECCV2022-RIFE training sub-skill
Use this sub-skill when the user asks how to train or reproduce ECCV2022-RIFE, prepare the Vimeo90K triplet layout, plan a distributed CUDA launch, interpret world_size and batch size, locate training checkpoints/logs, or diagnose TensorBoard, NCCL, CUDA, and OOM failures.
Route away from this sub-skill when the user asks for image/video interpolation CLI usage, official benchmark interpretation, or model-architecture changes beyond the public Model.update training contract.
Safety boundary
Full training is long-running, mutates the checkout, requires a Vimeo triplet dataset, and uses CUDA/NCCL. Do not start training automatically during routine assistance. Safe default actions are:
- Validate the dataset layout with
scripts/check_vimeo_triplet_layout.py. - Confirm CUDA-enabled PyTorch, TensorBoard, available GPUs, and the intended process count.
- Build or review the launch command without executing it.
- Ensure output directories and checkpoint-overwrite expectations are explicit.
Run the actual distributed command only after the user confirms data availability, GPU allocation, wall-time budget, and that writing train_log/flownet.pkl, train/, and validate/ is acceptable.
Primary references
references/training.md— data layout, launch commands, arguments, checkpoint/log outputs, evaluation loop, and resource planning.references/troubleshooting.md— missing data, TensorBoard, CUDA/NCCL, rank/world-size, OOM, checkpoint overwrite, and long-run safety issues.scripts/check_vimeo_triplet_layout.py— safe no-training validator forvimeo_tripletlist files and sampledim1.png/im2.png/im3.pngsequence files.
Operating checklist
When handling a training request:
- Clarify intent: preflight only, single-GPU smoke planning, full reproduction, resumed/continued experiment, or post-training benchmark use.
- Check data: require
vimeo_triplet/tri_trainlist.txt,vimeo_triplet/tri_testlist.txt, andvimeo_triplet/sequences/<clip>/im1.png,im2.png,im3.pngfor listed clips. The loader uses the first 95% oftri_trainlist.txtfor training and the remaining 5% for validation. - Check runtime: training is CUDA-only in this checkout (
torch.device("cuda"), NCCL process group, DDP whenlocal_rank != -1). TensorBoard is required bytrain.pybut is not listed in the base requirements file. - Plan launch: keep
--world_sizeequal to the launcher process count. The README pattern ispython3 -m torch.distributed.launch --nproc_per_node=4 train.py --world_size=4. - Plan resources: default
--epoch 300, per-process--batch_size 16, and data-loader workers can make a run expensive. The README reports 16 CPUs, 4 GPUs, and about 20G memory for training. - Confirm side effects: checkpoints save to
train_log/flownet.pklafter every epoch, overwriting the same filename; TensorBoard event files go totrain/andvalidate/. - Post-training routing: for metrics, use the evaluation sub-skill; for applying a produced checkpoint to images or videos, use the interpolation sub-skill.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).