cc754ff93e
Add attributes to user_agent ( #170 )
2025-10-17 17:26:19 +02:00
46a2a1fd6d
Upload improvements ( #171 )
...
* `upload --repo_id` -> `upload --repo-id`
Existing options use a dash rather than an underscore.
* Support uploading directly from the `build` or `result` directory
2025-10-17 17:23:13 +02:00
ed048616fe
Set version to 0.10.4.dev0 ( #169 )
2025-10-16 20:21:35 +02:00
b182cd3458
feat: allow get_kernel to log telemetry. ( #167 )
...
* feat: allow get_kernel to log telemetry.
* Apply suggestions from code review
Co-authored-by: Daniël de Kok <me@danieldk.eu >
* doc
---------
Co-authored-by: Daniël de Kok <me@danieldk.eu >
2025-10-16 20:16:41 +02:00
ce77658efc
fix: kernels upload to a repo branch ( #168 )
...
* fix: kernels upload to a repo branch
* up
2025-10-16 16:01:00 +02:00
b96b154e7f
Avoid exception when detecting XPU on Torch <= 2.6 ( #165 )
...
torch.version has no xpu field in torch<=2.6
Signed-off-by: Wang, Yi A <yi.a.wang@intel.com >
2025-10-14 09:01:53 +02:00
b24ef9fa6b
Set version to 0.10.3.dev0 ( #164 )
2025-10-13 17:23:39 +02:00
a7101b2cfd
feat: allow kernels to be uploaded to a revision ( #161 )
...
* feat: allow kernels to be uploaded to a revision
* revision -> branch
2025-10-13 10:31:11 +02:00
6241afa06e
Bump torch version in runner ( #162 )
...
* bump torch version
* run kernels lock tests/kernel_locking
2025-10-09 11:04:52 +02:00
34a1932751
Link local kernel and local/locked kernel API docs ( #160 )
2025-10-02 14:38:47 +02:00
e39eac09c1
up ( #159 )
2025-09-30 17:42:09 +02:00
b0c431fee4
Add the kernels check
subcommand ( #158 )
...
* Add the `kernels check` subcommand
This subcommand checks a given kernel. Currently it applies the same ABI
checks as `kernel-abi-check` in `kernel-builder`.
* Print an error when `build` contains files
* Forgot to update has_issues in two places
2025-09-25 19:05:29 +02:00
9a188eadbe
up ( #157 )
2025-09-24 11:39:07 +02:00
457c7c1b8d
Only run staging tests in one configuration ( #156 )
2025-09-23 10:52:47 +02:00
fb8cd99a2c
Add support for NPU kernelize/layers ( #155 )
...
This change add support for Huawei Ascend NPUs. This is #146 with some formatting/typing fixes.
Co-authored-by: zheliuyu <15750543867@163.com >
2025-09-23 10:46:41 +02:00
dfee307d54
Set version to 0.10.2.dev0 ( #154 )
2025-09-22 18:54:09 +02:00
93e5765611
[tests] turn the kernels upload
tests to be staging tests ( #152 )
2025-09-22 18:53:53 +02:00
bf488208be
faq: why only replace forward
methods? ( #153 )
2025-09-19 17:38:03 +02:00
2a14472e4c
Bump huggingface_hub upper bound <2.0 ( #151 )
2025-09-19 16:56:30 +02:00
055a953552
Document the to-wheel
subcommand ( #149 )
...
* Document the `to-wheel` subcommand
* Capitalization
2025-09-17 17:02:41 +02:00
692d5ad458
Fix some spelling errors to check docs CI is working ( #120 )
2025-09-17 13:44:09 +02:00
2139df57f4
rm link ( #148 )
2025-09-17 12:46:49 +02:00
8f9a77bb6a
Describe the get_kernel
/LayerRepository
( #147 )
...
This was already in the API documentation, but describe this in the
guides as well (since we want people to use versions).
2025-09-16 16:06:40 +02:00
6c00194680
Improve errors for layer validation ( #145 )
...
* Improve errors for layer validation
Include the repo and layer name as well as the name of the class
that is being compared to (when applicable).
* Remove upload xfail
* Only enable tests that require a token with `--token`
2025-09-16 14:40:54 +02:00
d6b51eefb7
[feat] add an uploading utility ( #138 )
...
* add an uploading utility.
* format
* remove stale files.
* black format
* sorted imports.
* up
* up
* add a test
* propagate.
* remove duplicate imports.
* Apply suggestions from code review
Co-authored-by: Daniël de Kok <me@danieldk.eu >
* up
* up
* up
* command to format all files at once would be nice.
* up
* up
* up
* Use token for upload test
* assign env better.
* docs
* polish
* up
* xfail the test for now.
---------
Co-authored-by: Daniël de Kok <me@danieldk.eu >
2025-09-16 08:56:54 +02:00
d383fdd4b4
Add support for XPU layer repostories ( #142 )
...
This change adds support for XPU layer repositories, e.g.:
```
kernel_mapping = {
"LigerRMSNorm": {
"xpu": LayerRepository(
repo_id="kernels-community/liger_kernels",
layer_name="LigerRMSNorm",
)
},
}
Co-authored-by: YangKai0616 <kai.yang@intel.com >
2025-09-11 15:51:02 +02:00
07e5e8481a
Set version to 0.10.1.dev0 ( #140 )
...
* Set version to 0.10.1.dev0
* Add `__version__` attribute to top-level module
This is needed for doc generation.
2025-09-10 09:08:02 +02:00
88f55d4728
XPU: look up kernel by framework version ( #139 )
...
Signed-off-by: Wang, Yi A <yi.a.wang@intel.com >
2025-09-09 13:10:11 +02:00
e801ebf332
Set version to v0.10.0.dev0 ( #137 )
2025-09-05 10:48:41 +02:00
0ae07f05fc
Remove default for mode
argument of kernelize
( #136 )
2025-08-29 17:44:20 +02:00
7611021100
cpu
is not (yet) a supported device type (#132 )
...
Fixes #131 .
2025-08-25 16:25:58 +02:00
767e7ccf13
fix: add get local tests ( #134 )
...
* fix: add tests for get local kernel
* fix: update test and add path example comments
* fix: run black linter
2025-08-21 13:01:48 -04:00
1caa4c1393
feat: improve get local kernel importing ( #129 )
...
* feat: improve get local kernel importing
* fix: adjust for linter
2025-08-08 10:22:29 -04:00
da701bf58a
Small markup fixes of the local kernel repo example ( #127 )
2025-08-06 08:02:28 +02:00
703664ed31
Set version to 0.9.0.dev0 ( #126 )
2025-08-01 16:37:30 +02:00
a8a6564fa7
Add ROCm device discovery ( #122 )
...
* Add ROCm device discovery
* Ruff
* Address review comments
* Ruff
* Reorg torch import
* Remove redundant import
* Apply suggestions from code review
Co-authored-by: Daniël de Kok <me@danieldk.eu >
* Address review comments
* Validat device type
* Clean diff
* black
* Sync test with repo changes
* black again
---------
Co-authored-by: Daniël de Kok <me@danieldk.eu >
2025-08-01 16:09:45 +02:00
c89e0fa9b9
Nix: go back to hf-nix main ( #125 )
2025-08-01 15:56:02 +02:00
176a601178
Run black check ( #124 )
2025-08-01 15:42:38 +02:00
cfa0c76ddc
Add LocalLayerRepository
to load from a local repo ( #123 )
2025-08-01 14:03:11 +02:00
bcc29915f9
Log when using fallback layer ( #121 )
2025-07-31 17:18:00 +02:00
6fbff7a9cb
Add doc build to CI ( #119 )
...
* Add doc build to CI
* Trigger doc build
* No path scoping
2025-07-29 16:01:05 +02:00
f7490bd0a9
Test examples in docstrings using mktestdocs ( #118 )
...
Also adjust examples so that they are correct.
2025-07-28 17:31:34 +02:00
8069e3bf0c
Update documentation for compatibility with doc-builder ( #117 )
2025-07-24 16:21:54 +02:00
c540d1e1d6
Fix typo in layers documentation ( #116 )
2025-07-23 17:13:14 +02:00
967ac581b8
Set version to 0.8.1.dev0 ( #115 )
2025-07-23 14:42:24 +02:00
81088d44e8
Add support for project-wide locking of layers ( #114 )
...
This change adds `LockedLayerRepository` as an alternative to
`LayerRepository`. `LockedLayerRepository` allows for locking all kernel
layers that are used at the project level. Example usage:
```
with use_kernel_mapping(
{
"SomeLayer": {
"cuda": LockedLayerRepository(
repo_id="some-org/some-layer",
layer_name="SomeLayer",
)
},
}
):
layer = kernelize(layer, device="cuda", mode=Mode.INFERENCE)
```
This requires that the project has a `pyproject.toml` with kernel
version specifications and `kernel.lock` with the locked kernels.
2025-07-23 09:37:05 +02:00
4a04c005e3
Add version support to LayerRepository
( #113 )
...
* Add version support to `LayerRepository`
* Remove some docs that do not apply
* Removed unused member variable
2025-07-22 17:02:39 +02:00
6d3c6daf20
triton based kernel could also run in xpu ( #112 )
...
Signed-off-by: Wang, Yi A <yi.a.wang@intel.com >
2025-07-22 10:03:34 +02:00
071900fd69
get_kernel
: allow Python-style version specifiers (#111 )
...
Use Python-style version specifiers to resolve to tags. E.g., given
the presence of the tags `v0.1.0`, `v0.1.1`, and `v0.2.0`,
get_kernel("my/kernel", version=">=0.1.0,<0.2.0")
would resolve to `v0.1.1`.
2025-07-21 17:18:35 +02:00
2d2c6b14e0
Set version to 0.8.0.dev0 ( #110 )
2025-07-15 18:45:03 +02:00