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

Use Multiple GPUs with InternVL2 #12

Open
Backendmagier opened this issue Aug 6, 2024 · 4 comments
Open

Use Multiple GPUs with InternVL2 #12

Backendmagier opened this issue Aug 6, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@Backendmagier
Copy link

Backendmagier commented Aug 6, 2024

Is it possible to use multiple GPUs? im having 2 3090s but i cant get InternVL26B to run as it is always running on only one Card...

I try to start it like this: "CUDA_VISIBLE_DEVICES=1,0 python vision.py --model OpenGVLab/InternVL2-26B --device-map sequential"

and i get this error: "torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 32.00 MiB. GPU 1 has a total capacity of 23.55 GiB of which 9.19 MiB is free. Including non-PyTorch memory, this process has 23.52 GiB memory in use. Of the allocated memory 23.02 GiB is allocated by PyTorch, and 125.25 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)"

@matatonic
Copy link
Owner

Not yet, but there has been an update by the model maker indicating how to do this, I will update it in an upcoming release.

@matatonic matatonic changed the title Use Multiple GPUs Use Multiple GPUs with InternVL2 Aug 6, 2024
@Backendmagier
Copy link
Author

alright, thank you!

@matatonic
Copy link
Owner

(I'll close the issue when it's fixed)

@matatonic matatonic added the enhancement New feature or request label Sep 11, 2024
@AlexM4H
Copy link

AlexM4H commented Sep 25, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants