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

serving-and-triton

serving-and-triton

【部署与运维】Construct Towhee API services and Triton-serving artifacts while avoiding routine side-effectful server, Docker, or GPU execution.

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

技能说明

GitHub

name: serving-and-triton description: "Construct Towhee API services and Triton-serving artifacts while avoiding routine side-effectful server, Docker, or GPU execution." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Towhee Serving and Triton

Use this sub-skill when the task is about exposing Towhee pipelines/functions as HTTP or gRPC services, shaping towhee server commands, planning Triton model repositories/images, or calling a Towhee Triton pipeline remotely.

Route first

  • For APIService, api_service.build_service, route registration, HTTP/gRPC startup command shapes, and client request expectations, use service workflows.
  • For AutoConfig.TritonCPUConfig, AutoConfig.TritonGPUConfig, towhee.build_pipeline_model, towhee.build_docker_image, Triton model repository layout, Docker/GPU prerequisites, and triton_client.Client, use Triton workflows.
  • For import/dependency failures, schema mistakes, port conflicts, Docker daemon issues, GPU/CUDA mismatches, oversized images, or decisions to stop instead of launching side-effectful builds, use troubleshooting.
  • For routine validation, run the API service smoke script. It constructs service objects and an optional tiny local pipeline only; it does not start HTTP/gRPC servers, Docker, Triton, or GPU work.

Operating boundaries

  • Keep routine checks local and object-level. Do not start long-lived web servers, docker build, docker run, tritonserver, or GPU jobs unless the user explicitly asks for deployment and has confirmed the environment.
  • Treat pipeline authoring details as owned by the Towhee pipeline-programming skill; this sub-skill covers how an already chosen pipeline/service is exposed or packaged for serving.
  • Prefer explicit route paths, explicit IO models, and a small smoke call of the Python route function before advising live HTTP/gRPC or Triton deployment.
我的收藏