Skip to content

Commit f5892f8

Browse files
Fixing file path suffix. (#14179)
Signed-off-by: Gautham Kollu <[email protected]> Co-authored-by: Charlie Truong <[email protected]>
1 parent 31515da commit f5892f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nemo/collections/llm/gpt/data/pre_training.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def validate_dataset_asset_accessibility(paths):
103103
raise PermissionError(f"Expected {str(path)} to be readable.")
104104
return
105105
for suffix in suffices:
106-
file_path = path.with_suffix(suffix)
106+
file_path = path.with_name(path.name + suffix)
107107
if not file_path.exists():
108108
raise FileNotFoundError(f"Expected {str(file_path)} to exist.")
109109
if not os.access(file_path, os.R_OK):

0 commit comments

Comments
 (0)