Skip to content

Commit

Permalink
Merge pull request #167 from anwuzhiab/main-1
Browse files Browse the repository at this point in the history
Update pretraining.py
  • Loading branch information
shibing624 authored Aug 21, 2023
2 parents cfd2bf5 + 0210776 commit 3c92e3a
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 3c92e3a

Please sign in to comment.