Instructions to use replicate/liger-kernels with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/liger-kernels with Kernels:
# !pip install kernels from kernels import get_kernel kernel = get_kernel("replicate/liger-kernels") - Notebooks
- Google Colab
- Kaggle
Uploaded using `kernel-builder`.
Browse files
README.md
CHANGED
|
@@ -1,14 +1,9 @@
|
|
| 1 |
---
|
| 2 |
library_name: kernels
|
| 3 |
-
license:
|
| 4 |
---
|
| 5 |
|
| 6 |
-
|
| 7 |
-
should probably proofread and complete it, then remove this comment. -->
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
This is the repository card of {repo_id} that has been pushed on the Hub. It was built to be used with the [`kernels` library](https://github.com/huggingface/kernels). This card was automatically generated.
|
| 11 |
-
|
| 12 |
|
| 13 |
## How to use
|
| 14 |
|
|
@@ -16,30 +11,15 @@ This is the repository card of {repo_id} that has been pushed on the Hub. It was
|
|
| 16 |
# make sure `kernels` is installed: `pip install -U kernels`
|
| 17 |
from kernels import get_kernel
|
| 18 |
|
| 19 |
-
kernel_module = get_kernel("kernels-community/liger-kernels")
|
| 20 |
layers = kernel_module.layers
|
| 21 |
|
| 22 |
layers(...)
|
| 23 |
```
|
| 24 |
|
| 25 |
## Available functions
|
| 26 |
-
|
| 27 |
- `layers`
|
| 28 |
|
| 29 |
-
## Supported backends
|
| 30 |
-
|
| 31 |
-
- cuda
|
| 32 |
-
- rocm
|
| 33 |
-
- xpu
|
| 34 |
-
|
| 35 |
## Benchmarks
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
## Source code
|
| 40 |
-
|
| 41 |
-
[TODO: provide original source code and other relevant citations if available]
|
| 42 |
-
|
| 43 |
-
## Notes
|
| 44 |
-
|
| 45 |
-
[TODO: provide additional notes about this kernel if needed]
|
|
|
|
| 1 |
---
|
| 2 |
library_name: kernels
|
| 3 |
+
license: bsd-2-clause
|
| 4 |
---
|
| 5 |
|
| 6 |
+
This is the repository card of kernels-community/liger-kernels that has been pushed on the Hub. It was built to be used with the [`kernels` library](https://github.com/huggingface/kernels). This card was automatically generated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
## How to use
|
| 9 |
|
|
|
|
| 11 |
# make sure `kernels` is installed: `pip install -U kernels`
|
| 12 |
from kernels import get_kernel
|
| 13 |
|
| 14 |
+
kernel_module = get_kernel("kernels-community/liger-kernels")
|
| 15 |
layers = kernel_module.layers
|
| 16 |
|
| 17 |
layers(...)
|
| 18 |
```
|
| 19 |
|
| 20 |
## Available functions
|
|
|
|
| 21 |
- `layers`
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
## Benchmarks
|
| 24 |
|
| 25 |
+
No benchmark available yet.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|