技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
training【数据与研究】Construct and debug OpenCLIP task-era and legacy training commands, data loaders, task/loss wrappers, compile, FSDP, precision, optimizer, scheduler, and checkpoint options.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when an agent needs to build or troubleshoot OpenCLIP training commands, data layouts, task/loss wrappers, optimizer/scheduler settings, precision, torch.compile, distributed/FSDP, or checkpoint/resume behavior.
python -m open_clip_train.main or legacy compatibility training with python -m open_clip_train.legacy_main.--dataset-type among csv, webdataset, synthetic, webdataset-audio, synthetic-audio, or auto.{"image": ..., "text": ...}, {"audio": ..., "text": ...}, nested NaFlex patch/audio dicts, and optional text_valid masks.CLIPTask, SigLIPTask, CoCaTask, DistillCLIPTask, CLAPTask, GenLipTask, or GenLapTask behavior via model and CLI flags.torch.compile, FSDP2, full/sharded checkpoints, resume/latest, and remote sync.references/cli-reference.md for command construction, default parser facts, and option families.references/data-formats.md for CSV, WebDataset, synthetic, audio, dict batch, and validation contracts.references/task-api.md for TrainingTask wrappers, loss creation, batch preparation, and dummy batches.references/checkpoints-distributed.md for resume, checkpoint, FSDP, compile, precision, optimizer, and scheduler decisions.references/troubleshooting.md for common failures and fixes.scripts/training_arg_report.py imports open_clip_train.params.parse_args, parses OpenCLIP training args, and prints selected defaults/options without constructing models, data loaders, or training.scripts/validate_csv_dataset.py validates CSV/TSV image path and caption columns, optional separators/keys, numeric-caption stringification, and image path existence without loading OpenCLIP or starting training.Inspect parser defaults and a planned command:
python sub-skills/training/scripts/training_arg_report.py -- --dataset-type csv --train-data DATA/train.tsv --model ViT-B-32
Validate a TSV dataset before training:
python sub-skills/training/scripts/validate_csv_dataset.py DATA/train.tsv --image-key filepath --caption-key title --separator tab
Minimal CPU-safe synthetic smoke command shape:
python -m open_clip_train.main --dataset-type synthetic --train-num-samples 16 --batch-size 4 --epochs 1 --workers 0 --device cpu --model RN50
../model-inference/SKILL.md.../audio-clap/SKILL.md.../naflex-generative/SKILL.md.../evaluation-conversion/SKILL.md.