UNIPELT, UNIPELT (AP) and UNIPELT (APL) #696
-
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey, the UniPELT AP and APL variants in the paper compose different types of adapters. Specifically: UniPELT APL combines bottleneck adapters (A), prefix tuning (P) and LoRA (L). This is the default version in Adapters if you use config = UniPELTConfig()
model.add_adapter("unipelt_apl", config=config) To make this clearer, we can define the same config via config = ConfigUnion(
PrefixTuningConfig(prefix_length=10, use_gating=True),
SeqBnConfig(reduction_factor=16, use_gating=True),
LoRAConfig(r=8, alpha=2, use_gating=True)
)
model.add_adapter("unipelt_apl", config=config) This is identical to using UniPELT AP combines bottleneck adapters (A), prefix tuning (P). We can also define this using config = ConfigUnion(
PrefixTuningConfig(prefix_length=10, use_gating=True),
SeqBnConfig(reduction_factor=16, use_gating=True)
)
model.add_adapter("unipelt_ap", config=config) Hope this helps! |
Beta Was this translation helpful? Give feedback.
Hey, the UniPELT AP and APL variants in the paper compose different types of adapters. Specifically:
UniPELT APL combines bottleneck adapters (A), prefix tuning (P) and LoRA (L). This is the default version in Adapters if you use
UniPELTConfig()
:To make this clearer, we can define the same config via
ConfigUnion()
:This is identical to using
UniPELTConfig()
UniPELT AP combines bottleneck …