Skip to content

Commit

Permalink
Add XLM-Roberta to list of models supporting Parallel (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
calpt authored Mar 19, 2022
1 parent 9a6bf17 commit 104f9f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/adapters/composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __init__(self, *split_adapters: List[Union[AdapterCompositionBlock, str]], b
# Some composition blocks might not be supported by all models.
# Add a whitelist of models for those here.
SUPPORTED_MODELS = {
Parallel: ["bert", "roberta", "distilbert", "bart", "mbart", "gpt2", "t5"],
Parallel: ["bert", "roberta", "distilbert", "bart", "mbart", "gpt2", "t5", "xlm-roberta"],
}


Expand Down

0 comments on commit 104f9f8

Please sign in to comment.