Skip to content

[nvbugs/6035425][fix] Fix host side memory doubling when V2 auto provisioning is used - #14365

Closed
mikeiovine wants to merge 1 commit into
NVIDIA:mainfrom
mikeiovine:fix-mem
Closed

[nvbugs/6035425][fix] Fix host side memory doubling when V2 auto provisioning is used#14365
mikeiovine wants to merge 1 commit into
NVIDIA:mainfrom
mikeiovine:fix-mem

Conversation

@mikeiovine

Copy link
Copy Markdown
Collaborator

Description

Fix the doubling of KV cache host side memory. We previously had a fix with #13130. However, this fix only gets applied when the host side cache bytes are manually specified. If the amount of host memory is provisioned automatically, then it still gets doubled.

This PR addresses the issue - the draft/target memory split now always runs before KV cache manager creation.

Test Coverage

Added a few new tests.

PR Checklist

Please review the following before submitting your PR:

  • PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.

  • PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.

  • Test cases are provided for new code paths (see test instructions)

  • If PR introduces API changes, an appropriate PR label is added - either api-compatible or api-breaking. For api-breaking, include BREAKING in the PR title.

  • Any new dependencies have been scanned for license and vulnerabilities

  • CODEOWNERS updated if ownership changes

  • Documentation updated as needed

  • Update tava architecture diagram if there is a significant design change in PR.

  • The reviewers assigned automatically/manually are appropriate for the PR.

  • Please check this after reviewing the above items as appropriate for this PR.

GitHub Bot Help

To see a list of available CI bot commands, please comment /bot help.

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.

1 participant