You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to create a custom tokenizer model using the library drain3 or use similar methods. Looking at the examples found in bindings/python/examples/custom_components.py , I see that it isn't hard to create a pre-tokenizer or normalizer, but couldn't follow the same pattern of using the custom method. would I just need to implement a class such as the following and initialize the tokenizer class with Tokenizer(MyCustomModelClass())?
Just to add to this, are the tokenizer models only implemented in rust and to add to this would require a rust implementation? Would it be better to try and make a subclass of the TokenizerBase class in python?
Hello,
I would like to create a custom tokenizer model using the library drain3 or use similar methods. Looking at the examples found in bindings/python/examples/custom_components.py , I see that it isn't hard to create a pre-tokenizer or normalizer, but couldn't follow the same pattern of using the
custom
method. would I just need to implement a class such as the following and initialize the tokenizer class withTokenizer(MyCustomModelClass())
?The text was updated successfully, but these errors were encountered: