update tiktoken integ to use converted (#36135)

This commit is contained in:
Arthur 2025-02-11 18:27:22 +01:00 committed by GitHub
parent 3a5c328fd8
commit 03534a92f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,5 +41,5 @@ def convert_tiktoken_to_fast(encoding: Any, output_dir: str):
tokenizer = TikTokenConverter(
vocab_file=save_file_absolute, pattern=encoding._pat_str, additional_special_tokens=encoding._special_tokens
).tokenizer()
).converted()
tokenizer.save(output_file_absolute)