Skip to content

[Atlas Inference] Fix GB10 Gated DeltaNet hub kernel for transformers 5.17+ and enable torch.compile - #49452

Merged
vasqu merged 1 commit into
huggingface:mainfrom
AzeezIsh:gdn-gb10-kernel-fix
Oct 9, 2026
Merged

vasqu merged 1 commit into
huggingface:mainfrom
AzeezIsh:gdn-gb10-kernel-fix

Conversation

@AzeezIsh

@AzeezIsh AzeezIsh commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

CPU CI GPU run-slow

The GB10 (SM121) entry for Qwen3_5GatedDeltaNet from #46423 pins a revision of Atlas-Inference/gdn that predates the dict-keyed linear-attention cache added in transformers 5.17, so use_kernels=True on 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 layer torch.compile compatible, which is needed now that kernels is becoming a default dependency.

  • One line in integrations/hub_kernels.py: the GB10 LayerRepository revision moves from ef12347 to 531ae67 (Hub branch v0).

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 (including record_past), starts a continuation prefill from the cached recurrent state and conv left-context instead of zeros, and sets can_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, kernels 0.17.1, transformers main:

  • The currently pinned revision crashes at the first decode step. The new revision runs prefill, cached decode, and chunked prefill.
  • torch.compile: 0 graph breaks on prefill and decode; fullgraph=True and mode="reduce-overhead" both run and match eager the kernel ops run inside the compiled graph.
  • torch.library.opcheck passes 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() under torch.compile on Qwen/Qwen3.5-0.8B separate PR coming

Follow-up to #46423 (GB10 entry) and #49127 (Strix Halo entry). The trust_remote_code=True note from those PRs still applies until Atlas-Inference is on the kernels trusted-publisher allowlist.

Code Agent Policy

  • I confirm that this is not a pure code agent PR.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline, Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Requested by the kernels maintainers while making kernels a default dependency.
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests? (Parity and compile checks were run on GB10 hardware; in-repo unit tests aren't included since the path needs a real SM121 GPU and a Hub fetch.)

Who can review?

@vasqu (merged #49127)

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 37891301493:2
Result: success | Jobs: 16 | Tests: 198,227 | Failures: 0 | Duration: 15h 36m

@vasqu vasqu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice thank you 🫡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants