mirror of https://github.com/THUDM/ChatGLM-6B
Merge branch 'main' of github.com:THUDM/ChatGLM-6B
commit
ff3761fc1a
|
@ -203,8 +203,8 @@ class DataTrainingArguments:
|
||||||
|
|
||||||
|
|
||||||
def __post_init__(self):
|
def __post_init__(self):
|
||||||
if self.dataset_name is None and self.train_file is None and self.validation_file is None:
|
if self.dataset_name is None and self.train_file is None and self.validation_file is None and self.test_file is None:
|
||||||
raise ValueError("Need either a dataset name or a training/validation file.")
|
raise ValueError("Need either a dataset name or a training/validation/test file.")
|
||||||
else:
|
else:
|
||||||
if self.train_file is not None:
|
if self.train_file is not None:
|
||||||
extension = self.train_file.split(".")[-1]
|
extension = self.train_file.split(".")[-1]
|
||||||
|
|
Loading…
Reference in New Issue