Repository navigation
Ascend: opt-in eager bootstrap for Torch 2.6/Triton 3.5 on ARM64 - #16279
Draft
SunXT-0719 wants to merge 1 commit into
Draft
SunXT-0719 wants to merge 1 commit into
SunXT-0719 wants to merge 1 commit into
Conversation
This was referenced Oct 31, 2026
This branch has not been deployed
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.
Cold-importing Unsloth on Linux ARM64 with Torch 2.6 and Triton 3.5 can fail while torch_npu imports Inductor's removed
AttrsDescriptorAPI. Add an explicitly opt-in eager bootstrap before upstream optional probes import Torch.The helper uses Inductor's existing no-Triton metadata fallback only while registering torch_npu, then restores the prior Triton module entry, including on failure. It requires all three flags below, is limited to Linux ARM64 / Torch 2.6 / Triton 3.5, and leaves already initialized processes alone.
UNSLOTH_ASCEND_EAGER_BOOTSTRAP=1 \ TORCH_COMPILE_DISABLE=1 \ UNSLOTH_COMPILE_DISABLE=1 \ python -c 'import unsloth'Related to #10772 and the contribution-process question. This draft asks whether the narrow workaround should live in Core, move to Zoo, or be handled through vendor-stack installation guidance. It does not add a complete Ascend backend or claim PTO speedups.
Validation:
git diff --checkpassed.caf0a3bb7a9429c4390c4c42d8ef257f95437b54; unmodified Zoo was pinned toe2bef95e9077e5707919fbc057f1e51f3b7e565a(2026.10.11).Hardware validation covers this eager-only configuration; CUDA/XPU hardware and compiled NPU execution were not tested. Prepared with AI assistance and local regression/hardware validation.