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

Reduce default value of VLLM_GRAPH_RESERVED_MEM to 0.1 #292

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

kzawora-intel
Copy link

@kzawora-intel kzawora-intel commented Sep 17, 2024

After #252, HPUGraph capture takes much less memory, and we can reduce the memory reserved for HPUGraphs. On Llama3.1-8b-Instruct (G2), capturing 100% of prefill and decode graphs on BS=256 now takes 1.566 GB of HBM, which is far less than 40% (~30 GB) we reserve by default. This results in lots of unused (==wasted) memory, which could be used instead for more KV cache blocks.

@michalkuligowski michalkuligowski merged commit 47a89be into habana_main Sep 17, 2024
14 checks passed
@kzawora-intel kzawora-intel added the habana Issues or PRs submitted by Habana Labs label Sep 20, 2024
@kzawora-intel kzawora-intel deleted the private/kzawora/less_graph_mem branch October 7, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
habana Issues or PRs submitted by Habana Labs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants