Skip to main content
In the processing section of your config file, specify the path to the custom token tokenizer class in the custom_tokenizer parameter. If needed, pass in additional tokenizer_params (such as token, vocab_file, or encoder_file). For example:
The path to your custom tokenizer must be specified using this format: module_name:class_name.

Example of a Custom Tokenizer

Here is an example of custom LLama3 tokenizer that was implemented in Model Zoo:
View this code in the Model Zoo.