|
Mila
Deep Neural Network Library
|
Pre-tokenization mode enumeration for GPT-4 style BPE tokenizers. More...
Namespaces | |
| namespace | Mila |
| Mila main API namespace. | |
Enumerations | |
| enum class | Mila::Data::PreTokenizationMode { None , Whitespace , Gpt2Regex , Llama3Regex , SentencePiece } |
| Pre-tokenization strategies for GPT-4 style BPE tokenizers. | |
Variables | |
| constexpr const char * | Mila::Data::GPT2_PRETOKENIZATION_PATTERN |
| constexpr const char * | Mila::Data::GPT2_PRETOKENIZATION_PATTERN_ASCII_FALLBACK |
| constexpr const char * | Mila::Data::LLAMA3_PRETOKENIZATION_PATTERN |
| constexpr const char * | Mila::Data::LLAMA3_PRETOKENIZATION_PATTERN_ASCII_FALLBACK |
Pre-tokenization mode enumeration for GPT-4 style BPE tokenizers.
Extends the GPT-2 BPE pre-tokenization modes with the GPT-4 / Llama 3.x regex pattern. This module is intentionally separate from the BpeTokenizer variant to avoid any risk of breaking validated GPT-2 tokenization.
|
constexprexport |
|
constexprexport |
|
constexprexport |
|
constexprexport |