We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc3a30f commit 90cc890Copy full SHA for 90cc890
aiu_fms_testing_utils/scripts/drive_paged_programs.py
@@ -421,6 +421,18 @@ def __load_validation_info(
421
**extra_kwargs,
422
)
423
424
+# do an extra inference call to workaround the issue on z/OS where the first inference
425
+# result is always incorrect during multi-AIU (issue 173)
426
+extract_validation_information(
427
+ model,
428
+ input_ids,
429
+ max_new_tokens,
430
+ post_iteration_hook=None,
431
+ last_n_tokens=64,
432
+ prefill_chunk_size=args.prefill_chunk_size,
433
+ **extra_kwargs,
434
+)
435
+
436
if USE_DISTRIBUTED:
437
# wait for rank0 to be finished as it is the only one generating the criteria json
438
# this is needed since otherwise we may run into a race condition
0 commit comments