Skip to content

fix: bump kernels max version for 0.16 compatibility - #47414

Closed
webtecnica wants to merge 1 commit into
huggingface:mainfrom
webtecnica:fix/47312-kernels-compat
Closed

webtecnica wants to merge 1 commit into
huggingface:mainfrom
webtecnica:fix/47312-kernels-compat

Conversation

@webtecnica

@webtecnica webtecnica commented Jul 19, 2026 •

Copy link
Copy Markdown

CI

What this PR does

Fixes compatibility with kernels library version 0.16.0.

The kernels library released version 0.16.0, but transformers had a strict exclusive upper bound of <0.16.0 in both the version check and the dependency constraint. This caused the following error when loading models with use_kernels=True:

ValueError: Kernels are not available. Please install a compatible version (0.15.2 <= version < 0.16.0), e.g. `pip install kernels==0.15.2`

Changes

  • src/transformers/utils/import_utils.py: Bump KERNELS_MAX_VERSION from "0.16.0" to "0.17.0"
  • src/transformers/dependency_versions_table.py: Update constraint from "kernels>=0.15.2,<0.16" to "kernels>=0.15.2,<0.17"

Who can review?

@vasqu

Fixes #47312

The kernels library released version 0.16.0, but transformers had an
exclusive upper bound of <0.16.0, blocking it. Bump KERNELS_MAX_VERSION
from 0.16.0 to 0.17.0 and update the dependency constraint accordingly.

Fixes huggingface#47312

Signed-off-by: webtecnica <marcos@webtecnica.com.br>
@github-actions

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 29689195613:2
Result: failure | Jobs: 15 | Tests: 172,161 | Failures: 1 | Duration: 16h 31m

@vasqu

vasqu commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

I will do this along with #46883 so closing this, sorry

@vasqu vasqu closed this Jul 20, 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.

Incompatible with kernels 0.16

2 participants