Anthony G commited on
Commit
6bf9d73
1 Parent(s): 60a302d

slight change

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -33,9 +33,15 @@ peft_base_model = AutoModelForCausalLM.from_pretrained(
33
  device_map="auto",
34
  trust_remote_code=True,
35
  offload_folder="offload/",
 
36
  )
37
 
38
- peft_model = PeftModel.from_pretrained(peft_base_model, PEFT_MODEL, offload_folder="offload/")
 
 
 
 
 
39
 
40
  peft_tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
41
  peft_tokenizer.pad_token = peft_tokenizer.eos_token
 
33
  device_map="auto",
34
  trust_remote_code=True,
35
  offload_folder="offload/",
36
+ offload_state_dict=True,
37
  )
38
 
39
+ peft_model = PeftModel.from_pretrained(
40
+ peft_base_model,
41
+ PEFT_MODEL,
42
+ offload_folder="offload/",
43
+ offload_state_dict=True,
44
+ )
45
 
46
  peft_tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
47
  peft_tokenizer.pad_token = peft_tokenizer.eos_token