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

Free engine resource for the slot after finished one request decoding #119

Merged
merged 3 commits into from
Jul 23, 2024

Conversation

FanhaiLu1
Copy link
Contributor

This PR add one feature: free engine resource (cache and other resource) after completing a request.

Advance kennel like PageAttention reserve page block for different tokens in insert and decode, all these reserve resource must be free after completing the decode of a request, the free page block can be reused for coming requests.

Once all engine implement this function, will force this function as abstractmethod.

@FanhaiLu1 FanhaiLu1 requested a review from vipannalla as a code owner July 23, 2024 00:27
@FanhaiLu1 FanhaiLu1 requested a review from JoeZijunZhou July 23, 2024 00:35
@FanhaiLu1 FanhaiLu1 changed the title Add free resource function after finished one request decoding Free engine resource for the slot after finished one request decoding Jul 23, 2024
@FanhaiLu1 FanhaiLu1 merged commit af1b918 into AI-Hypercomputer:main Jul 23, 2024
3 checks passed
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.

2 participants