-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Support encoder-only models without KV-Cache #21270
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
Changes from 3 commits
8a2c588
3f11075
a416120
d845e22
1f3fcc4
85bf5fe
8e2cba1
7357614
aa69e92
838567f
d81e143
f0caa0b
9318e98
068697b
837e51b
bec5419
cbc2c4e
6f64b11
e39bc74
b406896
a0b0868
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1671,7 +1671,8 @@ def _set_default_args_v1(self, usage_context: UsageContext, | |
|
|
||
| if (self.max_num_seqs is None | ||
| and usage_context in default_max_num_seqs): | ||
| self.max_num_seqs = default_max_num_seqs[usage_context] | ||
| self.max_num_seqs = min(default_max_num_seqs[usage_context], | ||
| self.max_num_batched_tokens or sys.maxsize) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's just because |
||
|
|
||
| logger.debug("Setting max_num_seqs to %d for %s usage context.", | ||
| self.max_num_seqs, use_context_value) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.