Skip to content

feat: 新增 tgi 的 examples 看护 - #215

Merged
hipudding merged 1 commit into
Ascend:mainfrom
VenusTZZ:main
Oct 14, 2026
Merged

hipudding merged 1 commit into
Ascend:mainfrom
VenusTZZ:main

Conversation

@VenusTZZ

@VenusTZZ VenusTZZ commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

总结

将 TGI 用例看护接入 docs。
manifest 包含 4 条 supported、1 条 unsupported。
定时看护未开启(bring-up 阶段,跑绿几轮后开启);保留手动触发,新增 PR 触发(待 #201 引擎 PR 运行支持合入后效)。
用例本体位于 cosdt fork 的 examples/npu/(tgi-example 分支),非拆分模式:看护对象与看护代码同仓。

变更文件

.github/workflows/tgi-examples.yml:薄触发器、PR 触发及三臂并发组配置。
examples-guards/tgi/examples_manifest.yaml:用例清单、支持情况及 CI 参数。
examples-guards/tgi/constraints-npu.txt:NPU 环境依赖约束。
examples-guards/tgi/scripts/{setup_example,run_example}.sh:环境准备与启动配方(release-opt 增量构建复用 runner 持久卷)。

验证

接入后的 NPU CI 待验证;

Comment thread .github/workflows/tgi-examples.yml Outdated
# rounds are green (same policy as peft-examples.yml / accelerate-examples.yml).
# Re-enable:
# schedule:
# - cron: '30 */6 * * *'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

要开启定时执行,一天一次

- 看护文件:tgi-examples.yml 薄触发器(每日 03:00 北京定时、手动
  dispatch、PR 触发,三臂并发组)+ examples-guards/tgi 清单/约束/脚本
- setup 按 quick_start.md §4 配方构建:系统构建依赖 apt、rust 工具链
  1.85.1、cargo release-opt 编译 launcher+router、uv 安装 server 依赖、
  grpcio-tools/mypy-protobuf 代码生成;构建缓存落持久卷增量复用
- setup 环境持久化:uv 全套环境(UV_SYSTEM_PYTHON 等)供 run 步
  start-tgi.sh 懒装 modelscope;PIP_CACHE_DIR 显式指向共享持久卷,
  torch_npu wheel 跨腿复用避免重复下载
- CUDA 排除清单(constraints-npu.txt)防 nvidia/cuda 依赖误装;
  max_parallel=1(场景独占整机 + cargo 共享 target 锁)
@hipudding
hipudding merged commit c8bf2c9 into Ascend:main Oct 14, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants