Skip to content

Commit 84c4d87

Browse files
committed
use of no stop gneration in validation
Signed-off-by: Sukriti-Sharma4 <sukriti.sharma4@ibm.com>
1 parent bc1d109 commit 84c4d87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aiu_fms_testing_utils/scripts/validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ def print_result(result, result_idx: int = 0, file_prefix: str = ""):
690690
ids.to(validation_device),
691691
args.max_new_tokens,
692692
LogitsExtractorHook(),
693-
eos_token_id=tokenizer.eos_token_id,
693+
eos_token_id=None if args.no_early_termination else tokenizer.eos_token_id,
694694
attn_algorithm="math",
695695
**padding_kwargs,
696696
)

0 commit comments

Comments
 (0)