name: setup-and-command-building
description: "Guides OFA installation, environment checks, PYTHONPATH setup, and
safe train/evaluate command construction."
disable-model-invocation: true
metadata:
disco-role: operating
license: Apache 2.0
setup-and-command-building
Use this sub-skill when a user wants to install OFA, verify the environment, figure out PYTHONPATH or --user-dir, or turn a long distributed shell script into a copyable command.
Trigger phrases
- "How do I run OFA?"
- "Why does
train.py import fail?"
- "What
PYTHONPATH do I need?"
- "Render the caption/VQA/RefCOCO/MMSpeech command for me."
- "Which ports, ranks, or GPUs should I use?"
What this sub-skill owns
- repository installation and minimal verification,
- Fairseq fork visibility and import ordering,
- command shape for
train.py and evaluate.py,
- distributed launch scaffolding and safe launch parameters,
- command rendering for the common OFA task families.
What it excludes
- dataset schemas and row validation ->
data-formats,
- task-specific workflows -> the dedicated workflow sub-skill,
- model/criterion internals ->
model-internals-and-extension.
Read these files
Typical workflow
- Check the environment.
- Confirm the repo root and bundled Fairseq fork are visible to Python.
- Decide which task sub-skill owns the actual workflow.
- Render the command with explicit data, checkpoint, and
selected_cols values.
- Only launch the heavy job after the relevant input validator passes.
Notes
- Most OFA commands are Fairseq launches plus OFA-specific overrides.
- The command renderer is intentionally conservative; it does not guess dataset or checkpoint paths.
- Use CPU-only help checks only for import and parser validation. Do not treat them as proof of GPU readiness.