Instructions to use replicate/deep-gemm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/deep-gemm with Kernels:
# !pip install kernels from kernels import get_kernel # a version (or an explicit revision) is required; see the "Files and versions" tab for the available ones kernel = get_kernel("replicate/deep-gemm", version=1) - Notebooks
- Google Colab
- Kaggle
Build uploaded using `kernels` (batch 1/10).
Browse files- .gitattributes +1 -0
- build/torch210-cxx11-cu126-x86_64-linux/{_deep_gemm_cuda_a68a39f.abi3.so → _deep_gemm_cuda_bf91a5a.abi3.so} +1 -1
- build/torch210-cxx11-cu126-x86_64-linux/_ops.py +3 -3
- build/torch210-cxx11-cu126-x86_64-linux/deep_gemm/__init__.py +2 -2
- build/torch210-cxx11-cu128-x86_64-linux/_deep_gemm_cuda_a68a39f.abi3.so +0 -3
- build/torch210-cxx11-cu130-x86_64-linux/_deep_gemm_cuda_a68a39f.abi3.so +0 -3
- build/torch29-cxx11-cu129-x86_64-linux/_deep_gemm_cuda_a68a39f.abi3.so +0 -3
.gitattributes
CHANGED
|
@@ -25,3 +25,4 @@ build/torch211-cxx11-cu126-aarch64-linux/_deep_gemm_cuda_bf91a5a.abi3.so filter=
|
|
| 25 |
build/torch211-cxx11-cu128-aarch64-linux/_deep_gemm_cuda_bf91a5a.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 26 |
build/torch211-cxx11-cu130-aarch64-linux/_deep_gemm_cuda_bf91a5a.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 27 |
build/torch29-cxx11-cu129-aarch64-linux/_deep_gemm_cuda_bf91a5a.abi3.so filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 25 |
build/torch211-cxx11-cu128-aarch64-linux/_deep_gemm_cuda_bf91a5a.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 26 |
build/torch211-cxx11-cu130-aarch64-linux/_deep_gemm_cuda_bf91a5a.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 27 |
build/torch29-cxx11-cu129-aarch64-linux/_deep_gemm_cuda_bf91a5a.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
build/torch210-cxx11-cu126-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.so filter=lfs diff=lfs merge=lfs -text
|
build/torch210-cxx11-cu126-x86_64-linux/{_deep_gemm_cuda_a68a39f.abi3.so → _deep_gemm_cuda_bf91a5a.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2825240
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e74230c00b1f3f6a5a7ea53dcd183ea1933837da2321293e015d8bd288ad3d2
|
| 3 |
size 2825240
|
build/torch210-cxx11-cu126-x86_64-linux/_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 _deep_gemm_cuda_bf91a5a
|
| 3 |
+
ops = torch.ops._deep_gemm_cuda_bf91a5a
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_deep_gemm_cuda_bf91a5a::{op_name}"
|
build/torch210-cxx11-cu126-x86_64-linux/deep_gemm/__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
|
build/torch210-cxx11-cu128-x86_64-linux/_deep_gemm_cuda_a68a39f.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:667d49b97547cfdfda365ceb47228d0131b5c94e339d95ab8c5e434d52048d0e
|
| 3 |
-
size 2888040
|
|
|
|
|
|
|
|
|
|
|
|
build/torch210-cxx11-cu130-x86_64-linux/_deep_gemm_cuda_a68a39f.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:69c20009ced4b377c359ff9c9835aafef1b56b3d2a5b46653e0f64d8ff1e775d
|
| 3 |
-
size 2897240
|
|
|
|
|
|
|
|
|
|
|
|
build/torch29-cxx11-cu129-x86_64-linux/_deep_gemm_cuda_a68a39f.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:cf70d854b4503e79ff06f7193781f26bb6d723a37c1646649b741c6d79c4f7d6
|
| 3 |
-
size 2870952
|
|
|
|
|
|
|
|
|
|
|
|