Skip to content

Joint training with classification and masked language modeling objectives #37

Answered by stefanik12
saroyehun asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ast123 ,

I've noticed that before we did not have any code demonstration of actually using the SequenceClassification objective, so I've added a test your case within the end2end_usecases_test.

In addition, to perform stopping after N (say, 5) evaluations on a first objective, pass in the following parameters to AdaptationArguments:

from adaptor.utils import AdaptationArguments, StoppingStrategy

args = AdaptationArguments(stopping_strategy=StoppingStrategy.FIRST_OBJECTIVE_CONVERGED,
                           stopping_patience=5)

Currently, Adaptor does not support stopping according to a specific objective, as we did not have this functional request before. This could be implemented…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stefanik12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #31 on May 29, 2023 13:08.