Skip to content

[feature]支持modelscope的quick start文档测试看护 - #170

Open
yzeyu71 wants to merge 5 commits into
Ascend:mainfrom
yzeyu71:modelscope-quick-start-guard
Open

yzeyu71 wants to merge 5 commits into
Ascend:mainfrom
yzeyu71:modelscope-quick-start-guard

Conversation

@yzeyu71

@yzeyu71 yzeyu71 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 将 workflows 仓库中 ModelScope 的 quick start 看护迁移到 docs 仓库,模式与 [feature]支持peft的quick start文档测试看护 #142 (peft) / ComfyUI 迁移保持一致
  • 新增 sources/modelscope/(index.md + quick_start.md)、tests/modelscope/__init__.py + test_quick_start_ascend.py)、.github/workflows/modelscope-quick-start.yml(薄触发器,调用 quick-start-template 引擎:12h cron + dispatch + PR path 过滤)
  • 测试链路:环境检查 → modelscope 源码安装(最新 release tag + .[framework] extra)→ modelscope download 拉取 Qwen2.5-0.5B-Instruct → 单卡 NPU 文本生成推理(AutoModelForCausalLM + .to('npu:0');modelscope 的 verify_device 白名单不接受 npu,已在文档 Note 中说明)
  • 测试类沿用 ComfyUI 迁移后的约定:DEFAULT_COMMAND_TIMEOUT=3600、CANN env source、CUDA 排除清单、torch 栈探测复用镜像版本、modelscope 缓存校验(diagnose_mount_environment / report_modelscope_state / purge_modelscope_corrupt
  • 索引注册:index.rst 新增 ModelScope 卡片(Whisper.cpp 卡片之后)与 toctree 条目;描述采用 ModelScope 官方 README 的「模型即服务 (MaaS)」表述;图标暂复用 huggingface.png(无 ModelScope 专属图标)
  • 无模型缓存 bind mount:NFS 已挂载 /root/.cache(~/.cache/modelscope 落在其中),与 peft / ComfyUI 触发器一致

Test plan

  • PR 触发 modelscope-quick-start 守护流水线(paths 过滤 sources/modelscope/、tests/modelscope/),NPU runner 上端到端跑通
  • 合入后 workflow_dispatch 手动跑一次,确认 monitor-state-modelscope-* 缓存与 result.json 上传正常
  • 确认 docs 站点构建中 sources/modelscope 页面渲染正常(myst include + admonition)

@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

yzeyu71, thanks for your pull request. All authors of the commits have signed the CLA. 👍

@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

yzeyu71, thanks for your pull request. All authors of the commits have signed the CLA. 👍

@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

yzeyu71, thanks for your pull request. All authors of the commits have signed the CLA. 👍

@github-actions

github-actions Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

📖 文档预览https://ascend.github.io/docs/pr-preview/pr-170/sources/modelscope/

也可打开整站首页

构建自 d61ca573ce204463efc2b6a0b4fbac425c216570
每次推送后自动更新,PR 关闭时自动清理。

github-actions Bot pushed a commit that referenced this pull request Sep 22, 2026
@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

yzeyu71, thanks for your pull request. All authors of the commits have signed the CLA. 👍

…ernal links

- Demote all heading levels in quick_start.md by one (H1->H2, H2->H3, H3->H4)
  to fix duplicate heading when included in index.md
- Add external links section to index.md (GitHub and docs URLs)

Signed-off-by: yangzeyu <yangzeyu7@huawei.com>
@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

yzeyu71, thanks for your pull request. All authors of the commits have signed the CLA. 👍

github-actions Bot pushed a commit that referenced this pull request Sep 22, 2026
Signed-off-by: yangzeyu <yangzeyu7@huawei.com>
@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

yzeyu71, thanks for your pull request. All authors of the commits have signed the CLA. 👍

github-actions Bot pushed a commit that referenced this pull request Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants