Skip to content

Commit

Permalink
Update example diff files (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
regisss authored Apr 26, 2022
1 parent 7811eb0 commit c55850d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/question-answering/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
transformers >= 4.17.0
transformers >= 4.18.0
datasets >= 1.8.0
torch >= 1.3.0
2 changes: 1 addition & 1 deletion examples/question-answering/run_qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def main():
transformers.utils.logging.enable_explicit_format()

gaudi_config = GaudiConfig.from_pretrained(
training_args.gaudi_config_name if training_args.gaudi_config_name else model_args.model_name_or_path,
training_args.gaudi_config_name,
cache_dir=model_args.cache_dir,
revision=model_args.model_revision,
use_auth_token=True if model_args.use_auth_token else None,
Expand Down
2 changes: 1 addition & 1 deletion examples/text-classification/run_glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def main():
transformers.utils.logging.enable_explicit_format()

gaudi_config = GaudiConfig.from_pretrained(
training_args.gaudi_config_name if training_args.gaudi_config_name else model_args.model_name_or_path,
training_args.gaudi_config_name,
cache_dir=model_args.cache_dir,
revision=model_args.model_revision,
use_auth_token=True if model_args.use_auth_token else None,
Expand Down
6 changes: 1 addition & 5 deletions tests/example_diff/run_glue.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@
39,40d40
< Trainer,
< TrainingArguments,
50c50
< check_min_version("4.18.0")
---
> check_min_version("4.17.0")
215a216,222
> gaudi_config = GaudiConfig.from_pretrained(
> training_args.gaudi_config_name if training_args.gaudi_config_name else model_args.model_name_or_path,
> training_args.gaudi_config_name,
> cache_dir=model_args.cache_dir,
> revision=model_args.model_revision,
> use_auth_token=True if model_args.use_auth_token else None,
Expand Down
6 changes: 1 addition & 5 deletions tests/example_diff/run_qa.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@
> from optimum.habana.training_args import GaudiTrainingArguments as TrainingArguments
40d41
< TrainingArguments,
51c52
< check_min_version("4.18.0")
---
> check_min_version("4.17.0")
227a229,235
> gaudi_config = GaudiConfig.from_pretrained(
> training_args.gaudi_config_name if training_args.gaudi_config_name else model_args.model_name_or_path,
> training_args.gaudi_config_name,
> cache_dir=model_args.cache_dir,
> revision=model_args.model_revision,
> use_auth_token=True if model_args.use_auth_token else None,
Expand Down

0 comments on commit c55850d

Please sign in to comment.