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

inference oom #10

Open
WuJian1995 opened this issue Jul 2, 2024 · 1 comment
Open

inference oom #10

WuJian1995 opened this issue Jul 2, 2024 · 1 comment

Comments

@WuJian1995
Copy link

when inference a100 with 80GB memory:

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 57.93 GiB. GPU 0 has a total capacty of 79.35 GiB of which 17.27 GiB is free. Process 41187 has 62.08 GiB memory in use. Of the allocated memory 60.67 GiB is allocated by PyTorch, and 11.17 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

how to solve it ?

@zhangtianshu
Copy link
Collaborator

You may not install a suitable environment. One A100 with 80G is enough for inference on TableLlama.

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

2 participants