La interfaz está localizada; las descripciones y documentos de las Skills se traducen automáticamente con IA a su idioma. El código, los comandos, rutas y términos técnicos se mantienen en el original, y prevalece el documento del autor.
Explorar Skills
Productividad · 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.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentación de la Skill

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
Skills guardadas