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

How much GPU memory needed to run example ? #70

Open
fangming-he opened this issue Nov 26, 2023 · 3 comments
Open

How much GPU memory needed to run example ? #70

fangming-he opened this issue Nov 26, 2023 · 3 comments

Comments

@fangming-he
Copy link

How much CUDA memory are required to run the example?

While running exmaple with command "CUDA_VISIBLE_DEVICES=0 python examples/run_streaming_llama.py --enable_streaming"
Below error pop up:
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 136.00 MiB. GPU 0 has a total capacty of 7.92 GiB of which 131.69 MiB is free. Including non-PyTorch memory, this process has 7.79 GiB memory in use. Of the allocated memory 7.03 GiB is allocated by PyTorch, and 131.61 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

@meganmou
Copy link

meganmou commented Mar 2, 2024

Did you end up finding out the answer to this? I ran into the same issue with a 16 GB GPU trying to run on a GCP VM instance.

@scatyf3
Copy link

scatyf3 commented Mar 8, 2024

I ran streamingLLM on an A100 (40GB), using Llama-2-13b and Aquila2-7B, but they were both Out of menory :( I don't know what I did wrong

@fangming-he
Copy link
Author

fangming-he commented Mar 8, 2024

Did you enable_streaming?
If enable_streaming and has 32GB memory on GPU, it should be OK to run 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

3 participants