Skip to content

Commit 0913ee4

Browse files
authored
Merge branch 'main' into fix-metal-mps-lifecycle
2 parents f7e6f08 + 4bcdf6f commit 0913ee4

File tree

15 files changed

+115
-10
lines changed

15 files changed

+115
-10
lines changed

build2cmake/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build2cmake/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "build2cmake"
3-
version = "0.12.2-dev0"
3+
version = "0.13.0-dev0"
44
edition = "2021"
55
description = "Generate CMake files for kernel-builder projects"
66
homepage = "https://github.com/huggingface/kernel-builder"

builder/lib/cache.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
++ allOutputs build2cmake
2323
++ allOutputs kernel-abi-check
2424
++ allOutputs python3Packages.kernels
25+
++ allOutputs python3Packages.tvm-ffi
2526
++ lib.optionals stdenv.hostPlatform.isLinux (allOutputs stdenvGlibc_2_27)
2627
);
2728
buildSetLinkFarm = buildSet: pkgs.linkFarm buildSet.torch.variant (buildSetOutputs buildSet);

builder/lib/deps.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let
3535

3636
pythonDeps =
3737
let
38-
depsJson = builtins.fromJSON (builtins.readFile ../build2cmake/src/python_dependencies.json);
38+
depsJson = builtins.fromJSON (builtins.readFile ../../build2cmake/src/python_dependencies.json);
3939
# Map the Nix package names to actual Nix packages.
4040
updatePackage = _name: dep: dep // { nix = map (pkg: pkgs.python3.pkgs.${pkg}) dep.nix; };
4141
updateBackend = _backend: backendDeps: lib.mapAttrs updatePackage backendDeps;

docs/source/builder/writing-kernels.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ as the running example. After reading this page, you may also want to have
3535
a look at the more realistic [ReLU kernel with backprop and `torch.compile`](https://github.com/huggingface/kernels/tree/main/builder/examples/relu-backprop-compile)
3636
support.
3737

38+
## Setting up environment
39+
40+
In the [`terraform`](../../../terraform/) directory, we provide an
41+
example of programatically spinning up an EC2 instance that is ready
42+
with everything needed for you to start developing and building
43+
kernels.
44+
45+
If you use a different provider, the Terraform bridges should be
46+
similar and straightforward to modify.
47+
3848
## Kernel project layout
3949

4050
Kernel projects follow this general directory layout:

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
tabulate
170170
tomlkit
171171
torch
172+
tvm-ffi
172173
types-pyyaml
173174
types-requests
174175
types-tabulate

kernel-abi-check/bindings/python/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kernel-abi-check/bindings/python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kernel-abi-check-python"
3-
version = "0.12.2-dev0"
3+
version = "0.13.0-dev0"
44
edition = "2024"
55
description = "Check the ABI of Hub Kernels"
66
homepage = "https://github.com/huggingface/kernel-builder"

kernel-abi-check/kernel-abi-check/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kernel-abi-check/kernel-abi-check/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kernel-abi-check"
3-
version = "0.12.2-dev0"
3+
version = "0.13.0-dev0"
44
edition = "2021"
55
description = "Check the ABI of Hub Kernels"
66
homepage = "https://github.com/huggingface/kernel-builder"

0 commit comments

Comments
 (0)