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

Limit number of sequences #220

Merged
merged 11 commits into from
Feb 23, 2024
Merged

Conversation

yelite
Copy link

@yelite yelite commented Feb 23, 2024

This PR:

  • Adds max_num_seq and max_num_seq_per_request to limit number of sequences in the batch and in each request.
  • Use max_num_seq to guide the memory profiling to be less conservative, leaving more room for KV cache
  • Expose gpu_memory_utilization in engine config

@sunggg @masahi

@masahi masahi merged commit 8ee6aaa into octoml:batch-serving Feb 23, 2024
1 check passed
@masahi
Copy link
Member

masahi commented Feb 23, 2024

This should be sent to https://github.com/octoml/mlc-serve/ as well.

Lunderberg pushed a commit to Lunderberg/mlc-llm that referenced this pull request Feb 27, 2024
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