docs: add npu tutorial - #762
Merged
Merged
Conversation
curnane-lab
marked this pull request as ready for review
August 10, 2026 12:31
jiapingW
self-requested a review
August 17, 2026 07:05
jiapingW
approved these changes
Aug 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The Ascend NPU managed-local stack landed in #722 but ships no documentation: the two SGLang patches, the device-visibility semantics, and the NPU-only constraints are currently only discoverable from PR descriptions. This PR adds the missing end-to-end Ascend tutorial, following the AMD ROCm template from #698, and ticks the docs checkbox left over from #722.
Modifications
docs/basic_usage/Ascend/ascend_npu.md: new tutorial — installation (--no-deps+ the base/companion capture patches applied in order), data preparation, online training against an external capture server, the one-command managed-local full stack (including a 6:10 capture/trainer override and rerun cleanup), multi-node role split, an NPU troubleshooting list (emptyASCEND_RT_VISIBLE_DEVICESrejected by the driver, USP/yunchang CUDA-only, wildcard Mooncake registration,ACL_ERROR_RT_CONTEXT_NULL, teardown drain TTL), and the validated 16-card A3 reference results from feat(npu): managed-local disaggregated DFlash online training on Ascend NPU #722 with training curves.docs/index.rst: register the tutorial in the Basic Usage toctree next to the ROCm one.Related Issues
Accuracy Test
NA (documentation only). The tutorial's reference results reproduce the validated 16-card A3 run from #722 (loss ~6.0 -> ~2.0 over ~1.18k steps).
Benchmark & Profiling
NA (documentation).
Checklist