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

[Misc]: Implement CPU/GPU swapping in BlockManagerV2 #3666

Closed
cadedaniel opened this issue Mar 27, 2024 · 5 comments
Closed

[Misc]: Implement CPU/GPU swapping in BlockManagerV2 #3666

cadedaniel opened this issue Mar 27, 2024 · 5 comments
Assignees
Labels
good first issue Good for newcomers misc

Comments

@cadedaniel
Copy link
Collaborator

cadedaniel commented Mar 27, 2024

Recently, we refactored the block manager subsystem to improve testability by separating concerns of each layer. See #3492 for more information.

The V2 implementation does not have support for CPU-GPU swapping. It can be added in the CpuGpuBlockAllocator. My first take on the design is that it should simply keep track of the requested swap requests and have the scheduler get_and_clear them after each scheduling step.

image

@Kaiyang-Chen
Copy link
Contributor

I would like to have a try on this!

@cadedaniel
Copy link
Collaborator Author

I would like to have a try on this!

That would be great! Let me know if I can answer any questions

@foreverpiano
Copy link

@cadedaniel Hi, does the block manager v2 support cpu-gpu offloading now?

@KuntaiDu
Copy link
Collaborator

I can also help! Let me take a look at the example code and BlockSpaceManager first.

@cadedaniel
Copy link
Collaborator Author

Closed by #3834

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers misc
Projects
None yet
Development

No branches or pull requests

4 participants