first commit

This commit is contained in:
2026-10-23 15:00:59 +08:00
commit 4627899899
156 changed files with 398139 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
from core import weight_dequant_fp8e4m3_to_bf16
import torch
def fake_kernel(*args, **kwargs):
return args
def dispatch_kernel(dtype):
if dtype in [torch.bfloat16, torch.float16, torch.half, torch.float, torch.float32]:
return fake_kernel
elif dtype == torch.float8_e4m3fn:
return weight_dequant_fp8e4m3_to_bf16
else:
raise NotImplemented