Spaces:
Runtime error
Runtime error
NickyNicky
commited on
Commit
·
d995b22
1
Parent(s):
49dc227
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ peft_model_id="hackathon-somos-nlp-2023/SalpiBloomZ_15949_input_512-1b7"
|
|
17 |
|
18 |
config = PeftConfig.from_pretrained(peft_model_id)
|
19 |
model2 = AutoModelForCausalLM.from_pretrained(config.base_model_name_or_path, return_dict=True,
|
20 |
-
|
21 |
# load_in_8bit_fp32_cpu_offload=True,
|
22 |
device_map='auto')
|
23 |
tokenizer2 = AutoTokenizer.from_pretrained(peft_model_id)
|
|
|
17 |
|
18 |
config = PeftConfig.from_pretrained(peft_model_id)
|
19 |
model2 = AutoModelForCausalLM.from_pretrained(config.base_model_name_or_path, return_dict=True,
|
20 |
+
load_in_8bit=True,
|
21 |
# load_in_8bit_fp32_cpu_offload=True,
|
22 |
device_map='auto')
|
23 |
tokenizer2 = AutoTokenizer.from_pretrained(peft_model_id)
|