Skip to content

Commit 2a61fa9

Browse files
committed
Fixing file path suffix.
Signed-off-by: [email protected] Signed-off-by: Gautham Kollu <[email protected]>
1 parent 4a6cdc2 commit 2a61fa9

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(str(path) + 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)