from local
This commit is contained in:
parent
755f3bb0f9
commit
100fda2b61
Binary file not shown.
@ -1605,10 +1605,12 @@ def run_adapter(rank, world_size, args, wb=None):
|
|||||||
lora_modules = []
|
lora_modules = []
|
||||||
for modules in model.modules():
|
for modules in model.modules():
|
||||||
if isinstance(modules, fairseq.modules.multihead_attention.MultiheadAttention):
|
if isinstance(modules, fairseq.modules.multihead_attention.MultiheadAttention):
|
||||||
|
'''
|
||||||
for module in modules.modules():
|
for module in modules.modules():
|
||||||
#print(module)
|
#print(module)
|
||||||
if isinstance(module, torch.nn.Linear):
|
if isinstance(module, torch.nn.Linear):
|
||||||
lora_modules.append(LoRAHook(module))
|
lora_modules.append(LoRAHook(module))
|
||||||
|
'''
|
||||||
|
|
||||||
adapter_names = []
|
adapter_names = []
|
||||||
adapter_param = []
|
adapter_param = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user