From 19be8743e50f7ada66e5539bb90dce35ebf7916a Mon Sep 17 00:00:00 2001 From: ylfeng Date: Fri, 27 Dec 2024 00:26:59 +0800 Subject: [PATCH] fix align --- src/llamafactory/data/aligner.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/llamafactory/data/aligner.py b/src/llamafactory/data/aligner.py index ca4e5620a..34ce06f0f 100644 --- a/src/llamafactory/data/aligner.py +++ b/src/llamafactory/data/aligner.py @@ -176,7 +176,6 @@ def convert_sharegpt( and messages[turn_idx + 1][dataset_attr.role_tag] == dataset_attr.observation_tag ): turn_idx_bias += 1 - continue aligned_messages.append( {"role": tag_mapping[message[dataset_attr.role_tag]], "content": message[dataset_attr.content_tag]}