Kernels:
Trusted publisher
Uploaded using `kernel-builder`.
Browse files
.gitattributes
CHANGED
|
@@ -102,3 +102,4 @@ build/torch210-cxx11-cpu-x86_64-linux/_rmsnorm_cpu_b3a09bc.abi3.so filter=lfs di
|
|
| 102 |
build/torch210-cxx11-xpu20253-x86_64-linux/_rmsnorm_xpu_b3a09bc.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 103 |
build/torch211-cxx11-cpu-x86_64-linux/_rmsnorm_cpu_b3a09bc.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 104 |
build/torch211-cxx11-xpu20253-x86_64-linux/_rmsnorm_xpu_b3a09bc.abi3.so filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 102 |
build/torch210-cxx11-xpu20253-x86_64-linux/_rmsnorm_xpu_b3a09bc.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 103 |
build/torch211-cxx11-cpu-x86_64-linux/_rmsnorm_cpu_b3a09bc.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 104 |
build/torch211-cxx11-xpu20253-x86_64-linux/_rmsnorm_xpu_b3a09bc.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 105 |
+
build/torch210-xpu20253-x86_64-windows/_rmsnorm_xpu_e45f29e.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 _rmsnorm_xpu_e45f29e
|
| 3 |
+
ops = torch.ops._rmsnorm_xpu_e45f29e
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_rmsnorm_xpu_e45f29e::{op_name}"
|
build/torch210-xpu20253-x86_64-windows/{_rmsnorm_xpu_2aa36b6.pyd → _rmsnorm_xpu_e45f29e.pyd}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2363904
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c650f94e1a457c2349b48ae25044292ffefadec912807d506e6793efa60f8caa
|
| 3 |
size 2363904
|
build/torch210-xpu20253-x86_64-windows/metadata.json
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"version": 1,
|
| 3 |
"license": "Apache-2.0",
|
| 4 |
-
"python-depends": []
|
|
|
|
|
|
|
|
|
|
| 5 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"version": 1,
|
| 3 |
"license": "Apache-2.0",
|
| 4 |
+
"python-depends": [],
|
| 5 |
+
"backend": {
|
| 6 |
+
"type": "xpu"
|
| 7 |
+
}
|
| 8 |
}
|
build/torch210-xpu20253-x86_64-windows/rmsnorm/__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
|