Skip to content
Back to skills

Training And Adapters

ASecurity

"Prepare and reason about DeTikZify training, pretraining,

  • 247 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 8, 2026
toolspythonbashnoderailsapi

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Training And Adapters?

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

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

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-and-adapters
description: "Prepare and reason about DeTikZify training, pretraining,
  refinement, sketchification, TikZero adapter workflows, checkpoints, and
  distributed GPU launch patterns."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Training and Adapters

Use this sub-skill when the task is about fine-tuning, pretraining, refinement, sketchification, TikZero adapter work, distributed GPU launch patterns, or checkpoint recovery in DeTikZify.

Route away from this sub-skill when the task is only about one-off inference, the browser UI, or evaluation metrics.

## Fast Path

1. Confirm the package and GPU environment are healthy:
   ```bash
   python scripts/api_smoke.py
   ```
2. Read the workflow reference before starting a long run:
   ```text
   references/workflows.md
   ```
3. Check the training-specific failure modes if the launch uses DeepSpeed, TRL, or adapter checkpoints:
   ```text
   references/troubleshooting.md
   ```

## What This Sub-Skill Owns

- standard fine-tuning on DaTikZ-style data
- projection pretraining on large figure datasets
- GRPO / self-feedback refinement workflows
- sketchification and sketch-augmented training data generation
- TikZero adapter pretraining and end-to-end adapter fine-tuning
- checkpoint resumption, `WORLD_SIZE`, `RANK`, and distributed GPU launch concerns
- DeepSpeed and gradient-checkpointing choices

## Common Decisions

- Use `torchrun --nproc_per_node gpu` for the repo's GPU-first training scripts.
- Use `deepspeed` only when the job needs it; do not add it to every run by default.
- Use `gradient_checkpointing` when memory pressure matters more than speed.
- Watch the output directory handling: some flows resume from the last checkpoint unless `overwrite` or a fresh directory is chosen.
- Keep the dataset requirements explicit: DaTikZ, ArxivCap, SPIQA, OpenMoji, adapter checkpoints, and sketch/parquet artifacts are workflow-specific.
- Treat `examples/refine.py` as the most dependency-heavy path because it needs TRL vision support plus compile-backed rewards.

## Bundled References

- [references/cli-reference.md](references/cli-reference.md): command-line arguments, launch patterns, and output behavior.
- [references/workflows.md](references/workflows.md): end-to-end training, pretraining, refinement, and TikZero recipes.
- [references/troubleshooting.md](references/troubleshooting.md): long-run failures, missing dependencies, checkpoint, and distributed training issues.

## Guardrails

- These workflows are intentionally expensive. Use them only when the user actually wants to train or refine a model.
- Do not assume CPU fallback is adequate for the repo's training paths.
- Do not start from the UI or inference sub-skill when the task is mainly about gradients, checkpoints, or dataset transforms.

Files in this skill

  • SKILL.md2.8 KB
  • references/cli-reference.md1.3 KB
  • references/troubleshooting.md1.5 KB
  • references/workflows.md1.8 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.