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

test error after installation: too many resources requested for launch #273

Open
lllabmaster opened this issue Nov 18, 2024 · 2 comments
Open

Comments

@lllabmaster
Copy link

hi, when i ran the test.py after installation following:

cd models/dino/ops
python setup.py build install
# unit test (should see all checking is True)
python test.py
cd ../../..

it raised that:
error in ms_deformable_col2im_cuda: too many resources requested for launch
error in ms_deformable_col2im_cuda: too many resources requested for launch
error in ms_deformable_col2im_cuda: too many resources requested for launch
File "/data/jilichuan/database/code/DINO-UW/models/dino/ops/test.py", line 76, in check_gradient_numerical
gradok = gradcheck(func, (value.double(), shapes, level_start_index, sampling_locations.double(), attention_weights.double(), im2col_step))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/anaconda3/envs/dino/lib/python3.11/site-packages/torch/autograd/gradcheck.py", line 2052, in gradcheck
return _gradcheck_helper(**args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/anaconda3/envs/dino/lib/python3.11/site-packages/torch/autograd/gradcheck.py", line 2081, in _gradcheck_helper
_gradcheck_real_imag(
File "/data/anaconda3/envs/dino/lib/python3.11/site-packages/torch/autograd/gradcheck.py", line 1491, in _gradcheck_real_imag
gradcheck_fn(
File "/data/anaconda3/envs/dino/lib/python3.11/site-packages/torch/autograd/gradcheck.py", line 1632, in _slow_gradcheck
raise GradcheckError(
torch.autograd.gradcheck.GradcheckError: Jacobian mismatch for output 0 with respect to input 0,

did anyone encounter this error?

Then i skiped this error and ran the fine-tuning process, its ok and can ran well.

@lllabmaster
Copy link
Author

lllabmaster commented Nov 18, 2024

my environment:
cuda: 11.8
torch: 2.5.0+cu118
os: ubuntu
gpu: v100-32G

@lllabmaster
Copy link
Author

lllabmaster commented Nov 18, 2024

i fixed this error following chengdazhi/Deformable-Convolution-V2-PyTorch#15 (comment)

it seemed like my gpu is a litte out-date? 😄

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

No branches or pull requests

1 participant