Skip to content

Commit 15f1a73

Browse files
fix: Don't set min_tokens when ignore_eos is true (#4908)
Signed-off-by: jthomson04 <jwillthomson19@gmail.com> Signed-off-by: Dan Gil <dagil@nvidia.com> Co-authored-by: jthomson04 <jwillthomson19@gmail.com>
1 parent d668df5 commit 15f1a73

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/llm/src/protocols/common.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ pub struct StopConditions {
254254
impl StopConditions {
255255
pub fn apply_ignore_eos(&mut self) {
256256
if self.ignore_eos.unwrap_or(false) {
257-
self.min_tokens = self.max_tokens;
258257
self.stop = None;
259258
self.stop_token_ids_hidden = None;
260259
}

0 commit comments

Comments
 (0)