Instructions to use kernels-community/paged-attention with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use kernels-community/paged-attention with Kernels:
# !pip install kernels from kernels import get_kernel kernel = get_kernel("kernels-community/paged-attention") - Notebooks
- Google Colab
- Kaggle
Uploaded using `kernel-builder`.
Browse files- build/torch210-metal-aarch64-darwin/_ops.py +3 -3
- build/torch210-metal-aarch64-darwin/{_paged_attention_metal_0278991.abi3.so → _paged_attention_metal_04f8f6e.abi3.so} +1 -1
- build/torch211-metal-aarch64-darwin/_ops.py +3 -3
- build/torch211-metal-aarch64-darwin/{_paged_attention_metal_0278991.abi3.so → _paged_attention_metal_04f8f6e.abi3.so} +1 -1
build/torch210-metal-aarch64-darwin/_ops.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
import torch
|
| 2 |
-
from . import
|
| 3 |
-
ops = torch.ops.
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
-
return f"
|
|
|
|
| 1 |
import torch
|
| 2 |
+
from . import _paged_attention_metal_04f8f6e
|
| 3 |
+
ops = torch.ops._paged_attention_metal_04f8f6e
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_paged_attention_metal_04f8f6e::{op_name}"
|
build/torch210-metal-aarch64-darwin/{_paged_attention_metal_0278991.abi3.so → _paged_attention_metal_04f8f6e.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14893480
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b54f74316c595521cb878ebf74c70a2d0a80c130ba5b928b2616fba60ae7034d
|
| 3 |
size 14893480
|
build/torch211-metal-aarch64-darwin/_ops.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
import torch
|
| 2 |
-
from . import
|
| 3 |
-
ops = torch.ops.
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
-
return f"
|
|
|
|
| 1 |
import torch
|
| 2 |
+
from . import _paged_attention_metal_04f8f6e
|
| 3 |
+
ops = torch.ops._paged_attention_metal_04f8f6e
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_paged_attention_metal_04f8f6e::{op_name}"
|
build/torch211-metal-aarch64-darwin/{_paged_attention_metal_0278991.abi3.so → _paged_attention_metal_04f8f6e.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14893480
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:08e2d766909e618af3c7eba0fef67ca74b46ca2d736c8b23826ebc4e21e1173f
|
| 3 |
size 14893480
|