chore(script): remove redundant setting (#1411)

This commit is contained in:
NanoCode012
2024-03-16 21:10:38 +09:00
committed by GitHub
parent f083aed2c7
commit d485a08393

View File

@@ -110,9 +110,6 @@ def train(
total_num_steps,
)
if hasattr(model, "config"):
model.config.use_cache = False
# go ahead and presave, so we have the adapter config available to inspect
if peft_config:
LOG.info(f"Pre-saving adapter config to {cfg.output_dir}")