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

serving-deployment

serving-deployment

【部署与运维】Route Qwen CLI, web UI, OpenAI-compatible API, vLLM, FastChat, Docker, TensorRT, Ascend, and DCU serving or deployment workflows.

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

技能说明

GitHub

name: serving-deployment description: "Route Qwen CLI, web UI, OpenAI-compatible API, vLLM, FastChat, Docker, TensorRT, Ascend, and DCU serving or deployment workflows." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Qwen Serving and Deployment

Use this sub-skill when the user wants to run Qwen as an interactive CLI, Gradio web demo, OpenAI-compatible FastAPI server, vLLM/FastChat service, Docker container, TensorRT deployment, Ascend NPU workflow, or Hygon DCU/fastllm deployment.

Safe start

  • Use scripts/qwen_launch_advisor.py to build local CLI/Web/API commands without loading a checkpoint or opening a port.
  • Use scripts/qwen_docker_command_builder.py to build Docker commands without pulling images or running containers.
  • Validate local checkpoint directories before recommending a service launch; Docker scripts and local loaders expect config.json plus tokenizer/model assets.
  • Bind to 127.0.0.1 by default. Use 0.0.0.0, --share, or Docker port publishing only when the user accepts network exposure.

Routes

User requestRead
cli_demo.py, web_demo.py, openai_api.py, flags, endpoint semantics, streaming, BasicAuth, request schemasreferences/local-demos-and-api.md
vLLM worker, FastChat controller/API server, standalone vLLM OpenAI API, tensor parallel, dtype, ChatML templatereferences/vllm-fastchat.md
qwenllm/qwen Docker images, checkpoint mounts, web/API/CLI container commands, logs, cleanupreferences/docker-deployment.md
TensorRT-LLM, Ascend NPU, Hygon DCU, fastllm conversion, vendor device prerequisitesreferences/accelerator-support.md
Port, auth, checkpoint, Docker, GPU, function-calling, public-share, or vendor-runtime failuresreferences/troubleshooting.md

Boundaries

  • For raw model loading or batch inference code, use ../inference-model-loading/SKILL.md.
  • For ReAct/function-calling message conversion and tokenizer/ChatML details, use ../prompting-tool-use-tokenization/SKILL.md.
  • For fine-tuning or GPTQ creation, use ../finetuning-quantization/SKILL.md.
  • For benchmark scripts or repo tests, use ../evaluation-reproduction/SKILL.md.

Side-effect rules

Never start a long-running server, pull a Docker image, publish a Gradio share link, run a container, launch vLLM, or mount a vendor device as a smoke test. First provide a dry-run command, list prerequisites, and ask/confirm when the user wants the side effect.

我的收藏