fix bitfit in bmtrain tutorial
This commit is contained in:
parent
35e51713b6
commit
62e31a69ff
|
@ -61,7 +61,7 @@ def get_model(args):
|
|||
if args.delta_type == "lora":
|
||||
delta_model = LoraModel(backbone_model=model, modified_modules=['project_q', 'project_k'], backend='bmt')
|
||||
elif args.delta_type == "bitfit":
|
||||
delta_model = BitFitModel(backbone_model=model, modified_modules=['self_att', 'ffn', 'layernorm'], backend='bmt') #TODO: fix bug
|
||||
delta_model = BitFitModel(backbone_model=model, modified_modules=['self_att', 'ffn', 'layernorm'], backend='bmt')
|
||||
elif args.delta_type == "adapter":
|
||||
delta_model = AdapterModel(backbone_model=model, modified_modules=['self_att', 'ffn'], backend='bmt')
|
||||
elif args.delta_type == "compacter":
|
||||
|
|
Loading…
Reference in New Issue