Skip to content

Fix hub kernels compatibility with kernels>=0.15.0 - #46293

Closed
jshn9515 wants to merge 2 commits into
huggingface:mainfrom
jshn9515:fix-kernels
Closed

jshn9515 wants to merge 2 commits into
huggingface:mainfrom
jshn9515:fix-kernels

Conversation

@jshn9515

Copy link
Copy Markdown

What does this PR do?

Fixes #46291

This PR fixes the hub_kernels.py version error introduced by kernels>=0.15.0.

Starting from kernels v0.15.0, Hub-backed kernel repositories must specify either a version or a revision. This PR adds explicit versions to the affected kernel repository definitions. Since this only adds version metadata, it should remain compatible with earlier kernels versions.

This PR also updates two kernel repository names. According to the documentation, the previous names are marked for removal.

cc @drbh

Copilot AI review requested due to automatic review settings May 29, 2026 23:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Pins kernel layer/func repositories to version=1 and updates several kernels-community repo IDs from underscore to hyphen naming (e.g., liger_kernels → liger-kernels, mlx_rmsnorm → mlx-rmsnorm).

Changes:

  • Added version=1 to all LayerRepository and FuncRepository entries in the kernel mapping.
  • Renamed several repo IDs to use hyphens instead of underscores.
  • Removed a stale # revision="pure-layer-test" comment on the RMSNorm entry.

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.

Will be fixed in #46039, still need to fix some details but it should be better than arbitrarily modifying these strings (as e.g. liger-kernels is not 100% compatible OOB)

@jshn9515 jshn9515 Jun 1, 2026 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Sounds good, thanks! I’ll close this PR then.

@jshn9515 jshn9515 closed this Jun 12, 2026
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.

Importing transformers.pipelines fails with kernels v0.15: kernels now requires version or revision

3 participants