Skip to content

Commit

Permalink
fix qwen2 tokenizer name
Browse files Browse the repository at this point in the history
  • Loading branch information
amulil committed Oct 16, 2024
1 parent 4a1b201 commit 6881a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xtuner/dataset/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

def get_bos_eos_token_ids(tokenizer):
if tokenizer.__class__.__name__ in [
'QWenTokenizer', 'QWen2Tokenizer', 'Qwen2TokenizerFast'
'QWenTokenizer', 'Qwen2Tokenizer', 'Qwen2TokenizerFast'
]:
bos_token_id = []
eos_token_id = tokenizer.eos_token_id
Expand Down

0 comments on commit 6881a97

Please sign in to comment.