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

grad error #383

Open
zhou745 opened this issue Mar 2, 2024 · 0 comments
Open

grad error #383

zhou745 opened this issue Mar 2, 2024 · 0 comments

Comments

@zhou745
Copy link

zhou745 commented Mar 2, 2024

Training with dinov2 as image encoder, nothing changed in dinov2

I receive the following error:

Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass
/home/jqzhou/anaconda3/envs/gsp_gen/lib/python3.9/site-packages/torch/autograd/init.py:197: UserWarning: Grad strides do not match bucket view strides. This may indicate grad was not created according to the gradient layout contract, or that the param's strides changed since DDP was constructed. This is not an error, but may impair performance.
grad.sizes() = [1, 1, 768], strides() = [1052160, 768, 1]
bucket_view.sizes() = [1, 1, 768], strides() = [768, 768, 1] (Triggered internally at ../torch/csrc/distributed/c10d/reducer.cpp:325.)
Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass
/home/jqzhou/anaconda3/envs/gsp_gen/lib/python3.9/site-packages/torch/autograd/init.py:197: UserWarning: Grad strides do not match bucket view strides. This may indicate grad was not created according to the gradient layout contract, or that the param's strides changed since DDP was constructed. This is not an error, but may impair performance.
grad.sizes() = [1, 1, 768], strides() = [1052160, 768, 1]
bucket_view.sizes() = [1, 1, 768], strides() = [768, 768, 1] (Triggered internally at ../torch/csrc/distributed/c10d/reducer.cpp:325.)
Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass

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