Skip to content

fix: import hf hub helpers from kernels.hf_hub in nightly abi check - #1312

Merged
drbh merged 1 commit into
mainfrom
fix-nightly-kernels-utils-import
Nov 9, 2026
Merged

drbh merged 1 commit into
mainfrom
fix-nightly-kernels-utils-import

Conversation

@drbh

@drbh drbh commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

this pr fixes the nightly abi check, which has been marking every kernel as failed without running kernel-builder check-abi

scripts/run_kernels_checks.py imported from kernels.utils, which was removed in huggingface/kernels#747, so every download failed with No module named 'kernels.utils' and got counted as an abi failure (all 62 kernels in slack and abi-fail in kernel-status). it now uses _get_hf_api and _get_cache_dir from kernels.hf_hub

ran _download_kernel_build('kernels-community/activation') in a python:3.11 container with kernels from main and it fetches all 442 files. check-abi itself will first run on the next nightly

note: kernels and kernel-builder are installed unpinned from main, so this can break again. pinning can be a follow up

kernels.utils was removed upstream (huggingface/kernels#747), so every
kernel download failed with "No module named 'kernels.utils'" and the
nightly reported abi-fail for all kernels without running check-abi.
@drbh
drbh force-pushed the fix-nightly-kernels-utils-import branch from a80f259 to 62e40d2 Compare November 9, 2026 16:59
@drbh
drbh merged commit 760cf40 into main Nov 9, 2026
3 checks passed
@drbh
drbh deleted the fix-nightly-kernels-utils-import branch November 9, 2026 18:40
drbh added a commit that referenced this pull request Nov 30, 2026
this pr fixes the nightly abi check, which has not produced results
since #1312

- import the hub helpers from `kernels._internals.hf_hub` (moved in
huggingface/kernels#1027)
- download and check one variant at a time. `layer-norm` alone is 70 GB
on main so every run hit `No space left on device`
https://github.com/huggingface/kernels-community/actions/runs/44001196862
- record download errors as `error` instead of `fail`
- silence the per request httpx logs that were truncating the job log

Signed-off-by: David Holtz <david.richard.holtz@gmail.com>
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