界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

data-preparation

data-preparation

【数据与研究】Prepare and validate Otter MIMIC-IT data YAMLs, instruction JSON, image parquet/JSON assets, Convert-It outputs, and Syphus preflight.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: data-preparation 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 metadata: disco-role: operating license: MIT

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, and IMAGE_TEXT_IN_CONTEXT groups.
  • Dataset entries with mimicit_path, optional images_path, optional train_config_path, num_samples, and optional task_description.
  • Instruction JSON files with a top-level data object of instruction ids.
  • Image parquet files with a base64 column 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

  1. Normalize the data task: YAML validation, JSON/parquet conversion, Convert-It source conversion planning, Syphus preflight, or large WebDataset conversion planning.
  2. 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
  1. For legacy image JSON, convert to parquet before training:
python scripts/convert_base64_json_to_parquet.py images.json images.parquet --validate-sample 8
  1. 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.
  2. For Syphus tasks, use Syphus and run the no-network preflight:
python scripts/check_syphus_env.py --dataset-name video.DenseCaptions
  1. For very large conversions, read large dataset conversion before creating shards or parquet directories.
  2. If validation or loading fails, use troubleshooting before changing dataset contents.

Quick reference map

NeedStart with
MIMIC-IT YAML schema and loader behaviordata-formats
Validate YAML, JSON, parquet, and id linksvalidate_mimicit_yaml.py
Convert legacy image JSON to parquetconvert_base64_json_to_parquet.py
Convert-It adapter names and outputsconvert-it
Syphus env vars, output files, dependency preflightsyphus, check_syphus_env.py
MMC4/LAION-style large conversion safetylarge-dataset-conversion
Common validation and loader failurestroubleshooting

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.

我的收藏