인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
생산성 및 협업 · SKILL.md

serving

serving

Guide Otter controller, worker, Gradio, local CLI, endpoint, import, port, and load-bit serving workflows.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

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.

저장한 Skills