data-preparation
Prepare and validate Otter MIMIC-IT data YAMLs, instruction JSON, image parquet/JSON assets, Convert-It outputs, and Syphus preflight.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- data-preparation
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Prepare and validate Otter MIMIC-IT data YAMLs, instruction JSON, image parquet/JSON assets, Convert-It outputs, and Syphus preflight.
- disable-model-invocation
- true
02 资源文件 9
- 参考文档references/convert-it.md5.0 KB
- 参考文档references/data-formats.md5.9 KB
- 参考文档references/large-dataset-conversion.md4.5 KB
- 参考文档references/syphus.md5.1 KB
- 参考文档references/troubleshooting.md5.5 KB
- 脚本scripts/check_syphus_env.py7.6 KB
- 脚本scripts/convert_base64_json_to_parquet.py7.5 KB
- 脚本scripts/templates/mimicit_data.yaml1.3 KB
- 脚本scripts/validate_mimicit_yaml.py15.6 KB
03 SKILL.md 正文
data-preparation
Use this sub-skill when the task is to prepare Otter training data before handing it to training: MIMIC-IT YAML validation, instruction JSON checks, image parquet or legacy base64 JSON handling, Convert-It adapter planning, Syphus instruction-generation preflight, and large dataset conversion safety.
Route here for
- Data YAMLs containing
IMAGE_TEXT,TEXT_ONLY,VIDEO_TEXT, andIMAGE_TEXT_IN_CONTEXTgroups. - Dataset entries with
mimicit_path, optionalimages_path, optionaltrain_config_path,num_samples, and optionaltask_description. - Instruction JSON files with a top-level
dataobject of instruction ids. - Image parquet files with a
base64column indexed by image id, or legacy image JSON files that should be converted to parquet. - Convert-It adapter names and expected image JSON output filenames.
- Syphus environment and dependency preflight without making model/API calls.
- Safe conversion of large base64 JSON files into partitioned parquet outputs.
Route away
- Actual training launch, Accelerate, DeepSpeed, W&B, checkpoint cadence, or GPU training resources: training.
- Model inference, generation, prompt/media tensors, or checkpoint conversion for inference: model-inference.
- Benchmark dataset/model registries and evaluation YAMLs: benchmark-evaluation.
- Controller/worker/Gradio/API serving: serving.
Operating workflow
- Normalize the data task: YAML validation, JSON/parquet conversion, Convert-It source conversion planning, Syphus preflight, or large WebDataset conversion planning.
- For training data YAMLs, read data formats, start from mimicit_data.yaml, and validate with:
python scripts/validate_mimicit_yaml.py DATA.yaml --check-paths --check-records
- For legacy image JSON, convert to parquet before training:
python scripts/convert_base64_json_to_parquet.py images.json images.parquet --validate-sample 8
- For Convert-It tasks, use Convert-It to choose the adapter id and expected output file, then convert the resulting image JSON to parquet if it will be used for training.
- For Syphus tasks, use Syphus and run the no-network preflight:
python scripts/check_syphus_env.py --dataset-name video.DenseCaptions
- For very large conversions, read large dataset conversion before creating shards or parquet directories.
- If validation or loading fails, use troubleshooting before changing dataset contents.
Quick reference map
| Need | Start with |
|---|---|
| MIMIC-IT YAML schema and loader behavior | data-formats |
| Validate YAML, JSON, parquet, and id links | validate_mimicit_yaml.py |
| Convert legacy image JSON to parquet | convert_base64_json_to_parquet.py |
| Convert-It adapter names and outputs | convert-it |
| Syphus env vars, output files, dependency preflight | syphus, check_syphus_env.py |
| MMC4/LAION-style large conversion safety | large-dataset-conversion |
| Common validation and loader failures | troubleshooting |
Safety boundary
Data preparation can touch large local datasets and credentialed services. Do not launch training from this skill. Do not start Syphus API calls, Convert-It media conversion, or multi-shard WebDataset conversion unless the user supplies paths, budget, licensing/credential confirmation, and permission to run the job. The bundled scripts are local validation/preflight/conversion helpers only.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).