dwgan
dwgan
Hi @Kiet0712, could you please provide some details about it? Here is my code ``` @torch.compile(options={"triton.cudagraphs": True}, fullgraph=True) def mamba_split_conv1d_scan_combined(zxbcdt, conv1d_weight, conv1d_bias, dt_bias, A, D, chunk_size, initial_states=None, seq_idx=None, dt_limit=(0.0, float("inf")),...
@Kiet0712 Thanks for your response. It is the main_test.py ``` import torch from mamba_ssm import Mamba, Mamba2 batch, length, dim = 2, 64, 256 x = torch.randn(batch, length, dim).to("cuda") #...
> > @dwgan I don't actually know what is your problem, in my case, i just simple add "@torch.compile(options={"triton.cudagraphs": True}, fullgraph=True)" before mamba_split_conv1d_scan_combined function and then use Mamba2 in my...
> Mamba2 is written mostly in Triton, so there's a lot of CPU overhead if the layer is so small. Two ways to get around that: (1) CUDA graph (or...
> > > Mamba2 is written mostly in Triton, so there's a lot of CPU overhead if the layer is so small. Two ways to get around that: (1) CUDA...
@Hprairie Thanks a lot.