mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-14 23:58:11 +08:00
fix bug
Former-commit-id: 38c618b797ec219c2c45de960c9cbe50ec524c94
This commit is contained in:
parent
249ad56075
commit
764cfb506d
@ -164,6 +164,8 @@ def _create_galore_optimizer(
|
||||
|
||||
if len(finetuning_args.galore_target) == 1 and finetuning_args.galore_target[0] == "all":
|
||||
galore_targets = find_all_linear_modules(model)
|
||||
else:
|
||||
galore_targets = finetuning_args.galore_target
|
||||
|
||||
galore_params: List["torch.nn.Parameter"] = []
|
||||
for name, module in model.named_modules():
|
||||
|
Loading…
x
Reference in New Issue
Block a user