Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torch.cuda.amp.custom_fwd(args...) Deprecated #517

Closed
NLHuang opened this issue Aug 7, 2024 · 2 comments · Fixed by #596
Closed

torch.cuda.amp.custom_fwd(args...) Deprecated #517

NLHuang opened this issue Aug 7, 2024 · 2 comments · Fixed by #596

Comments

@NLHuang
Copy link

NLHuang commented Aug 7, 2024

Hi,

The warning is seen when I tried to reproduce the Mamba-2 usage example with pytorch 2.4.0+cu121:

mamba_ssm/ops/selective_scan_interface.py:164: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.

I'm new to github and not sure whether (and how urgently) this needs to be fixed.

@weilaikeeqi
Copy link

mamba-main/mamba_ssm/ops/selective_scan_interface.py:164: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
def forward(ctx, xz, conv1d_weight, conv1d_bias, x_proj_weight, delta_proj_weight,

I have the same problem.

@ql0wn4
Copy link

ql0wn4 commented Oct 14, 2024

any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants