Skip to content

BART MLM adapter #638

Closed Answered by san-deep-reddy
san-deep-reddy asked this question in Q&A
Discussion options

You must be logged in to vote

Replacing setup_adapter_training with the below code did the job

model.add_adapter("adapter1", config="seq_bn")
model.add_adapter("adapter2", config="seq_bn")
model.add_adapter("adapter3", config="seq_bn")
adapter_setup = Fuse("adapter1", "adapter2", "adapter3")
model.add_adapter_fusion(adapter_setup)
model.train_adapter_fusion([adapter_setup, 'adapter1']) #Activate fusion layer and just 'adapter 1'

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@san-deep-reddy
Comment options

Answer selected by san-deep-reddy
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