Skip to content

Conversation

@MekkCyber
Copy link
Contributor

What does this PR do?

Importing kernels when not installed was causing issues in the CI. Since we have a kernels folder _is_package_availabe assumes the package kernels is available when it's not. This PR simply fixes that by moving the import inside the kernel function that are only executed when we are sure kernels is installed

@HuggingFaceDocBuilderDev

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.

Copy link
Collaborator

@ydshieh ydshieh left a comment

Choose a reason for hiding this comment

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

Thank you. Looks like this is the way to go for now , even if the edge case (very special usage) still show the issue

@MekkCyber MekkCyber merged commit 5b6c209 into main Nov 4, 2025
24 checks passed
@MekkCyber MekkCyber deleted the fix_imports branch November 4, 2025 09:26
yonigozlan pushed a commit to yonigozlan/transformers that referenced this pull request Nov 7, 2025
Abdennacer-Badaoui pushed a commit to Abdennacer-Badaoui/transformers that referenced this pull request Nov 10, 2025
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.

4 participants