Buckets:

hf-doc-build/doc-dev / kernels /pr_461 /en /cli-generate-readme.md
HuggingFaceDocBuilder's picture
|
download
raw
1.08 kB

kernels generate-readme

Use kernels generate-readme to automatically generate documentation snippets for a kernel's public functions.

Usage

kernels generate-readme  [--revision ]

What It Does

  • Downloads the specified kernel from the Hub
  • Inspects the kernel's public API
  • Generates markdown documentation snippets showing function signatures and usage

Examples

Generate README snippets for a kernel:

kernels generate-readme kernels-community/activation > README.md

Example Output

README.md snippet for kernels-community/activation: ```md

tags: - kernels

Functions

Function fatrelu_and_mul

(out: torch.Tensor, x: torch.Tensor, threshold: float = 0.0) -> None

No documentation available.

Function gelu

(out: torch.Tensor, x: torch.Tensor) -> None

No documentation available.

Function gelu_and_mul

(out: torch.Tensor, x: torch.Tensor) -> None

No documentation available.

Function gelu_fast

(out: torch.Tensor, x: torch.Tensor) -> None

No documentation available.

...


Xet Storage Details

Size:
1.08 kB
·
Xet hash:
8f9471dd5c5cbc9cccf6c5e2c8d3d0322b85752707eeeea0a7fabe1e39915a8d

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