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

cause error when try to train #2

Open
jackyyang-cv opened this issue Jul 25, 2024 · 5 comments
Open

cause error when try to train #2

jackyyang-cv opened this issue Jul 25, 2024 · 5 comments

Comments

@jackyyang-cv
Copy link

the error is:RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.HalfTensor [1, 768]], which is output 0 of DivBackward0, is at version 1; expected version 0 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).

@caoyunkang
Copy link
Owner

Hi,

Thanks for your interest! Your reported issue may be caused by a different version of Torch. I suggest downgrading your Torch to version 1.10.1+cu111. Best,

@jackyyang-cv
Copy link
Author

I have fix this error.

@Hualiujie
Copy link

I have fix this error.

Do you downgrading your Torch to version 1.10.1+cu111? Can you share your method?

@Hualiujie
Copy link

Hi,

Thanks for your interest! Your reported issue may be caused by a different version of Torch. I suggest downgrading your Torch to version 1.10.1+cu111. Best,

I try to downgrading my Torch to version 1.10.1+cu111, but there are many errors. Who can share your method for this Error? Thank you

@Kaze816
Copy link

Kaze816 commented Aug 2, 2024

I have fix this error.

Do you downgrading your Torch to version 1.10.1+cu111? Can you share your method?

torch-1.13.1+cu116-cp39-cp39-win_amd64.whl wooking OK
torch-2.3.0+cu118-cp39-cp39-win_amd64.whl shows the same error
只需要切换虚拟环境即可

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

4 participants