Unverified Commit 35e2d13f authored by Cookie_thief's avatar Cookie_thief Committed by GitHub
Browse files

Upd AutoTokenizer.from_pretrained doc examples (#17416)

parent 897a8dd8
......@@ -474,6 +474,9 @@ class AutoTokenizer:
>>> # If vocabulary files are in a directory (e.g. tokenizer was saved using *save_pretrained('./test/saved_model/')*)
>>> tokenizer = AutoTokenizer.from_pretrained("./test/bert_saved_model/")
>>> # Download vocabulary from huggingface.co and define model-specific arguments
>>> tokenizer = AutoTokenizer.from_pretrained("roberta-base", add_prefix_space=True)
```"""
config = kwargs.pop("config", None)
kwargs["_from_auto"] = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment