From 28aca1896892a92a8a15fece775eaff533155e2a Mon Sep 17 00:00:00 2001 From: NanoCode012 Date: Sat, 16 Mar 2024 13:05:01 +0900 Subject: [PATCH] chore(script): remove redundant setting --- src/axolotl/train.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/axolotl/train.py b/src/axolotl/train.py index 5c4eaf3d51..d2fc752616 100644 --- a/src/axolotl/train.py +++ b/src/axolotl/train.py @@ -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}")