ModelTokenizer¶
- class torchtune.modules.tokenizers.ModelTokenizer(*args, **kwargs)[source]¶
Abstract tokenizer that implements model-specific special token logic in the
tokenize_messagesmethod. SeeLlama3Tokenizerfor an example implementation of this protocol.