The python tiktoken API supports prefixes for fine-tuned models (e.g.here), whereas tiktoken-rs doesn't.
It means that methods that require a tokenizer instance from a fine-tuned model name will all fail.
This PR simply proposes to support existing fine-tuned model names.
Simple unit test is provided as well.
The python
tiktoken
API supports prefixes for fine-tuned models (e.g. here), whereastiktoken-rs
doesn't. It means that methods that require a tokenizer instance from a fine-tuned model name will all fail. This PR simply proposes to support existing fine-tuned model names. Simple unit test is provided as well.