zetavg commited on
Commit
628e1bf
·
unverified ·
1 Parent(s): e57b271
Files changed (1) hide show
  1. llama_lora/models.py +2 -1
llama_lora/models.py CHANGED
@@ -158,6 +158,8 @@ def get_model(
158
  if Global.is_train_starting or Global.is_training:
159
  raise Exception("Cannot load new base model while training.")
160
 
 
 
161
  if peft_model_name == "None":
162
  peft_model_name = None
163
 
@@ -199,7 +201,6 @@ def get_model(
199
 
200
  if peft_model_name:
201
  device = get_device()
202
- torch = get_torch()
203
  PeftModel = get_peft_model_class()
204
 
205
  if device == "cuda":
 
158
  if Global.is_train_starting or Global.is_training:
159
  raise Exception("Cannot load new base model while training.")
160
 
161
+ torch = get_torch()
162
+
163
  if peft_model_name == "None":
164
  peft_model_name = None
165
 
 
201
 
202
  if peft_model_name:
203
  device = get_device()
 
204
  PeftModel = get_peft_model_class()
205
 
206
  if device == "cuda":