v4.4 tag release update. (#3032)

This commit is contained in:
Junkai-Wu
2026-02-13 23:27:58 -05:00
committed by GitHub
parent 01687cfba1
commit d4bbf728ca
140 changed files with 41622 additions and 3689 deletions
@@ -29,10 +29,8 @@
from typing import Type
import argparse
import torch
import cuda.bindings.driver as cuda
import cutlass
import cutlass.torch as cutlass_torch
import cutlass.cute as cute
from cutlass.cute.runtime import from_dlpack
from cutlass._mlir.dialects import llvm
@@ -838,28 +836,25 @@ class HSTUAttentionForwardAmpere(object):
def run_pytorch_hstu_test(
dtype: torch.dtype,
q: torch.Tensor,
k: torch.Tensor,
v: torch.Tensor,
rab: torch.Tensor,
dtype,
q,
k,
v,
rab,
is_causal: bool,
):
"""Generate the reference output of the HSTU attention with Pytorch.
:param dtype: data type of the input tensors
:type dtype: torch.dtype
:param q: query tensor
:type q: torch.Tensor
:param k: key tensor
:type k: torch.Tensor
:param v: value tensor
:type v: torch.Tensor
:param rab: RAB tensor
:type rab: torch.Tensor
:param is_causal: whether to use causal masking
:type is_causal: bool
"""
import torch
q = q.to(dtype)
k = k.to(dtype)
v = v.to(dtype)
@@ -922,6 +917,9 @@ def run(
"""
assert dtype == cutlass.Float16 or dtype == cutlass.BFloat16
import torch
import cutlass.torch as cutlass_torch
torch_stream = torch.cuda.current_stream()
stream = cuda.CUstream(torch_stream.cuda_stream)