Skip to content

Commit

Permalink
Add Qwen2Tokenizer (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
finnvoor authored Dec 24, 2024
1 parent d656ad4 commit bda7f90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Tokenizers/Tokenizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ struct TokenizerModel {
"T5Tokenizer" : T5Tokenizer.self,
"WhisperTokenizer" : WhisperTokenizer.self,
"CohereTokenizer" : CohereTokenizer.self,
"Qwen2Tokenizer" : Qwen2Tokenizer.self,
"PreTrainedTokenizer": BPETokenizer.self
]

Expand Down Expand Up @@ -488,6 +489,7 @@ class WhisperTokenizer : BPETokenizer {}
class GemmaTokenizer : BPETokenizer {}
class CodeLlamaTokenizer: BPETokenizer {}
class CohereTokenizer : BPETokenizer {}
class Qwen2Tokenizer : BPETokenizer {}

class T5Tokenizer : UnigramTokenizer {}

Expand Down

0 comments on commit bda7f90

Please sign in to comment.