mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Fix token pass (#24862)
* Fix how token is passed along in from_pretrained for tokenizers * It's actually not necessary
This commit is contained in:
parent
f42a35e611
commit
49eb357564
@ -1720,10 +1720,6 @@ class PreTrainedTokenizerBase(SpecialTokensMixin, PushToHubMixin):
|
||||
)
|
||||
token = use_auth_token
|
||||
|
||||
if token is not None:
|
||||
# change to `token` in a follow-up PR
|
||||
kwargs["use_auth_token"] = token
|
||||
|
||||
user_agent = {"file_type": "tokenizer", "from_auto_class": from_auto_class, "is_fast": "Fast" in cls.__name__}
|
||||
if from_pipeline is not None:
|
||||
user_agent["using_pipeline"] = from_pipeline
|
||||
|
Loading…
Reference in New Issue
Block a user