Skip to content

docs(internlm): migrate main-branch NPU quick start guard - #162

Open
Meihan-chen wants to merge 9 commits into
Ascend:mainfrom
Meihan-chen:codex/migrate-internlm-quick-start
Open

Meihan-chen wants to merge 9 commits into
Ascend:mainfrom
Meihan-chen:codex/migrate-internlm-quick-start

Conversation

@Meihan-chen

Copy link
Copy Markdown
Contributor

Summary

  • add optional fixed_ref support to the shared Quick Start engine in a dedicated first commit
  • migrate the validated InternLM3 single-NPU Transformers inference guide into sources/internlm
  • add dependency constraints, ModelScope cache validation, the project test, and the thin workflow caller
  • add InternLM to the inference/service homepage section and Sphinx navigation

Why fixed_ref

InternLM's current NPU guide postdates its latest GitHub release. The guard therefore tracks main; scheduled runs resolve that branch to its current commit SHA for change detection, while manual and PR runs use the same branch ref. Projects that omit fixed_ref keep the existing latest-release behavior.

Validation

  • python -m unittest tests.doc_test.test_quick_start_template_contract tests.internlm.test_project_contract tests.internlm.test_quick_start_ascend -v
  • parsed the Markdown contract with 7 executable commands and 6 expected-output blocks
  • actionlint .github/workflows/internlm-quick-start.yml
  • the shared template reports only its existing dynamic-source shellcheck warnings
  • Sphinx HTML build succeeds; all emitted warnings are pre-existing in unrelated pages

The NPU workflow retains the proven CANN 9.1 / Torch 2.9 stack, main tracking, serialized execution, persistent ModelScope cache, corrupted-safetensors cleanup, 8B FP16 model, and 180-minute timeout.

@ascend-robot

Copy link
Copy Markdown

CLA Signature Guide

@Meihan-chen , thanks for your pull request.

The following commit(s) are not associated with a signed Contributor License Agreement (CLA).

Commit Reason
16495c86 ci(quick-start): support fixed u... the email used in the commit is not linked to a signed CLA!
please verify that it matches the email you used when signing the CLA.

To sign CLA, click here.

To check if your email is configured correctly, refer to the FAQs.

Once you've signed the CLA or updating your email, please comment /check-cla to revalidate CLA status.

@Meihan-chen

Copy link
Copy Markdown
Contributor Author

/check-cla

@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

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

@github-actions

github-actions Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

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

也可打开整站首页

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

github-actions Bot pushed a commit that referenced this pull request Sep 18, 2026
Preserve the refreshed Quick Start engine and parser, retain fixed_ref tracking for InternLM, and restore PR test decisions for callers that expose pull_request triggers.
github-actions Bot pushed a commit that referenced this pull request Sep 18, 2026
@Devin-DC-Huang

Copy link
Copy Markdown
Contributor
image

@Devin-DC-Huang

Copy link
Copy Markdown
Contributor
image

@Devin-DC-Huang

Copy link
Copy Markdown
Contributor
image

@Devin-DC-Huang

Copy link
Copy Markdown
Contributor
image

@Devin-DC-Huang

Copy link
Copy Markdown
Contributor
image

@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

Meihan-chen, 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 23, 2026
@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

Meihan-chen, 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 23, 2026
@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

Meihan-chen, 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 24, 2026
@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

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

@ascend-robot

Copy link
Copy Markdown

CLA Signature Pass

Meihan-chen, 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 24, 2026
@Devin-DC-Huang

Copy link
Copy Markdown
Contributor

剩一个问题,所有python代码块前面,提醒用户用 python代码执行

This branch has not been deployed

No deployments
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.

3 participants