From ab1988705b1d8b13fc85b74554ead119551f66d9 Mon Sep 17 00:00:00 2001 From: Christian Medina <37550954+cmedinasoriano@users.noreply.github.com> Date: Thu, 2 Jul 2026 09:37:37 -0400 Subject: [PATCH] fix: add use_orig_params=True for LoRA/PEFT compatibility --- train.py | 1 + 1 file changed, 1 insertion(+) diff --git a/train.py b/train.py index 13421d9..7b4e045 100644 --- a/train.py +++ b/train.py @@ -176,6 +176,7 @@ def train(config_path): "activation_checkpointing": True, "limit_all_gathers": True, "sync_module_states": True, + "use_orig_params": True, # Critical for LoRA/PEFT "mixed_precision": {"param_dtype": torch.bfloat16, "reduce_dtype": torch.float32, "buffer_dtype": torch.float32}, "auto_wrap_policy": "TRANSFORMER_BASED_WRAP", "transformer_layer_cls_to_wrap": "Qwen3_5MoeDecoderLayer",