Buckets:
kernels upload
Use kernels upload to upload built kernels to the Hugging Face Hub.
Usage
kernels upload --repo-id [--branch ] [--private]
What It Does
- This will take care of creating a repository on the Hub with the
repo_idprovided. - If a repo with the
repo_idalready exists and if it contains abuildwith the build variant being uploaded, it will attempt to delete the files existing under it. - Make sure to be authenticated (run
hf auth loginif not) to be able to perform uploads to the Hub.
Examples
Upload a kernel build:
kernels upload ./build --repo-id my-username/my-kernel
Upload to a specific branch:
kernels upload ./build --repo-id my-username/my-kernel --branch dev
Upload as a private repository:
kernels upload ./build --repo-id my-username/my-kernel --private
Options
| Option | Required | Description |
|---|---|---|
--repo-id |
Yes | Repository ID on the Hub (e.g., username/kernel-name) |
--branch |
No | Upload to a specific branch instead of main |
--private |
No | Create the repository as private |
Prerequisites
You must be authenticated with the Hugging Face Hub:
huggingface-cli login
Notes
- The
kernel_dirshould contain the build output (typically thebuild/directory from your kernel project) - If uploading a new variant to an existing repo, only that variant's files are replaced
- Make sure your kernel passes
kernels checkbefore uploading
See Also
- kernels check - Verify kernel compliance before uploading
- kernels init - Create a new kernel project
Xet Storage Details
- Size:
- 1.85 kB
- Xet hash:
- 9c0aba42e3cf0bd8481677bdce6902be99e1ebd012bba881af08fcbdb58fed48
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.