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

Strange CUDA: OOM (Out of Memory) Issue #779

Open
Vishawjeet-rmsl opened this issue Oct 21, 2024 · 0 comments
Open

Strange CUDA: OOM (Out of Memory) Issue #779

Vishawjeet-rmsl opened this issue Oct 21, 2024 · 0 comments

Comments

@Vishawjeet-rmsl
Copy link

Hi, So I'm currently trying to train SAM with different configurations.
So I've modified the depth and patch size in the codes, I'm facing one strange issue.
Below is the vit-h (ignore attention indexes...)
image
and Below is the vit-b:
image

This is the patch size (kept same for both)
image

To my surprise, the model with vit-h is training fine:
image
But the model with vit-b keeps giving me OOM Issue:
image

I'm confused, how and why! Vit-B is lighter than Vit-H, if Vit-H is getting trained, then Vit-B should train as well.

BTW, I'm also training the Image encoder in both cases.

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