Repository navigation
[Atlas Inference] Fix GB10 Gated DeltaNet hub kernel for transformers 5.17+ and enable torch.compile - #49452
Merged
Conversation
Contributor
CI recapDashboard: View test results in Grafana |
5 of 6 tasks
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.
The GB10 (SM121) entry for
Qwen3_5GatedDeltaNetfrom #46423 pins a revision ofAtlas-Inference/gdnthat predates the dict-keyed linear-attention cache added in transformers 5.17, souse_kernels=Trueon a DGX Spark fails at the first decode step (AttributeError: 'dict' object has no attribute 'to'). This bumps the pin to a revision that fixes the cache handling and declares the layertorch.compilecompatible, which is needed now thatkernelsis becoming a default dependency.integrations/hub_kernels.py: the GB10LayerRepositoryrevision moves fromef12347to531ae67(Hub branchv0).The new revision only changes the kernel's Python
layers.py; the compiled SM121 ops are byte-identical. It reads per-layer states from the dict-keyed cache (includingrecord_past), starts a continuation prefill from the cached recurrent state and conv left-context instead of zeros, and setscan_torch_compile = True.Dense and MoE share the same layer class, as before.
What does this PR do?
The revision bump for the GB10 entry in
integrations/hub_kernels.py.Verified on GB10 (SM121), bf16, torch 2.12 + CUDA 13.0,
kernels0.17.1, transformersmain:torch.compile: 0 graph breaks on prefill and decode;fullgraph=Trueandmode="reduce-overhead"both run and match eager the kernel ops run inside the compiled graph.torch.library.opcheckpasses for every op the layer calls (schema, fake tensor, AOT dispatch with dynamic shapes), and CUDA graph capture + replay is bit-identical to eager.The same layer code on Strix Halo (gfx1151) matches the torch fallback token for token through
generate()undertorch.compileonQwen/Qwen3.5-0.8Bseparate PR comingFollow-up to #46423 (GB10 entry) and #49127 (Strix Halo entry). The
trust_remote_code=Truenote from those PRs still applies untilAtlas-Inferenceis on thekernelstrusted-publisher allowlist.Code Agent Policy
Before submitting
kernelsa default dependency.Who can review?
@vasqu (merged #49127)