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

model-inference

model-inference

【效率与协作】Use installed otter-ai for Otter, Flamingo, and OtterHD inference, YAML batch prompts, Hugging Face loading, and checkpoint conversion.

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

技能说明

GitHub

name: model-inference description: "Use installed otter-ai for Otter, Flamingo, and OtterHD inference, YAML batch prompts, Hugging Face loading, and checkpoint conversion." disable-model-invocation: true metadata: disco-role: operating license: MIT

model-inference

Use this sub-skill when the task is to run or prepare model inference with the installed otter-ai package, load Otter or Flamingo checkpoints through Hugging Face APIs, construct prompt/media tensors, validate YAML batch inference inputs, or plan checkpoint conversion.

Route here for

  • OtterForConditionalGeneration or FlamingoForConditionalGeneration loading, forward, and generate calls.
  • OtterConfig construction or saved-config inspection.
  • Otter image/no-image prompts, Flamingo-compatible media conditioning, and OtterHD/Fuyu demo-style prompts.
  • YAML batch inference files with question and optional image_path fields.
  • Precision, Flamingo-to-Otter, PT-to-HF, or LoRA checkpoint conversion planning.

Route away

  • Training, finetuning, distributed launch, DeepSpeed, W&B, or checkpoint training cadence: training.
  • Controller/worker/Gradio serving, long-running web processes, or HTTP endpoint payloads: serving.
  • Benchmark dataset/model registries, GPT-judged evaluation, or benchmark configs: benchmark-evaluation.
  • MIMIC-IT data schemas, Convert-It adapters, Syphus instruction generation, or data conversion: data-preparation.

Operating workflow

  1. Classify the task as direct API inference, YAML batch inference, or checkpoint conversion.
  2. For direct API inference, read API reference for imports, installed signatures, tensor shapes, prompt templates, and generated-output decoding.
  3. For YAML batch inference, validate inputs first with validate_inference_yaml.py, then follow workflows.
  4. For conversion, inspect the safe conversion manifest with inspect_checkpoint_conversion_args.py, then follow conversion. The helper does not load checkpoints.
  5. If loading or generation fails, use troubleshooting before changing dependencies, model dtype, device placement, or prompt format.

Quick reference map

NeedStart with
Import/load Otter or Flamingo modelAPI reference
Build vision_x, lang_x, attention_maskAPI reference
Run a YAML batchworkflows
Validate an inference YAML filevalidate_inference_yaml.py
Estimate memory/device placementworkflows
Plan checkpoint conversionconversion
Diagnose xformers, import, tensor shape, or conversion errorstroubleshooting
我的收藏