fix bitfit in bmtrain tutorial

This commit is contained in:
Achazwl 2022-11-20 02:23:05 +00:00
parent 35e51713b6
commit 62e31a69ff
1 changed files with 1 additions and 1 deletions

View File

@ -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":