mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 02:31:11 +06:00
update tiktoken integ to use converted (#36135)
This commit is contained in:
parent
3a5c328fd8
commit
03534a92f8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user