Merge branch 'main' of github.com:THUDM/ChatGLM-6B

pull/313/head
duzx16 2 years ago
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…
Cancel
Save