Buckets:

HuggingFaceDocBuilder's picture
|
download
raw
1.66 kB

kernels info

Use kernels info to describe a kernel from a Hub repo ID or a local path. It prints the kernel metadata (name, version, license, upstream/source repositories, Python dependencies, and supported backends). To list the build variants of a kernel and their compatibility with the current system, use kernels versions.

Usage

kernels info <repo_id_or_path>

When the argument is an existing local directory, it is treated as a kernel repository with build variants in its build/ directory. Otherwise it is treated as a Hub repo ID.

Options:

  • --revision <revision>: describe a specific branch, tag, or commit (Hub only). Cannot be used together with --version.
  • --version <version>: describe a specific kernel version (Hub only). Cannot be used together with --revision. When neither is given, the latest version is used (or main for unversioned repositories).
  • --json: print the kernel information as JSON for machine-readable output.

Examples

Describe a kernel on the Hub:

kernels info kernels-community/activation

Describe a local kernel repository (e.g. after kernel-builder build-and-copy):

kernels info ./relu

Get machine-readable output:

kernels info --json kernels-community/activation

Example Output

Repository: kernels-community/activation
Revision: v1
Name: activation
Version: 1
License: Apache-2.0
Upstream: -
Source: -
Python dependencies: -
Backends: cuda, metal

See Also

Xet Storage Details

Size:
1.66 kB
·
Xet hash:
21d1781d7bea7634510127aeafb501b0c2f8eb31c8dec5a3cedb744978f165d0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.