hustvl / Vim

Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model
Apache License 2.0
2.55k stars 159 forks source link

added nvidia jetson hw support #59

Open IamShubhamGupto opened 2 months ago

IamShubhamGupto commented 2 months ago

Hello @Unrealluver

Thank you for releasing the code for Vim. This is a PR to support nvidia jetson GPUs. With Vim's efficiency, it would be really interesting to see their performance compared to convnets and transformers on this platform.

The setup.py has been modified for both mamba_ssm and causal-conv1d as seen in the below PRs

https://github.com/state-spaces/mamba/pull/262 https://github.com/Dao-AILab/causal-conv1d/pull/20

I have added Jetson support with CUDA compatibility > 70 as triton has a minimum CUDA compatibility of 70

I have also modified README.md to fix a small typo

Let me know if further changes are required