docs: refresh for native kernel repo type on the Hub#520
Open
gary149 wants to merge 3 commits intohuggingface:mainfrom
Open
docs: refresh for native kernel repo type on the Hub#520gary149 wants to merge 3 commits intohuggingface:mainfrom
gary149 wants to merge 3 commits intohuggingface:mainfrom
Conversation
- Update discovery URLs from /models?other=kernels to huggingface.co/kernels - Replace landing-page thumbnail with light/dark variants and link to hf.co/kernels - Add migration.md 0.14 section: kernel-only loader, kernel-creation access flow, model-to-kernel repo migration steps - Add Repository type and Trusted publishers sections to kernel-requirements.md (covers trust_remote_code requirement) - Add upload prerequisite note in builder/build.md
|
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. |
danieldk
approved these changes
May 5, 2026
Member
|
Looks awesome, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tried to keep it minimal but still need a quick check @danieldk @drbh - feel free to make changes or add more details directly :) cc @julien-c too btw
Summary
Minimal-touch refresh of the kernels docs to reflect the native Kernel Hub support that shipped at PyTorch Conference Europe (Apr 2026), and corrects a few outdated references.
huggingface.co/models?other=kernels→huggingface.co/kernels(inindex.mdandintegrating-kernels.md).index.md): replace the GitHub attachment with light/dark variants stored inhuggingface/documentation-images(kernels/kernels-thumbnail-{light,dark}.png), wrapped in a link tohuggingface.co/kernels.index.mdframing: one-sentence note that kernels are a first-class Hub repo type with hardware/version pages.migration.md: new## 0.14section covering the kernel-only loader (kernels/src/kernels/utils.pyhardcodesrepo_type="kernel"afterb26b7f6"remove backward compat of model repo types"), kernel-creation access flow, and steps to migrate an existingmodel-type repo.builder/build.md: short prerequisite note abovebuild-and-uploadpointing tohuggingface.co/settings/account("Request Kernels Creation").kernel-requirements.md: new "Repository type" and "Trusted publishers" sections. The latter documents the actual loader behavior — non-trusted publishers raiseValueErrorunless the caller passestrust_remote_code=True— and notes the Hub-sidetrustedKernelPublisherflag.Did not touch:
_toctree.yml,builder/security.md(artifact signing isn't shipped yet), the(./why_kernels.md)link style or other pre-existing relative.mdlinks.Test plan
doc-builder build kernels docs/source/ --htmlbuilds clean/docs/kernels/main/en/{index,migration,builder/build,kernel-requirements,integrating-kernels})