Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Big batchsize cause OOM in bloom-ds-inference.py, how to adjust max_split_size_mb value #84

Open
tohneecao opened this issue Apr 27, 2023 · 1 comment

Comments

@tohneecao
Copy link

OutOfMemoryError: CUDA out of memory. Tried to allocate 62.00 MiB (GPU 6; 79.19 GiB total capacity; 66.51 GiB already allocated; 61.56 MiB free; 67.77 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONFtorch.cuda
.OutOfMemoryError : return forward_call(*input, **kwargs)CUDA out of memory. Tried to allocate 62.00 MiB (GPU 4; 79.19 GiB total capacity; 66.51 GiB already allocated; 61.56 MiB free; 67.77 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

@tohneecao tohneecao changed the title Big batchsize cause OOM Big batchsize cause OOM in bloom-ds-inference.py, how to adjust max_split_size_mb value Apr 27, 2023
@mayank31398
Copy link
Collaborator

max_split_size_mb won't work with deepspeed inference I think.
This is only for pure pytorch native code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants