Spaces:
Sleeping
Sleeping
Anthony G
commited on
Commit
•
9ff82a3
1
Parent(s):
76c8687
slight change
Browse files
app.py
CHANGED
@@ -32,9 +32,10 @@ peft_base_model = AutoModelForCausalLM.from_pretrained(
|
|
32 |
# quantization_config=bnb_config,
|
33 |
device_map="auto",
|
34 |
trust_remote_code=True,
|
|
|
35 |
)
|
36 |
|
37 |
-
peft_model = PeftModel.from_pretrained(peft_base_model, PEFT_MODEL)
|
38 |
|
39 |
peft_tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
|
40 |
peft_tokenizer.pad_token = peft_tokenizer.eos_token
|
|
|
32 |
# quantization_config=bnb_config,
|
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
|