Skip to content

Commit

Permalink
fix align
Browse files Browse the repository at this point in the history
  • Loading branch information
AlongWY committed Dec 26, 2024
1 parent e86c3a4 commit 19be874
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/llamafactory/data/aligner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]}
Expand Down

0 comments on commit 19be874

Please sign in to comment.