Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions aiu_fms_testing_utils/scripts/drive_paged_programs.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,18 @@ def __load_validation_info(
**extra_kwargs,
)

# do an extra inference call to workaround the issue on z/OS where the first inference
# result is always incorrect during multi-AIU (issue 173)
extract_validation_information(
model,
input_ids,
max_new_tokens,
post_iteration_hook=None,
last_n_tokens=64,
prefill_chunk_size=args.prefill_chunk_size,
**extra_kwargs,
)

if USE_DISTRIBUTED:
# wait for rank0 to be finished as it is the only one generating the criteria json
# this is needed since otherwise we may run into a race condition
Expand Down