Skip to content

Commit

Permalink
Update pretraining.py
Browse files Browse the repository at this point in the history
fix eval file path
  • Loading branch information
anwuzhiab authored Aug 16, 2023
1 parent cfd2bf5 commit 0210776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pretraining.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def group_texts(examples):
raise ValueError(f"train files must be same type, e.g. all txt or all jsonl, but got {types}")
data_files["train"] = train_data_files
if data_args.validation_file_dir is not None and os.path.exists(data_args.validation_file_dir):
eval_data_files = glob(f'{data_args.train_file_dir}/**/*.txt', recursive=True) + glob(
eval_data_files = glob(f'{data_args.validation_file_dir}/**/*.txt', recursive=True) + glob(
f'{data_args.train_file_dir}/**/*.json', recursive=True) + glob(
f'{data_args.train_file_dir}/**/*.jsonl', recursive=True)
logger.info(f"eval files: {eval_data_files}")
Expand Down

0 comments on commit 0210776

Please sign in to comment.