Skip to content

Commit 3ca15db

Browse files
authored
Merge pull request #161 from foundation-model-stack/fix_validation_info_loading_bug
fixed bug with loading validation info outputs
2 parents 3bfb311 + 7d56b41 commit 3ca15db

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

aiu_fms_testing_utils/testing/validation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ def load_validation_information(
218218
f"Not enough validation files at {validation_files_path} for a batch size of {batch_size}"
219219
)
220220

221+
validation_files_paths.sort(key=lambda p: int(p.name.split(".pt")[0]))
221222
validation_info = []
222223
for i, validation_file_path in enumerate(validation_files_paths):
223224
if i == batch_size:

tests/testing/test_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test_validation_info_round_trip(validation_type, post_iteration_hook):
3737
model.reset_parameters()
3838

3939
seq_length = 64
40-
batch_size = 8
40+
batch_size = 16
4141
max_new_tokens = 128
4242

4343
# prepare input_ids

0 commit comments

Comments
 (0)