Skip to content
Back to skills

Training

ASecurity

"Construct and debug OpenCLIP task-era and legacy training

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
ai-agentspythonbashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill training --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Training?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Training
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-training-ed30a4ef/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-training-ed30a4ef)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: training
description: "Construct and debug OpenCLIP task-era and legacy training
  commands, data loaders, task/loss wrappers, compile, FSDP, precision,
  optimizer, scheduler, and checkpoint options."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Training

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.

## Route Here

- Launch training with `python -m open_clip_train.main` or legacy compatibility training with `python -m open_clip_train.legacy_main`.
- Choose `--dataset-type` among `csv`, `webdataset`, `synthetic`, `webdataset-audio`, `synthetic-audio`, or `auto`.
- Explain dict batch contracts such as `{"image": ..., "text": ...}`, `{"audio": ..., "text": ...}`, nested NaFlex patch/audio dicts, and optional `text_valid` masks.
- Select `CLIPTask`, `SigLIPTask`, `CoCaTask`, `DistillCLIPTask`, `CLAPTask`, `GenLipTask`, or `GenLapTask` behavior via model and CLI flags.
- Tune optimizer, scheduler, precision, gradient accumulation, loss options, `torch.compile`, FSDP2, full/sharded checkpoints, resume/latest, and remote sync.
- Run safe parser and CSV data smoke checks without training.

## Read First

- `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.

## Safe Helpers

- `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.

## Quick Starts

Inspect parser defaults and a planned command:

```bash
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:

```bash
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:

```bash
python -m open_clip_train.main --dataset-type synthetic --train-num-samples 16 --batch-size 4 --epochs 1 --workers 0 --device cpu --model RN50
```

## Boundaries

- Pure model loading, tokenization, preprocessing, embeddings, and inference route to `../model-inference/SKILL.md`.
- CLAP audio model setup, audio zero-shot evaluation, and audio-specific data details route to `../audio-clap/SKILL.md`.
- NaFlex token-budget tuning, patch dictionary details, GenLIP/GenLAP generation behavior, and NaFlex scripts route to `../naflex-generative/SKILL.md`.
- Evaluation metrics, zero-shot/retrieval reporting, checkpoint conversion, export, and Hugging Face publishing route to `../evaluation-conversion/SKILL.md`.

Files in this skill

  • SKILL.md3.4 KB
  • references/checkpoints-distributed.md8.7 KB
  • references/cli-reference.md8.1 KB
  • references/data-formats.md7.5 KB
  • references/task-api.md7.3 KB
  • references/troubleshooting.md8.3 KB
  • scripts/training_arg_report.py6.9 KB
  • scripts/validate_csv_dataset.py7.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.