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

_dygraph_tracer()._has_grad is False, inplace multiply_grad is not yet supported. #662

Open
imheng opened this issue Aug 1, 2024 · 2 comments
Assignees

Comments

@imheng
Copy link

imheng commented Aug 1, 2024

hey guys, I am quite new to paddlemix :)

After few days trying, eventually i can run clip/run_zero_shot_eval.py, and I am happy with the result by 4090.

However, when it comes to clip/run_pretrain_dist.py to do my custom sft, the code doesn't work and pop up error message like this:

File "/home/heng/anaconda3/envs/paddlemix/lib/python3.10/site-packages/paddle/tensor/math.py", line 974, in multiply_
_dygraph_tracer().has_grad is False
AssertionError: The current inplace version of multiply
needs to be used in the context of paddle.no_grad() since inplace multiply_grad is not yet supported.

is there anyone met this just like what happens to me?

thanks for your time!

@imheng
Copy link
Author

imheng commented Aug 2, 2024

this happens to my 4090 own machine, it also occurs at aistudio environment. so wired...

截屏2024-08-02 08 14 05

@LokeZhou
Copy link
Collaborator

hi ! What version of paddle is it?

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

2 participants