kernels 0.3.1__tar.gz → 0.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: kernels
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Download compute kernels
5
5
  Author-email: OlivierDehaene <olivier@huggingface.co>, Daniel de Kok <daniel@huggingface.co>, David Holtz <david@huggingface.co>, Nicolas Patry <nicolas@huggingface.co>
6
6
  Requires-Python: >=3.9
@@ -8,7 +8,8 @@ Description-Content-Type: text/markdown
8
8
  Requires-Dist: huggingface-hub>=0.26.3
9
9
  Requires-Dist: packaging>=24.2
10
10
  Requires-Dist: tomli>=2.0.1; python_version < "3.11"
11
- Requires-Dist: torch>=2.5
11
+ Provides-Extra: torch
12
+ Requires-Dist: torch; extra == "torch"
12
13
 
13
14
  # kernels
14
15
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "kernels"
3
- version = "0.3.1"
3
+ version = "0.3.2"
4
4
  description = "Download compute kernels"
5
5
  authors = [
6
6
  { name = "OlivierDehaene", email = "olivier@huggingface.co" },
@@ -14,7 +14,6 @@ dependencies = [
14
14
  "huggingface-hub>=0.26.3",
15
15
  "packaging>=24.2",
16
16
  "tomli>=2.0.1; python_version<'3.11'",
17
- "torch>=2.5",
18
17
  ]
19
18
 
20
19
  [build-system]
@@ -27,8 +26,12 @@ dev = [
27
26
  "pytest >=8",
28
27
  # Whatever version is compatible with pytest.
29
28
  "pytest-benchmark",
29
+ "torch >=2.5",
30
30
  ]
31
31
 
32
+ [project.optional-dependencies]
33
+ torch = ["torch"]
34
+
32
35
  [project.scripts]
33
36
  kernels = "kernels.cli:main"
34
37
 
@@ -2,6 +2,7 @@ from kernels.layer import (
2
2
  Device,
3
3
  LayerRepository,
4
4
  register_kernel_mapping,
5
+ replace_kernel_forward_from_hub,
5
6
  use_kernel_forward_from_hub,
6
7
  )
7
8
  from kernels.utils import (
@@ -18,6 +19,7 @@ __all__ = [
18
19
  "install_kernel",
19
20
  "use_kernel_forward_from_hub",
20
21
  "register_kernel_mapping",
22
+ "replace_kernel_forward_from_hub",
21
23
  "LayerRepository",
22
24
  "Device",
23
25
  ]
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: kernels
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Download compute kernels
5
5
  Author-email: OlivierDehaene <olivier@huggingface.co>, Daniel de Kok <daniel@huggingface.co>, David Holtz <david@huggingface.co>, Nicolas Patry <nicolas@huggingface.co>
6
6
  Requires-Python: >=3.9
@@ -8,7 +8,8 @@ Description-Content-Type: text/markdown
8
8
  Requires-Dist: huggingface-hub>=0.26.3
9
9
  Requires-Dist: packaging>=24.2
10
10
  Requires-Dist: tomli>=2.0.1; python_version < "3.11"
11
- Requires-Dist: torch>=2.5
11
+ Provides-Extra: torch
12
+ Requires-Dist: torch; extra == "torch"
12
13
 
13
14
  # kernels
14
15
 
@@ -1,6 +1,8 @@
1
1
  huggingface-hub>=0.26.3
2
2
  packaging>=24.2
3
- torch>=2.5
4
3
 
5
4
  [:python_version < "3.11"]
6
5
  tomli>=2.0.1
6
+
7
+ [torch]
8
+ torch
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes