otter
Operate Otter multimodal model inference, MIMIC-IT data preparation, training, evaluation, and serving workflows.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- otter
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Operate Otter multimodal model inference, MIMIC-IT data preparation, training, evaluation, and serving workflows.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/installation.md4.0 KB
- 参考文档references/repo-provenance.md2.2 KB
- 参考文档references/repo-routing-metadata.json543 B
- 参考文档references/troubleshooting.md3.7 KB
- 脚本scripts/check_otter_environment.py4.4 KB
03 SKILL.md 正文
Otter repo skill
Use this repo skill when the task involves Otter, OtterHD, OpenFlamingo-style multimodal in-context instruction tuning, MIMIC-IT data, Otter model checkpoints, Otter benchmark evaluation, or the repo's controller/worker/Gradio serving stack.
Otter is a multimodal model codebase for image/video/text instruction tuning and evaluation. The installable distribution is otter-ai, imported as otter_ai; many workflow scripts live in a target Otter checkout rather than the Python package, so this skill provides bundled validators and command builders instead of requiring the source checkout used to create the skill.
First steps
- Read repository provenance when checking whether this skill matches a checkout or deciding whether to refresh it.
- For installation and import checks, read installation and run the safe bundled probe:
python scripts/check_otter_environment.py --json
- Route to the narrowest sub-skill below. Keep heavyweight jobs opt-in: model downloads, training, benchmark datasets, API calls, and servers all require explicit user approval.
- If a cross-cutting dependency or backend error appears before a workflow is chosen, start with troubleshooting.
Sub-skill routes
| Task signal | Read |
|---|---|
Load OtterForConditionalGeneration, call generate, build vision_x/lang_x, validate batch inference YAML, or plan checkpoint conversion |
model-inference |
| Construct SFT, OtterHD/Fuyu finetuning, pretraining, Accelerate, DeepSpeed, W&B, checkpoint, or offline commands | training |
| Validate MIMIC-IT YAML, instruction JSON, image parquet/JSON, Convert-It adapters, Syphus preflight, or large data conversion | data-preparation |
| Configure benchmark YAMLs, supported model/dataset registry names, GPT-judged benchmark credentials, or output/cache paths | benchmark-evaluation |
| Plan or debug controller, model worker, Gradio, local CLI, worker registration, endpoints, ports, and load-bit serving | serving |
Installation quick notes
- Preferred public setup for a target checkout: Python 3.9, then
python -m pip install -e .or the repo's documented Conda environment. - The package metadata pulls a broad stack for training, serving, benchmarks, and APIs. For pure package inspection, verify
otter_aiimports before running large workflows. - The inspected compatible stack used
transformers==4.35.1,tokenizers==0.14.1,huggingface_hub==0.17.3,accelerate==0.23.0, andpeft==0.4.0. Neweraccelerate/peftcan require newer Hugging Face Hub APIs and break imports with the repo-pinned Transformers version. - CUDA was available during construction and a tiny torch CUDA allocation passed, but no model checkpoints, datasets, benchmark runs, servers, Syphus API calls, or training jobs were executed.
Backend and safety boundaries
- CPU/import/parser checks can validate routing, schemas, and command construction.
- Real Otter/OtterHD generation, training, model-worker serving, and most benchmark runs are optional GPU-heavy workflows; CPU checks are not proof that those workloads fit in memory or run at target throughput.
- Syphus and some benchmark judges require API credentials or a local OpenAI-compatible service. Do not run them without explicit credential and cost approval.
- Serving opens ports and starts long-lived processes. Use the serving sub-skill's builders and preflight checks before launch.
Common workflow handoffs
- Prepared a MIMIC-IT YAML and want to train: validate it with data-preparation, then build the launch command with training.
- Need to evaluate a model checkpoint: use benchmark-evaluation for benchmark YAML validation, then model-inference if a failure is about prompt/media tensors.
- Need a web demo: verify imports with serving, then debug model loading with model-inference if the worker cannot instantiate Otter.
What this skill deliberately does not do
- It does not prove full GPU training/generation throughput or model quality.
- It does not include model weights, datasets, private credentials, or external downloads.
- It does not require the checkout used during skill creation; when a workflow needs repo scripts, this skill gives distilled commands, validators, wrappers, and troubleshooting for a target Otter checkout or deployment.
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).