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

I use this set --gradient_checkpointing \ #16

Open
LeoLopezt opened this issue Dec 4, 2024 · 4 comments
Open

I use this set --gradient_checkpointing \ #16

LeoLopezt opened this issue Dec 4, 2024 · 4 comments

Comments

@LeoLopezt
Copy link

But it returns the error
RuntimeError: The size of tensor a (1024) must match the size of tensor b (256) at non-singleton dimension 1.
Can you help me deal with this problem? Thanks

@xdobetter
Copy link
Contributor

refer to #10 (comment)

@LeoLopezt
Copy link
Author

If I want this set "--gradient_checkpointing " to be used, is there any other ways to deal with

@LeoLopezt
Copy link
Author

cause a 24GB GPU isn't enough to train

@xdobetter
Copy link
Contributor

By employing the methodologies outlined therein #10 (comment) , it should be possible to conduct training with a size below 24GB. Perhaps you might consider giving it a try.

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