Skip to content

Conversation

@tjruwase
Copy link
Contributor

@tjruwase tjruwase commented Mar 6, 2023

Currently, zero.Init() will offload all parameters even if user requested some to be pinned in GPU memory (using *_persistence_threshold configs). Those params are eventually pinned into GPU memory after the first forward pass. Unfortunately, zero.Init() may fail CPU OOM which could be avoided by utilizing GPU and CPU memory per user request.
This PR avoids this problem and improves flexibility of combining GPU and CPU memory.

@tjruwase tjruwase requested review from jeffra, jomayeri and samyam March 6, 2023 13:42
@tjruwase tjruwase requested a review from mrwyattii as a code owner March 6, 2023 13:42
@tjruwase tjruwase merged commit 4d27225 into master Apr 7, 2023
@mrwyattii mrwyattii deleted the olruwase/zero_infer_partial_offload branch July 7, 2023 02:36
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

Successfully merging this pull request may close these issues.

3 participants