Uploaded using `kernel-builder`.
Browse files
.gitattributes
CHANGED
|
@@ -42,3 +42,4 @@ build/torch210-xpu20253-x86_64-windows/rotary/_rotary_9f63cc2.pyd filter=lfs dif
|
|
| 42 |
build/torch210-cu128-x86_64-windows/_rotary_cuda_07a01e5.pyd filter=lfs diff=lfs merge=lfs -text
|
| 43 |
build/torch210-xpu20253-x86_64-windows/_rotary_xpu_07a01e5.pyd filter=lfs diff=lfs merge=lfs -text
|
| 44 |
build/torch211-cu128-x86_64-windows/_rotary_cuda_c2a360c.pyd filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 42 |
build/torch210-cu128-x86_64-windows/_rotary_cuda_07a01e5.pyd filter=lfs diff=lfs merge=lfs -text
|
| 43 |
build/torch210-xpu20253-x86_64-windows/_rotary_xpu_07a01e5.pyd filter=lfs diff=lfs merge=lfs -text
|
| 44 |
build/torch211-cu128-x86_64-windows/_rotary_cuda_c2a360c.pyd filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
build/torch210-xpu20253-x86_64-windows/_rotary_xpu_c2a360c.pyd filter=lfs diff=lfs merge=lfs -text
|
build/torch210-xpu20253-x86_64-windows/_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 _rotary_xpu_c2a360c
|
| 3 |
+
ops = torch.ops._rotary_xpu_c2a360c
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_rotary_xpu_c2a360c::{op_name}"
|
build/torch210-xpu20253-x86_64-windows/{_rotary_xpu_07a01e5.pyd → _rotary_xpu_c2a360c.pyd}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 396288
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6547351c3dd9c17ccef845016ea7350a6e96b73f830d3669d9dffe91f84e9756
|
| 3 |
size 396288
|
build/torch210-xpu20253-x86_64-windows/metadata.json
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"version": 1,
|
| 3 |
"license": "BSD-3-Clause",
|
| 4 |
-
"python-depends": []
|
|
|
|
|
|
|
|
|
|
| 5 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"version": 1,
|
| 3 |
"license": "BSD-3-Clause",
|
| 4 |
+
"python-depends": [],
|
| 5 |
+
"backend": {
|
| 6 |
+
"type": "xpu"
|
| 7 |
+
}
|
| 8 |
}
|
build/torch210-xpu20253-x86_64-windows/rotary/__init__.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
import ctypes
|
|
|
|
| 2 |
import sys
|
| 3 |
-
|
| 4 |
-
import importlib
|
| 5 |
from pathlib import Path
|
| 6 |
from types import ModuleType
|
| 7 |
|
|
|
|
| 8 |
def _import_from_path(file_path: Path) -> ModuleType:
|
| 9 |
# We cannot use the module name as-is, after adding it to `sys.modules`,
|
| 10 |
# it would also be used for other imports. So, we make a module name that
|
|
|
|
| 1 |
import ctypes
|
| 2 |
+
import importlib.util
|
| 3 |
import sys
|
|
|
|
|
|
|
| 4 |
from pathlib import Path
|
| 5 |
from types import ModuleType
|
| 6 |
|
| 7 |
+
|
| 8 |
def _import_from_path(file_path: Path) -> ModuleType:
|
| 9 |
# We cannot use the module name as-is, after adding it to `sys.modules`,
|
| 10 |
# it would also be used for other imports. So, we make a module name that
|