Add the import script for the T5 tokenizer. (#2399)
This commit is contained in:
parent
dfdce2b602
commit
59bbc0d287
|
@ -0,0 +1,6 @@
|
|||
from transformers import AutoModelForCausalLM, AutoTokenizer
|
||||
|
||||
BASE_MODEL = "google/t5-v1_1-xxl"
|
||||
tokenizer = AutoTokenizer.from_pretrained(BASE_MODEL)
|
||||
# The tokenizer will be saved in /tmp/tokenizer/tokenizer.json
|
||||
tokenizer.save_pretrained("/tmp/tokenizer/")
|
Loading…
Reference in New Issue