tahamajs's picture
download
raw
478 Bytes
import torch
from gemm_lowbit_ext import gemm_lowbit
# Example usage
a = torch.randn(10, 20, dtype=torch.half, device="cuda") # Example tensor
b = torch.randn(20, 30, dtype=torch.half, device="cuda") # Example tensor
c = torch.empty(10, 30, dtype=torch.half, device="cuda") # Output tensor
w_scale = 1.0 # Example scale factor
x_scale = 1.0 # Example scale factor
# Call the custom CUDA GEMM operation
gemm_lowbit(a, b, c, w_scale, x_scale)
print(c) # View the result

Xet Storage Details

Size:
478 Bytes
·
Xet hash:
30684ae7f1457e3a5c616b0eae4e10890896bbade797d4c179d693c6a7c60a17

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.