Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor example scripts to leverage config strings #486

Merged
merged 8 commits into from
Feb 15, 2023

Conversation

calpt
Copy link
Member

@calpt calpt commented Jan 26, 2023

Depends on #465.

This PR adds the following changes:

  • Outsource adapter training setup into setup_adapter_training() method
  • Merge MultiLingAdapterArguments into AdapterArguments

Breaking changes:

  • Removal of MultiLingAdapterArguments

@adapter-hub-bert
Copy link
Member

This PR/issue depends on:


Automatically provided by Dependent Issues (🤖).

@calpt calpt marked this pull request as ready for review February 2, 2023 15:01
Copy link
Member

@lenglaender lenglaender left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When running examples/pytorch/dependency-parsing/run_udp.py I get this error:

Traceback (most recent call last):
  File "/home/leon/UKP/AdapterHub/adapter-transformers/examples/pytorch/dependency-parsing/run_udp.py", line 352, in <module>
    main()
  File "/home/leon/UKP/AdapterHub/adapter-transformers/examples/pytorch/dependency-parsing/run_udp.py", line 173, in main
    language = adapter_args.language
AttributeError: 'AdapterArguments' object has no attribute 'language'

Also regarding examples/pytorch/dependency-parsing/run_udp.py: Is there a reason why you did not replace the code under # Setup adapters blocks with the method setup_adapter_training(..) as in the other files?

adapter_docs/training.md Outdated Show resolved Hide resolved
calpt and others added 2 commits February 9, 2023 15:53
Co-authored-by: Leon Engländer <77012866+lenglaender@users.noreply.github.com>
@calpt
Copy link
Member Author

calpt commented Feb 9, 2023

Thanks, updated the udp script

@calpt calpt merged commit 95b0913 into adapter-hub:master Feb 15, 2023
@calpt calpt deleted the dev/examples-refactor branch February 15, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants