Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
vietanh125 committed Nov 2, 2023
1 parent 30dd7be commit ba2ddab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axolotl/prompt_tokenizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def tokenize_prompt(self, prompt):
LOG.warning(f"assistant turn has empty text: {prompt}")
res = self._tokenize(
turn,
add_eos_token=conversation.name == "chatml",
add_eos_token=conversation.name != "chatml",
strip_bos_token=True,
)
role_res = self._tokenize(
Expand Down

0 comments on commit ba2ddab

Please sign in to comment.