bigscience-workshop / bigscience-workshop/petals

Allocate all GPU memory on startup

Open
#308 0 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Python
Stars
10.6k
Forks
650
PR merge metrics
No merged PRs in 30d

Description

_Suggested by @slush0 on Discord._

It would be great to allocate all GPU memory on startup (including max space for attention cache and max space for intermediate tensors created during backward).

Right now, the memory is allocated on-demand, and people may see OOMs only after a few days of running the server. Allocating everything right away would allows to see OOMs right away and choose a correct number of blocks before leaving a server to run in the background.

Any other way to check if we have enough GPU memory on startup would be also good.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.