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

[Feature Request] disc/NVMe offloading #446

Open
trabbart opened this issue Aug 12, 2023 · 0 comments
Open

[Feature Request] disc/NVMe offloading #446

trabbart opened this issue Aug 12, 2023 · 0 comments

Comments

@trabbart
Copy link

I wanted to propose the addition of disc/NVMe offloading (I have observed this solution in the DeepSpeed library). Suppose we have a large set of prompts and a large model that exceeds the available RAM. In this scenario, it is possible to feed these prompts in large batches to our model. In such case at any given moment we only need to retain a few layers of the model in memory. By implementing layer prefetching, we can minimize latency and achieve a high throughput.

This specific feature has been implemented in the DeepSpeed library (with a focus on GPU inference). You can find a comprehensive description of it in the following link provided by DeepSpeed:
https://www.deepspeed.ai/2022/09/09/zero-inference.html

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

1 participant