Skip to content

[Atlas Inference] Enable torch.compile for the Strix Halo Gated DeltaNet hub kernel - #49453

Merged
vasqu merged 1 commit into
huggingface:mainfrom
AzeezIsh:gdn-rocm-compile-flag
Oct 9, 2026
Merged

vasqu merged 1 commit into
huggingface:mainfrom
AzeezIsh:gdn-rocm-compile-flag

Conversation

@AzeezIsh

@AzeezIsh AzeezIsh commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

CPU CI GPU run-slow

The Strix Halo (gfx1151) entry for Qwen3_5GatedDeltaNet from #49127 pins a revision of Atlas-Inference/gdn whose layers declare can_torch_compile = False. The kernel already traces cleanly under torch.compile, so this bumps the pin to a rebuilt revision that sets the flag, which is needed now that kernels is becoming a default dependency.

  • One line in integrations/hub_kernels.py: the gfx1151 LayerRepository revision moves from dff7b2f to 13462bf (Hub branch v1).

The new revision only flips can_torch_compile to True in layers.py. It was rebuilt with the same pinned kernel-builder from the same kernel sources, still targets gfx1151 only, and produces the same outputs as the current pin on every check below.

What does this PR do?

The revision bump for the gfx1151 entry in integrations/hub_kernels.py.

Verified on Strix Halo (gfx1151), bf16, torch 2.14 + ROCm 7.2, kernels 0.17.1, transformers main:

  • 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 HIP graph capture + replay is bit-identical to eager.

Context: follow-up to #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, compile and end-to-end checks were run on gfx1151 hardware, in-repo unit tests aren't included since the path needs a real gfx1151 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: 37891788163:2
Result: success | Jobs: 16 | Tests: 198,311 | Failures: 0 | Duration: 14h 32m

@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.

Perf

@vasqu
vasqu merged commit 33ab420 into huggingface:main Oct 9, 2026
112 checks passed
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