Repository navigation
docs: document the kernels cache - #997
Open
PredictiveManish wants to merge 1 commit into
Open
PredictiveManish wants to merge 1 commit into
PredictiveManish wants to merge 1 commit into
Conversation
|
Hi @PredictiveManish, thanks for your interest in contributing! This project requires that pull request authors are vouched, and you are not in the list of vouched users. This PR will be closed automatically. See https://github.com/huggingface/kernels/blob/main/CONTRIBUTING.md for more details. |
Member
|
Cc: @stevhliu |
|
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. |
This branch has not been deployed
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.
Related issue
Closes #838
What does this PR do?
Adds
docs/source/cache.md, a page documenting the kernels cache: where itlives, how it is laid out on disk, how to inspect it, and how to use it offline.
Motivation
#838 asks for the kernels cache to be documented in more depth. @stevhliu
suggested in the issue that this be a new
cache.mdpage rather than anexpansion of
env.md, withenv.mdlinking to it, a short inspection examplelinking to
cli-cache.md, a short paragraph on verification receipts linking tosecurity.md, and no FAQ entry. This PR follows that outline.Changes
docs/source/cache.md: cache location and precedence(
KERNELS_CACHE->HF_HUB_CACHE->HUGGINGFACE_HUB_CACHE->$HF_HOME/hub->
$XDG_CACHE_HOME/huggingface/hub->~/.cache/huggingface/hub), on-disklayout (
snapshots/,blobs/,refs/,.verified-kernels/), inspection withkernels cache ls, offline use withHF_HUB_OFFLINE=1, and cleanup notes.cacheto the "Use kernels" section ofdocs/source/_toctree.yml.docs/source/env.md: link theKERNELS_CACHEentry to the new page, and addan
HF_HUB_OFFLINEentry. Happy to drop the latter if you'd rather keep thisfile untouched.
docs/source/cli-cache.mdanddocs/source/security.md: link back to the newpage.
Testing
Docs-only change, no code paths touched. I verified that every relative link and
anchor in
docs/sourceresolves, and checked the page's claims againstkernels/hf_hub.py,kernels/_versions.py,kernels/cli/cache.py,kernels/digest.py,kernels-common/src/hf.rsandkernels-common/src/signing/receipt.rs. I did not rundoc-builderlocally; thebuild_pr_documentationCI job will render it.Checklist