Skip to content

kernels: use Metadata from kernels-data#499

Merged
drbh merged 10 commits intomainfrom
kernels-use-kernels-data
Apr 27, 2026
Merged

kernels: use Metadata from kernels-data#499
drbh merged 10 commits intomainfrom
kernels-use-kernels-data

Conversation

@danieldk
Copy link
Copy Markdown
Member

@danieldk danieldk commented Apr 22, 2026

This changeset combines a few related changes:

  • Use Metadata from kernels-data to ensure using the same metadata data structures in kernel-builder and kernels.
  • Make metadata mandatory and make several metadata fields mandatory, namely id, version, license the new name field.
  • Update the build.toml format to v4, making the required fields mandatory as well as the torch-noarch section for torch-noarch kernels.
  • Remove support for the very old v1 and v2 build.toml formats.
  • In LoadedKernel, add metadata and remove module_name (can be queried from the metadata).
  • Rename RepoInfos to RepoInfo.

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

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.

Comment thread nix-builder/versions.nix
@@ -1,14 +1,4 @@
[
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adarshxs for sglang, it's better to change their flake to add torchVersions with this variant. The old variant is causing some issues in automatic version selection for devshells, etc.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it will do

This changeset combines a few related changes:

- Use `Metadata` from `kernels-data` to ensure using the same metadata
  data structures in kernel-builder and kernels.
- Make metadata mandatory and make several metadata fields mandatory,
  namely `id`, `version`, `license` the new `name` field.
- Update the `build.toml` format to v4, making the required fields
  mandatory as well as the `torch-noarch` section for torch-noarch
  kernels.
- Remove support for the very old v1 and v2 `build.toml` formats.
@danieldk danieldk marked this pull request as ready for review April 23, 2026 09:27
Copy link
Copy Markdown
Collaborator

@drbh drbh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@drbh drbh merged commit 013b0e1 into main Apr 27, 2026
65 of 68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants