Promote latest kernel artifacts to main
Browse files- README.md +113 -6
- build/torch212-cxx11-cu132-x86_64-linux/__init__.py +28 -0
- build/torch212-cxx11-cu132-x86_64-linux/{_fp4_gemm_cuda_8fba1d7.abi3.so → _fp4_gemm_cuda_8b8a2cd.abi3.so} +2 -2
- build/torch212-cxx11-cu132-x86_64-linux/_ops.py +3 -3
- build/torch212-cxx11-cu132-x86_64-linux/metadata.json +5 -5
- build/torch213-cxx11-cu132-x86_64-linux/__init__.py +28 -0
- build/torch213-cxx11-cu132-x86_64-linux/{_fp4_gemm_cuda_8fba1d7.abi3.so → _fp4_gemm_cuda_8b8a2cd.abi3.so} +2 -2
- build/torch213-cxx11-cu132-x86_64-linux/_ops.py +3 -3
- build/torch213-cxx11-cu132-x86_64-linux/metadata.json +5 -5
README.md
CHANGED
|
@@ -1,9 +1,116 @@
|
|
| 1 |
-
#
|
| 2 |
|
| 3 |
-
|
| 4 |
-
that resolve repositories through the default Hugging Face model repo API.
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# fp4-gemm
|
| 2 |
|
| 3 |
+
FlashRT native Blackwell NVFP4 A4W4 GEMM kernels.
|
|
|
|
| 4 |
|
| 5 |
+
This package consumes packed FP4 E2M1 tensors plus CUTLASS Sm1xx SFA/SFB scale
|
| 6 |
+
buffers and produces BF16 output. It is designed to pair with
|
| 7 |
+
`flashrt/fp4-fused-ops` and other static low-bit transformer/diffuser runtime
|
| 8 |
+
paths.
|
| 9 |
|
| 10 |
+
## Available Functions
|
| 11 |
+
|
| 12 |
+
- `sfa_size_bytes(rows, dim)`
|
| 13 |
+
- `quantize_fp4_sfa_fp16(x, packed=None, sfa=None, is_sfb=False)`
|
| 14 |
+
- `quantize_fp4_sfa_bf16(x, packed=None, sfa=None, is_sfb=False)`
|
| 15 |
+
- `dequantize_fp4_sfa_fp16(packed, sfa, out=None, is_sfb=False)`
|
| 16 |
+
- `nvfp4_gemm_bf16(a_packed, b_packed, sfa, sfb, alpha=1.0, out=None, variant=-1)`
|
| 17 |
+
- `nvfp4_gemm_bias_bf16(a_packed, b_packed, sfa, sfb, bias, out=None)`
|
| 18 |
+
- `nvfp4_gemm_bias_residual_bf16(a_packed, b_packed, sfa, sfb, bias, residual, out=None)`
|
| 19 |
+
- `nvfp4_gemm_residual_bf16(a_packed, b_packed, sfa, sfb, residual, alpha=1.0, out=None)`
|
| 20 |
+
- `nvfp4_gemm_bias_gelu_bf16(a_packed, b_packed, sfa, sfb, bias, alpha=1.0, out=None)`
|
| 21 |
+
- `nvfp4_gemm_bias_gelu_nvfp4(a_packed, b_packed, sfa, sfb, bias, alpha=1.0, out_packed=None, out_sfa=None)`
|
| 22 |
+
- `nvfp4_gemm_streamk_bf16(a_packed, b_packed, sfa, sfb, alpha=1.0, out=None)`
|
| 23 |
+
- `nvfp4_gemm_streamk_bias_bf16(a_packed, b_packed, sfa, sfb, bias, alpha=1.0, out=None)`
|
| 24 |
+
- `fp4_w4a16_linear_bf16(...)` is retained as a compatibility alias
|
| 25 |
+
|
| 26 |
+
## Tensor Contract
|
| 27 |
+
|
| 28 |
+
- `a_packed`: `torch.uint8`, shape `(M, K / 2)`.
|
| 29 |
+
- `b_packed`: `torch.uint8`, shape `(N, K / 2)`.
|
| 30 |
+
- `sfa`: `torch.uint8`, CUTLASS SFA layout for `(M, K)`.
|
| 31 |
+
- `sfb`: `torch.uint8`, CUTLASS SFB layout for `(N, K)`.
|
| 32 |
+
- output: `torch.bfloat16`, shape `(M, N)`.
|
| 33 |
+
- `K` must be divisible by 16.
|
| 34 |
+
- Targets: Blackwell `sm_110a` (Jetson AGX Thor, CUDA 13+) and `sm_120a`
|
| 35 |
+
(RTX Blackwell, CUDA 12.8+).
|
| 36 |
+
|
| 37 |
+
`variant` selects the CUTLASS schedule:
|
| 38 |
+
|
| 39 |
+
- `-1`: architecture-aware auto-dispatch (public default).
|
| 40 |
+
- `0`: default `<128,128,256>` cooperative schedule.
|
| 41 |
+
- `1`: widen `<128,256,128>` schedule, intended for very large `N`.
|
| 42 |
+
- `2`: pingpong schedule for A/B testing shape-specific wins.
|
| 43 |
+
|
| 44 |
+
The canonical linear API and FP4/SFA quantize/dequantize helpers are available
|
| 45 |
+
on both SM110 and SM120. SM110 additionally provides the GROOT N1.7 production
|
| 46 |
+
epilogues `nvfp4_gemm_bias_bf16`, `nvfp4_gemm_bias_residual_bf16`, and
|
| 47 |
+
`nvfp4_gemm_bias_gelu_nvfp4`. The latter emits packed FP4 plus CUTLASS SFA so
|
| 48 |
+
the following projection can consume it without a BF16 materialization and a
|
| 49 |
+
standalone quantization launch. Stream-K and the older BF16 GELU epilogue keep
|
| 50 |
+
their existing SM120 dispatch and reject unsupported architectures explicitly.
|
| 51 |
+
|
| 52 |
+
The SM110 release gate includes the production `(M,N,K)` shapes
|
| 53 |
+
`(41,4608,1536)`, `(41,6144,1536)`, and `(41,1536,6144)`, plus the legacy
|
| 54 |
+
`M=51` compatibility row. The kernels are the native sources used by FlashRT's
|
| 55 |
+
GROOT N1.7 Thor NVFP4 pipeline.
|
| 56 |
+
|
| 57 |
+
## Minimal Usage
|
| 58 |
+
|
| 59 |
+
```python
|
| 60 |
+
from kernels import get_kernel
|
| 61 |
+
import torch
|
| 62 |
+
|
| 63 |
+
ops = get_kernel("flashrt/fp4-gemm", version=1, trust_remote_code=True)
|
| 64 |
+
|
| 65 |
+
x = torch.randn((32, 256), device="cuda", dtype=torch.float16)
|
| 66 |
+
w = torch.randn((512, 256), device="cuda", dtype=torch.float16)
|
| 67 |
+
|
| 68 |
+
a_packed, sfa = ops.quantize_fp4_sfa_fp16(x, is_sfb=False)
|
| 69 |
+
b_packed, sfb = ops.quantize_fp4_sfa_fp16(w, is_sfb=True)
|
| 70 |
+
|
| 71 |
+
y = ops.nvfp4_gemm_bf16(a_packed, b_packed, sfa, sfb, alpha=1.0)
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
For BF16 model activations, use the direct producer so the hot path does not
|
| 75 |
+
materialize an intermediate FP16 tensor:
|
| 76 |
+
|
| 77 |
+
```python
|
| 78 |
+
x_bf16 = torch.randn((1, 5120), device="cuda", dtype=torch.bfloat16)
|
| 79 |
+
a_packed, sfa = ops.quantize_fp4_sfa_bf16(x_bf16)
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
The BF16 entry writes the same E2M1 bytes and CUTLASS SFA/SFB layout as
|
| 83 |
+
`quantize_fp4_sfa_fp16(x_bf16.to(torch.float16))` for finite FP16-range
|
| 84 |
+
inputs. It is an additive API; the existing FP16 producer remains unchanged.
|
| 85 |
+
|
| 86 |
+
The quantize/dequantize helpers are included for examples and validation. A
|
| 87 |
+
production runtime should keep weights prepacked and should avoid quantizing in
|
| 88 |
+
the hot path unless that producer kernel is part of the intended low-bit block.
|
| 89 |
+
|
| 90 |
+
Use the bias/GELU and residual variants to avoid returning to BF16
|
| 91 |
+
elementwise code between low-bit GEMMs. Stream-K variants are selected only
|
| 92 |
+
for the validated large down-projection shapes; unsupported shapes reject
|
| 93 |
+
rather than silently selecting a losing schedule.
|
| 94 |
+
|
| 95 |
+
## Validation
|
| 96 |
+
|
| 97 |
+
```bash
|
| 98 |
+
python fp4-gemm/tests/test_fp4_gemm.py --backend source --mode full
|
| 99 |
+
python fp4-gemm/tests/test_fp4_gemm.py --backend installed --mode full \
|
| 100 |
+
--artifact fp4-gemm/build/torch211-cxx11-cu128-x86_64-linux
|
| 101 |
+
python fp4-gemm/benchmarks/benchmark.py --backend installed --mode headline \
|
| 102 |
+
--artifact fp4-gemm/build/torch211-cxx11-cu128-x86_64-linux
|
| 103 |
+
|
| 104 |
+
# Thor model-shape gate
|
| 105 |
+
python fp4-gemm/tests/test_fp4_gemm.py --backend installed \
|
| 106 |
+
--mode thor-models \
|
| 107 |
+
--artifact fp4-gemm/build/torch211-cxx11-cu130-aarch64-linux
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
The correctness reference dequantizes the same FP4/SFA and FP4/SFB inputs used
|
| 111 |
+
by the kernel, then computes the PyTorch GEMM reference from those dequantized
|
| 112 |
+
low-bit values.
|
| 113 |
+
|
| 114 |
+
The producer gate also checks the BF16 direct entry byte-for-byte against the
|
| 115 |
+
established FP16 compatibility chain at decode widths 5120, 6144 and 17408,
|
| 116 |
+
plus multi-row activation and SFB layouts.
|
build/torch212-cxx11-cu132-x86_64-linux/__init__.py
CHANGED
|
@@ -7,6 +7,28 @@ import torch
|
|
| 7 |
from ._ops import add_op_namespace_prefix, ops
|
| 8 |
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
def sfa_size_bytes(rows: int, dim: int) -> int:
|
| 11 |
if rows <= 0 or dim <= 0 or dim % 16 != 0:
|
| 12 |
raise ValueError("rows must be positive and dim must be positive/divisible by 16")
|
|
@@ -714,6 +736,12 @@ def nvfp4_gemm_streamk_bias_bf16(
|
|
| 714 |
|
| 715 |
|
| 716 |
__all__ = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 717 |
"aligned_fp4_dim",
|
| 718 |
"cutlass_fp4_gemm_geglu_il_hw_v10",
|
| 719 |
"dequantize_fp4_sfa_fp16",
|
|
|
|
| 7 |
from ._ops import add_op_namespace_prefix, ops
|
| 8 |
|
| 9 |
|
| 10 |
+
NVFP4_BLOCK_SIZE = 16
|
| 11 |
+
NVFP4_SCALE_TILE_ROWS = 128
|
| 12 |
+
NVFP4_SCALE_TILE_BLOCKS = 4
|
| 13 |
+
SUPPORTED_LAYOUTS = ("row-major-packed-e2m1", "cutlass-sm1xx-blockscaled")
|
| 14 |
+
SUPPORTED_CUDA_CAPABILITIES = ("11.0a", "12.0a")
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
def capabilities() -> dict[str, object]:
|
| 18 |
+
"""Return the public Tensor API contract used by runtime dispatchers."""
|
| 19 |
+
return {
|
| 20 |
+
"quantization": "W4A4 NVFP4 E2M1",
|
| 21 |
+
"block_size": NVFP4_BLOCK_SIZE,
|
| 22 |
+
"scale_layout": "pad128(rows) x pad4(dim/16), 512 bytes per tile",
|
| 23 |
+
"scale_size": "ceil(rows/128) * ceil((dim/16)/4) * 512 bytes",
|
| 24 |
+
"layouts": SUPPORTED_LAYOUTS,
|
| 25 |
+
"cuda_capabilities": SUPPORTED_CUDA_CAPABILITIES,
|
| 26 |
+
"public_m_alignment": 1,
|
| 27 |
+
"raw_sm120_tile_m": 128,
|
| 28 |
+
"errors": "exceptions",
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
|
| 32 |
def sfa_size_bytes(rows: int, dim: int) -> int:
|
| 33 |
if rows <= 0 or dim <= 0 or dim % 16 != 0:
|
| 34 |
raise ValueError("rows must be positive and dim must be positive/divisible by 16")
|
|
|
|
| 736 |
|
| 737 |
|
| 738 |
__all__ = [
|
| 739 |
+
"NVFP4_BLOCK_SIZE",
|
| 740 |
+
"NVFP4_SCALE_TILE_ROWS",
|
| 741 |
+
"NVFP4_SCALE_TILE_BLOCKS",
|
| 742 |
+
"SUPPORTED_CUDA_CAPABILITIES",
|
| 743 |
+
"SUPPORTED_LAYOUTS",
|
| 744 |
+
"capabilities",
|
| 745 |
"aligned_fp4_dim",
|
| 746 |
"cutlass_fp4_gemm_geglu_il_hw_v10",
|
| 747 |
"dequantize_fp4_sfa_fp16",
|
build/torch212-cxx11-cu132-x86_64-linux/{_fp4_gemm_cuda_8fba1d7.abi3.so → _fp4_gemm_cuda_8b8a2cd.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:02331d523addad203635ccbde8e6b40d1876c4cee0ec498a6234acc046d9df91
|
| 3 |
+
size 7892120
|
build/torch212-cxx11-cu132-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 _fp4_gemm_cuda_8b8a2cd
|
| 3 |
+
ops = torch.ops._fp4_gemm_cuda_8b8a2cd
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_fp4_gemm_cuda_8b8a2cd::{op_name}"
|
build/torch212-cxx11-cu132-x86_64-linux/metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "fp4-gemm",
|
| 3 |
-
"id": "
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
|
@@ -14,9 +14,9 @@
|
|
| 14 |
"digest": {
|
| 15 |
"algorithm": "sha256",
|
| 16 |
"files": {
|
| 17 |
-
"__init__.py": "
|
| 18 |
-
"
|
| 19 |
-
"_ops.py": "
|
| 20 |
}
|
| 21 |
},
|
| 22 |
"provenance": {
|
|
@@ -26,7 +26,7 @@
|
|
| 26 |
"dirty": false
|
| 27 |
},
|
| 28 |
"kernel": {
|
| 29 |
-
"sha": "
|
| 30 |
"dirty": false
|
| 31 |
}
|
| 32 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"name": "fp4-gemm",
|
| 3 |
+
"id": "_fp4_gemm_cuda_8b8a2cd",
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
|
|
|
| 14 |
"digest": {
|
| 15 |
"algorithm": "sha256",
|
| 16 |
"files": {
|
| 17 |
+
"__init__.py": "lJLCqFZi1vLuBzLeaNpAAfy/5/sHKv/E70REf7nu6ds=",
|
| 18 |
+
"_fp4_gemm_cuda_8b8a2cd.abi3.so": "AjMdUjrdrSA2Ncy96Oa0DRh2xM7g7EmKYjSswEbZ35E=",
|
| 19 |
+
"_ops.py": "/ey6vBILo+/4gY2quK0S+K1K6803F0rDBFL60eQ0VdE="
|
| 20 |
}
|
| 21 |
},
|
| 22 |
"provenance": {
|
|
|
|
| 26 |
"dirty": false
|
| 27 |
},
|
| 28 |
"kernel": {
|
| 29 |
+
"sha": "8b8a2cd59fce4f00274d194853953d1cd8eb16d8",
|
| 30 |
"dirty": false
|
| 31 |
}
|
| 32 |
}
|
build/torch213-cxx11-cu132-x86_64-linux/__init__.py
CHANGED
|
@@ -7,6 +7,28 @@ import torch
|
|
| 7 |
from ._ops import add_op_namespace_prefix, ops
|
| 8 |
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
def sfa_size_bytes(rows: int, dim: int) -> int:
|
| 11 |
if rows <= 0 or dim <= 0 or dim % 16 != 0:
|
| 12 |
raise ValueError("rows must be positive and dim must be positive/divisible by 16")
|
|
@@ -714,6 +736,12 @@ def nvfp4_gemm_streamk_bias_bf16(
|
|
| 714 |
|
| 715 |
|
| 716 |
__all__ = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 717 |
"aligned_fp4_dim",
|
| 718 |
"cutlass_fp4_gemm_geglu_il_hw_v10",
|
| 719 |
"dequantize_fp4_sfa_fp16",
|
|
|
|
| 7 |
from ._ops import add_op_namespace_prefix, ops
|
| 8 |
|
| 9 |
|
| 10 |
+
NVFP4_BLOCK_SIZE = 16
|
| 11 |
+
NVFP4_SCALE_TILE_ROWS = 128
|
| 12 |
+
NVFP4_SCALE_TILE_BLOCKS = 4
|
| 13 |
+
SUPPORTED_LAYOUTS = ("row-major-packed-e2m1", "cutlass-sm1xx-blockscaled")
|
| 14 |
+
SUPPORTED_CUDA_CAPABILITIES = ("11.0a", "12.0a")
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
def capabilities() -> dict[str, object]:
|
| 18 |
+
"""Return the public Tensor API contract used by runtime dispatchers."""
|
| 19 |
+
return {
|
| 20 |
+
"quantization": "W4A4 NVFP4 E2M1",
|
| 21 |
+
"block_size": NVFP4_BLOCK_SIZE,
|
| 22 |
+
"scale_layout": "pad128(rows) x pad4(dim/16), 512 bytes per tile",
|
| 23 |
+
"scale_size": "ceil(rows/128) * ceil((dim/16)/4) * 512 bytes",
|
| 24 |
+
"layouts": SUPPORTED_LAYOUTS,
|
| 25 |
+
"cuda_capabilities": SUPPORTED_CUDA_CAPABILITIES,
|
| 26 |
+
"public_m_alignment": 1,
|
| 27 |
+
"raw_sm120_tile_m": 128,
|
| 28 |
+
"errors": "exceptions",
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
|
| 32 |
def sfa_size_bytes(rows: int, dim: int) -> int:
|
| 33 |
if rows <= 0 or dim <= 0 or dim % 16 != 0:
|
| 34 |
raise ValueError("rows must be positive and dim must be positive/divisible by 16")
|
|
|
|
| 736 |
|
| 737 |
|
| 738 |
__all__ = [
|
| 739 |
+
"NVFP4_BLOCK_SIZE",
|
| 740 |
+
"NVFP4_SCALE_TILE_ROWS",
|
| 741 |
+
"NVFP4_SCALE_TILE_BLOCKS",
|
| 742 |
+
"SUPPORTED_CUDA_CAPABILITIES",
|
| 743 |
+
"SUPPORTED_LAYOUTS",
|
| 744 |
+
"capabilities",
|
| 745 |
"aligned_fp4_dim",
|
| 746 |
"cutlass_fp4_gemm_geglu_il_hw_v10",
|
| 747 |
"dequantize_fp4_sfa_fp16",
|
build/torch213-cxx11-cu132-x86_64-linux/{_fp4_gemm_cuda_8fba1d7.abi3.so → _fp4_gemm_cuda_8b8a2cd.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ffad9d86c8ccabb083312b5fd81c11973bd0bde4fc5f89d5cb60cda9ab8779e
|
| 3 |
+
size 7891968
|
build/torch213-cxx11-cu132-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 _fp4_gemm_cuda_8b8a2cd
|
| 3 |
+
ops = torch.ops._fp4_gemm_cuda_8b8a2cd
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_fp4_gemm_cuda_8b8a2cd::{op_name}"
|
build/torch213-cxx11-cu132-x86_64-linux/metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "fp4-gemm",
|
| 3 |
-
"id": "
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
|
@@ -14,9 +14,9 @@
|
|
| 14 |
"digest": {
|
| 15 |
"algorithm": "sha256",
|
| 16 |
"files": {
|
| 17 |
-
"__init__.py": "
|
| 18 |
-
"
|
| 19 |
-
"_ops.py": "
|
| 20 |
}
|
| 21 |
},
|
| 22 |
"provenance": {
|
|
@@ -26,7 +26,7 @@
|
|
| 26 |
"dirty": false
|
| 27 |
},
|
| 28 |
"kernel": {
|
| 29 |
-
"sha": "
|
| 30 |
"dirty": false
|
| 31 |
}
|
| 32 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"name": "fp4-gemm",
|
| 3 |
+
"id": "_fp4_gemm_cuda_8b8a2cd",
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
|
|
|
| 14 |
"digest": {
|
| 15 |
"algorithm": "sha256",
|
| 16 |
"files": {
|
| 17 |
+
"__init__.py": "lJLCqFZi1vLuBzLeaNpAAfy/5/sHKv/E70REf7nu6ds=",
|
| 18 |
+
"_fp4_gemm_cuda_8b8a2cd.abi3.so": "f/rZ2GyMyrsIMxK1/YHBGXO9C95PxfidXLYM2pq4d54=",
|
| 19 |
+
"_ops.py": "/ey6vBILo+/4gY2quK0S+K1K6803F0rDBFL60eQ0VdE="
|
| 20 |
}
|
| 21 |
},
|
| 22 |
"provenance": {
|
|
|
|
| 26 |
"dirty": false
|
| 27 |
},
|
| 28 |
"kernel": {
|
| 29 |
+
"sha": "8b8a2cd59fce4f00274d194853953d1cd8eb16d8",
|
| 30 |
"dirty": false
|
| 31 |
}
|
| 32 |
}
|