Skip to content

Commit 070d504

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

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

aiu_fms_testing_utils/scripts/drive_paged_programs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,7 @@ def __metric_calculator(r: torch.Tensor, t: torch.Tensor):
682682
max_new_tokens,
683683
LogitsExtractorHook(),
684684
attn_algorithm="math",
685+
eos_token_id=tokenizer.eos_token_id,
685686
**extra_kwargs,
686687
)
687688
# save the cpu validation info for later consumption
@@ -706,6 +707,7 @@ def __metric_calculator(r: torch.Tensor, t: torch.Tensor):
706707
input_ids,
707708
max_new_tokens,
708709
GoldenTokenHook(cpu_validation_info.get_info("tokens")),
710+
eos_token_id=tokenizer.eos_token_id,
709711
last_n_tokens=64,
710712
timing=TIMING,
711713
prefill_chunk_size=args.prefill_chunk_size,
@@ -751,6 +753,7 @@ def __metric_calculator(r: torch.Tensor, t: torch.Tensor):
751753
input_ids,
752754
max_new_tokens,
753755
None,
756+
eos_token_id=tokenizer.eos_token_id
754757
last_n_tokens=64,
755758
timing=TIMING,
756759
prefill_chunk_size=args.prefill_chunk_size,
@@ -794,6 +797,7 @@ def __metric_calculator(r: torch.Tensor, t: torch.Tensor):
794797
input_ids,
795798
max_new_tokens,
796799
None,
800+
eos_token_id=tokenizer.eos_token_id,
797801
last_n_tokens=64,
798802
timing=TIMING,
799803
prefill_chunk_size=args.prefill_chunk_size,

0 commit comments

Comments
 (0)