GroundingDINO icon indicating copy to clipboard operation
GroundingDINO copied to clipboard

Add torch2.6 support for ms_deform_attn_cuda

Open QuantuMope opened this issue 9 months ago • 1 comments

Starting from torch 2.6.0, some APIs have changed:

  1. .type() --> .scalar_type()
  2. .type().is_cuda() --> .device().is_cuda()

This breaks the current build process.

This PR checks the user's torch version and uses the appropriate API.

I've confirmed that this works building on both torch 2.5 and 2.6 with cuda 12.4.

Issue detailing the error: https://github.com/IDEA-Research/Grounded-SAM-2/issues/78

QuantuMope avatar Apr 16 '25 22:04 QuantuMope

This should fix both #405 and #402: https://github.com/IDEA-Research/GroundingDINO/issues/402#issuecomment-2771979687

prusswan avatar Apr 28 '25 11:04 prusswan