Skip to content

[feature] 迁移 FlagScale Quick Start 并接入看护 - #160

Open
licy666 wants to merge 10 commits into
Ascend:mainfrom
licy666:feat/flagscale-quick-start
Open

licy666 wants to merge 10 commits into
Ascend:mainfrom
licy666:feat/flagscale-quick-start

Conversation

@licy666

@licy666 licy666 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • flagos-ai/FlagScale 昇腾 Quick Start 迁到 sources/flagscale/。装 vLLM 改为统一三步 pip(vllm / vllm-ascend 0.23.0,最后强制重装 triton-ascend),不再源码编译 vLLM / vllm-ascend;模型改为 Hugging Face Qwen/Qwen2.5-0.5B;双卡离线推理的预期输出含 device_type npubackend=hccloutput.outputs[0].text=
  • 接入共享引擎:薄触发器 flagscale-quick-start.ymllinux-aarch64-a2-2,不传 container_options / --volume)+ tests/flagscale 子类;首页推理区增加卡片和 toctree。

相对源仓的刻意差异

  • 源仓用 ModelScope、GitHub 代理、--volumeVLLM_TARGET_DEVICE=empty 源码编译。香港 A2 直连官方 URL,模型走 Hub 默认缓存。
  • vllm-plugin-FL 官方表是 0.20.20.24.0。本文跟已跑通的文档引擎配了对,钉 vLLM 0.23.0 官方 wheel,插件用接近 0.24 的 v0.3.0-rc1.post1。若 NPU 上插件 API 对不上,再单独改插件 tag,不要退回源码编 vLLM。

Test plan

  • 本机解析块数 > 0(6 条 #test + 3 条 #test-setup)、可见正文泄漏检查、actionlint、测试文件 py_compile
  • 合入后在香港 A2 上 workflow_dispatch 跑冷/热缓存;fork PR 的 doc_url 会 404,属预期
  • 探针块出现 platform_name PlatformFL / device_type npu / dist_backend hccl;推理块出现 backend=hccloutput.outputs[0].text=
  • 热缓存下 Hugging Face Hub 的 0.5B 权重应命中 /root/.cache/huggingface/hub,可见块不再完整下载

@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

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

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

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

也可打开整站首页

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

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

Copy link
Copy Markdown

CLA Signature Pass

licy666, 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 9, 2026
@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

licy666, 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 9, 2026
@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

licy666, 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 10, 2026
@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

licy666, 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 10, 2026
@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

licy666, 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 10, 2026
@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

licy666, 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 10, 2026
@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

licy666, 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 10, 2026
@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

licy666, 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 10, 2026
@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

licy666, 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 10, 2026
@licy666
licy666 force-pushed the feat/flagscale-quick-start branch from f02aa24 to 9bad828 Compare September 21, 2026 02:25
@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

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

把 flagos-ai/FlagScale 的昇腾 Quick Start 迁到本仓共享引擎:文档改为 #test 方言、模型走 Hugging Face、vLLM 改官方三步 wheel,避免源码编译与大陆代理路径。
vllm-plugin-FL v0.3.0-rc1.post1 会调用 vLLM 0.24 才有的
logical_device_id_to_visible_device_id;0.23 上该方法为 None,
双卡 inference worker 启动即 TypeError。
vLLM 0.24 的 CudaCommunicator 会 import flashinfer.comm;该包在 import 时断言 libcudart,昇腾双卡 worker 启动即崩。
triton-ascend 3.2.2 不接受 FlagGems 5.3.4 的 chained or,双卡加载模型时 pow_scalar 编译失败。用官方 VLLM_FL_FLAGOS_BLACKLIST_APPEND 改走 torch_npu。
社区 vLLM 0.24 用 AttentionBackendEnum 查找后端,不认识插件返回的 ASCEND_FL,加载 Qwen2 时会直接失败。
triton-ascend 编不了 FlagGems 5.3.4 的昇腾 copy/pow kernel,加载权重时会在 _copy_kernel 上以 coreDim=0 退出。
vLLM 0.24 的 model runner 会读 supports_update_block_table,插件 tag 里的 Ascend builder 没有这个属性,生成第一批 token 时会 AttributeError。
去掉 FlagGems 与 vLLM FL 插件及本地改源,改用 vLLM 0.23.0 + vllm-ascend 0.23.0,避免再为 FL 接口打补丁。
@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

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

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