Skip to content

Commit 0328b8b

Browse files
committed
pass EOS ID to extract validation
Signed-off-by: Sukriti-Sharma4 <sukriti.sharma4@ibm.com>
1 parent 070d504 commit 0328b8b

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

aiu_fms_testing_utils/scripts/save_cpu_data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def process_row(row):
9797
max_new_tokens,
9898
LogitsExtractorHook(),
9999
attn_algorithm="math",
100+
eos_token_id=tokenizer.eos_token_id
100101
)
101102
return {"id": id, "input_ids": input_ids, "validation": cpu_validation_info}
102103

aiu_fms_testing_utils/scripts/validation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +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,
693694
attn_algorithm="math",
694695
**padding_kwargs,
695696
)

tests/models/test_decoders.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ def _get_device_validation_information(
612612
max_new_tokens,
613613
post_iteration_hook,
614614
timing=TIMING,
615+
eos_token_id=tokenizer.eos_token_id,
615616
**extra_kwargs,
616617
**device_dependent_kwargs,
617618
)

0 commit comments

Comments
 (0)