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

serving

serving

【效率与协作】Guide Otter controller, worker, Gradio, local CLI, endpoint, import, port, and load-bit serving workflows.

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

技能说明

GitHub

name: serving description: "Guide Otter controller, worker, Gradio, local CLI, endpoint, import, port, and load-bit serving workflows." disable-model-invocation: true metadata: disco-role: operating license: MIT

Otter serving sub-skill

Use this sub-skill when the task is to expose Otter or Flamingo generation through a local controller/worker service, Gradio image/video UI, direct text-generation CLI, or HTTP streaming endpoint.

Route here for

  • Controller, model-worker, Gradio image UI, Gradio video UI, worker registration, heartbeats, and queue dispatch.
  • Model-worker options such as --checkpoint_path, --model_name, --num_gpus, --load_bit, controller/worker URLs, and concurrency.
  • Streaming request payloads containing prompt, optional base64 image/video frames, and generation_kwargs.
  • Debugging known serving import problems, dependency/version issues, missing constants, bad ports, registration failures, and GPU/load-bit problems.
  • Local text-only CLI generation with --model-name, --device, --num-gpus, and conversation templates.

Route away

  • Ad hoc package/API inference or YAML batch prompt files: model-inference.
  • Training, finetuning, Accelerate/DeepSpeed, and checkpoint save cadence: training.
  • Benchmark configs and evaluator registries: benchmark-evaluation.
  • MIMIC-IT data conversion, Syphus, and schema validation: data-preparation.

Operating workflow

  1. Decide whether the user needs a three-process web demo, a direct local CLI, or endpoint/API debugging.
  2. Read serving topology for controller, worker, Gradio, and local CLI roles.
  3. Generate safe command templates with build_serving_commands.py. The helper prints commands only; it never starts servers or loads models.
  4. Before launching anything, run check_serving_imports.py in the target environment. Use --repo-root only when the user is working in an Otter checkout and wants checkout-specific diagnostics.
  5. For endpoint shapes and worker payloads, read API reference.
  6. For failures involving pipeline.constants, Gradio versions, worker registration, GPU memory, image payloads, or stalled streaming, use troubleshooting.

Quick reference map

NeedStart with
Three-process controller + worker + Gradio planserving topology
Generate commands with custom ports/model pathbuild_serving_commands.py
Check imports without starting servicescheck_serving_imports.py
Understand controller/worker endpointsAPI reference
Diagnose missing pipeline.constants or flamingo importtroubleshooting
Choose fp16, bf16, int8, int4, or fp32serving topology

Safety boundary

Serving launches long-running processes, opens network ports, can download or load large checkpoints, and may allocate multiple GPUs. Do not start controller, worker, Gradio, or Flask services unless the user supplies the model/checkpoint, host/port policy, GPU budget, and explicit permission to launch them.

我的收藏