Skip to content

Commit 6ab245f

Browse files
committed
Merge branch 'main' into release/1.6
2 parents 9ca8206 + 8579164 commit 6ab245f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

swift/llm/utils/argument.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,7 @@ def _check_path(
796796
def handle_path(args: Union[SftArguments, InferArguments]) -> None:
797797
check_exist_path = [
798798
'model_cache_dir', 'ckpt_dir', 'resume_from_checkpoint',
799-
'deepspeed_config_path', 'custom_train_dataset_path',
800-
'custom_val_dataset_path'
799+
'custom_train_dataset_path', 'custom_val_dataset_path'
801800
]
802801
if args.model_id_or_path is not None and (
803802
args.model_id_or_path.startswith('~')

swift/llm/utils/preprocess.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ def __call__(self, dataset: HfDataset) -> HfDataset:
9595
try:
9696
conversations = d[self.conversations_key]
9797
conversations = self.repair_conversations(conversations)
98+
if conversations is None:
99+
continue
98100
lo = 0
99101
sys = None
100102
h: History = []

0 commit comments

Comments
 (0)