Remove use_auth_token from the from_config method (#18192)

* remove use_auth_token from from_config

* restore use_auth_token from_pretrained run_t5_mlm_flax
This commit is contained in:
Duong A. Nguyen
2022-07-19 13:13:20 +07:00
committed by GitHub
parent 29fd471556
commit 4bea6584e3
5 changed files with 0 additions and 5 deletions

View File

@@ -501,7 +501,6 @@ def main():
config,
seed=training_args.seed,
dtype=getattr(jnp, model_args.dtype),
use_auth_token=True if model_args.use_auth_token else None,
)
# Preprocessing the datasets.

View File

@@ -632,7 +632,6 @@ def main():
config,
seed=training_args.seed,
dtype=getattr(jnp, model_args.dtype),
use_auth_token=True if model_args.use_auth_token else None,
)
# Store some constant

View File

@@ -739,7 +739,6 @@ def main():
config,
seed=training_args.seed,
dtype=getattr(jnp, model_args.dtype),
use_auth_token=True if model_args.use_auth_token else None,
)
# Data collator

View File

@@ -529,7 +529,6 @@ def main():
config,
seed=training_args.seed,
dtype=getattr(jnp, model_args.dtype),
use_auth_token=True if model_args.use_auth_token else None,
)
if model.config.decoder_start_token_id is None:

View File

@@ -363,7 +363,6 @@ def main():
config,
seed=training_args.seed,
dtype=getattr(jnp, model_args.dtype),
use_auth_token=True if model_args.use_auth_token else None,
)
# Store some constant