huggingface/publish-to-the-kernel-hub
Build a kernel using Nix and publish to Hugging Face Kernel Hub
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| kernel-path | Path to the kernel directory (default: repo root) | no | . |
| build-target | Nix build target (e.g., ci, build-and-upload, redistributable.torch29-cxx11-cu126-x86_64-linux) | no | ci |
| nix-command | Nix command to use (build or run) | no | build |
| verbose | Enable verbose Nix output (-L flag) | no | true |
| artifact-name | Name for the uploaded artifact | no | kernel |
| upload-artifact | Whether to upload the built kernel as an artifact | no | true |
| cachix-name | Cachix cache name for Nix caching | no | huggingface |
| cachix-auth-token | Cachix authentication token | no | "" |
| nix-max-jobs | Maximum number of parallel Nix build jobs | no | 4 |
| nix-cores | Number of cores per Nix build job | no | 12 |
| sandbox-mode | Nix sandbox mode (fallback, relaxed, true, false) | no | fallback |
| extra-nix-conf | Additional Nix configuration lines (newline-separated) | no | "" |
| hf-token | Hugging Face token for publishing to Kernel Hub | no | "" |
| hf-repo | Hugging Face repository to publish to (e.g., username/kernel-name) | no | "" |
| publish | Whether to publish to Hugging Face Kernel Hub | no | false |
Outputs
| name | description |
|---|---|
| kernel-path | Path to the built kernel |
| artifact-name | Name of the uploaded artifact |