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

Weird Reported Memory Usage #26

Closed
Lyken17 opened this issue Apr 7, 2023 · 3 comments
Closed

Weird Reported Memory Usage #26

Lyken17 opened this issue Apr 7, 2023 · 3 comments

Comments

@Lyken17
Copy link

Lyken17 commented Apr 7, 2023

I notice in current report

  Training (with int8)
Baize-7B 26GB
Baize-13B 25GB
Baize-30B 42GB

13B models consumes actually less memory than 7B. Is it a typo?

@thekevshow
Copy link

Also had a question, is this really 1 Gig shy of being able to run on a 4090? Or is this just the memory that wound up getting used during training and wouldn't actually potentially prevent say a 24 gig VRAM device from running this.

@JetRunner
Copy link
Contributor

Baize-13B 25GB
13B models consumes actually less memory than 7B. Is it a typo?

It's not! As we said in README, the reported GPU memory usage is based on the default settings, where we use 1/2 of 7B's batch size for 13B.

@JetRunner
Copy link
Contributor

Also had a question, is this really 1 Gig shy of being able to run on a 4090? Or is this just the memory that wound up getting used during training and wouldn't actually potentially prevent say a 24 gig VRAM device from running this.

No, you can definitely get it running on 4090. Just change $BATCH_SIZE in python finetune.py 7b $BATCH_SIZE 0.0002 alpaca,stackoverflow,quora to a smaller value then you're good to go!

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

3 participants