oridror commited on
Commit
207c7e7
·
verified ·
1 Parent(s): a26239b

Upload train_lora.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. train_lora.py +2 -2
train_lora.py CHANGED
@@ -113,8 +113,8 @@ def main():
113
 
114
  model = AutoModelForCausalLM.from_pretrained(MODEL_NAME, **model_kwargs)
115
 
116
- if USE_4BIT and "deepseek" not in MODEL_NAME.lower():
117
- model = prepare_model_for_kbit_training(model)
118
 
119
  # ---- LoRA config ----
120
  target_modules = get_target_modules(MODEL_NAME)
 
113
 
114
  model = AutoModelForCausalLM.from_pretrained(MODEL_NAME, **model_kwargs)
115
 
116
+ # prepare_model_for_kbit_training removed peft 0.18+ uses set_submodule
117
+ # which requires PyTorch 2.5+, but RunPod image has 2.4. SFTTrainer handles it.
118
 
119
  # ---- LoRA config ----
120
  target_modules = get_target_modules(MODEL_NAME)