Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
hSterz committed Nov 12, 2023
1 parent fb74541 commit dfb858f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions examples/pytorch/dependency-parsing/run_udp.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,7 @@ def main():
**adapter_load_kwargs,
)
if adapter_args.load_lang_adapter:
lang_adapter_config = AdapterConfig.load(
adapter_args.lang_adapter_config, **adapter_config_kwargs
)
lang_adapter_config = AdapterConfig.load(adapter_args.lang_adapter_config, **adapter_config_kwargs)
lang_adapter_name = model.load_adapter(
os.path.join(training_args.output_dir, "best_model", lang_adapter_name)
if training_args.do_train
Expand Down
4 changes: 1 addition & 3 deletions tests_adapters/test_adapter_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ def test_config_load(self):
# TODO still uses the old config names as only these are available on the Hub
for config_name in ["pfeiffer", "houlsby"]:
with self.subTest(config_name=config_name):
config = AdapterConfig.load(
config_name, download_kwargs=download_kwargs, non_linearity="leakyrelu"
)
config = AdapterConfig.load(config_name, download_kwargs=download_kwargs, non_linearity="leakyrelu")
self.assertTrue(isinstance(config, AdapterConfig))
self.assertEqual(config.non_linearity, "leakyrelu")

Expand Down

0 comments on commit dfb858f

Please sign in to comment.