Skip to content

Fix two stale hub-kernel tests - #49795

Merged
IlyasMoutawwakil merged 2 commits into
mainfrom
fix-stale-kernel-tests
Oct 20, 2026
Merged

IlyasMoutawwakil merged 2 commits into
mainfrom
fix-stale-kernel-tests

Conversation

@IlyasMoutawwakil

@IlyasMoutawwakil IlyasMoutawwakil commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

馃 Transformers CI

Two tests in tests/kernels/test_kernels.py fail on main. The library code is fine; the tests are stale. Both fixes match #47773.

  • test_kernel_fusion pins revision d582b66 of AntonV/dummy-rmsnorm-mlp-with-transformations-and-init. That revision's weight renaming uses \2. Since Fix AI-written conversion mappings聽#47755, WeightTransform.rename_source_key only expands \1, so down_proj.weight loads as missing and the logits are off. This PR pins the repo's fixed revision 4a46a59, here and in test_faulty_fusion_incomplete_pattern.
  • test_add_to_mapping_local_then_load downloaded kernels-community/layer-norm, whose model-type mirror has no build for current torch. It now loads a mocked kernel from a temporary local repo, as in 馃毃 Kernels=True ?!聽#47773. It no longer needs the Hub or a GPU, so it is no longer slow.

How tested. RUN_SLOW=1 pytest tests/kernels/test_kernels.py: 36 passed, 1 skipped (B200).

馃 Generated with Claude Code

test_kernel_fusion pinned a revision of the dummy kernel repo whose weight
renaming used \2, which rename_source_key no longer expands since #47755.
Pin the repo's fixed revision, here and in test_faulty_fusion_incomplete_pattern.

test_add_to_mapping_local_then_load downloaded kernels-community/layer-norm as a
model repo, whose stale mirror has no build for current torch. Download it as a
kernel repo, as the kernels library does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

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

Also in #47773 if you don't mind let's copy from there?

layer norm is super weird and we should rather rely on dummy kernels here imo

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@IlyasMoutawwakil

Copy link
Copy Markdown
Member Author

done, copied the mocked local-kernel test from #47773 (and the revision pins already match it)

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

@github-actions

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 39448752610:1
Result: success | Jobs: 3 | Tests: 63 | Failures: 0 | Duration: 2m 21s

@IlyasMoutawwakil
IlyasMoutawwakil added this pull request to the merge queue Oct 20, 2026
Merged via the queue into main with commit ec62c60 Oct 20, 2026
32 checks passed
@IlyasMoutawwakil
IlyasMoutawwakil deleted the fix-stale-kernel-tests branch October 20, 2026 16:03
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.

3 participants