mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2026-01-02 12:10:34 +08:00
@@ -158,8 +158,6 @@ def _create_galore_optimizer(
|
|||||||
finetuning_args: "FinetuningArguments",
|
finetuning_args: "FinetuningArguments",
|
||||||
max_steps: int,
|
max_steps: int,
|
||||||
) -> "torch.optim.Optimizer":
|
) -> "torch.optim.Optimizer":
|
||||||
require_version("galore_torch", "To fix: pip install galore-torch")
|
|
||||||
|
|
||||||
if len(finetuning_args.galore_target) == 1 and finetuning_args.galore_target[0] == "all":
|
if len(finetuning_args.galore_target) == 1 and finetuning_args.galore_target[0] == "all":
|
||||||
galore_targets = find_all_linear_modules(model)
|
galore_targets = find_all_linear_modules(model)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user