AGENT SKILL

maestro

Use Maestro for vision-language model fine-tuning, dataset validation, model-specific CLI/API workflows, checkpoints, inference, and troubleshooting.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
maestro
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use Maestro for vision-language model fine-tuning, dataset validation, model-specific CLI/API workflows, checkpoints, inference, and troubleshooting.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

Maestro repo skill

Use this skill when a task involves Maestro, the Python package for streamlined vision-language model (VLM) fine-tuning with Florence-2, PaliGemma 2, and Qwen2.5-VL.

Read first

Choose a route

User task Open
Validate JSONL/COCO data, parse Roboflow identifiers, create DataLoaders, select metrics, or handle device/reproducibility helpers datasets-and-metrics
Build Florence-2 train commands/API calls, load or save Florence checkpoints, run Florence inference, or format Florence <OD> detections florence-2
Fine-tune or infer with PaliGemma 2 for JSON extraction, VQA, OCR-style prompts, LoRA/QLoRA/freeze choices, or PaliGemma checkpoints paligemma-2
Fine-tune or infer with Qwen2.5-VL, build Qwen chat conversations, control pixel bounds, or format Qwen COCO detection JSON qwen-2-5-vl

Install decision points

Maestro's model extras can pull different optional dependencies. Prefer one environment per model family for real training, especially when mixing QLoRA, bitsandbytes, flash-attn, or experimental Qwen support.

pip install maestro
pip install "maestro[florence_2]"
pip install "maestro[paligemma_2]"
pip install "maestro[qwen_2_5_vl]"

For safe package inspection, import checks, dataset validation, formatter checks, and CLI help do not require model downloads. Full fine-tuning and inference may require Hugging Face model access, Roboflow credentials, GPU memory, and large downloads.

Minimal import and CLI checks

python - <<'PY'
from importlib.metadata import version
import maestro
print(version("maestro"))
PY

maestro --help
maestro version
maestro info

Or use bundled diagnostics from this skill tree:

python scripts/check_maestro_environment.py --models all --json
python scripts/maestro_cli_probe.py --include-model-help --json

Common cross-skill rules

  • Validate dataset shape before building a training command. Maestro's common loader expects train, valid, and test splits for training.
  • Use local dataset paths for reproducible runs. Roboflow identifiers require ROBOFLOW_API_KEY and may download data.
  • Use device="auto" unless the user has a specific visible backend requirement.
  • Use model-specific formatter callbacks for COCO object-detection datasets. Florence-2 and Qwen2.5-VL expose formatter helpers; PaliGemma 2 in this Maestro version does not expose a dedicated detection formatter API.
  • CLI options use underscores in this repo (--batch_size, --optimization_strategy, --max_new_tokens). Some bundled config helpers use hyphenated helper flags but emit Maestro-compatible underscore CLI flags.
  • Do not treat safe import/formatter checks as proof that a full GPU fine-tuning run, model download, or Roboflow download will succeed.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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

★ 351