Spaces:
Runtime error
Runtime error
NickyNicky
commited on
Commit
·
49dc227
1
Parent(s):
de071ee
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ import gc
|
|
16 |
peft_model_id="hackathon-somos-nlp-2023/SalpiBloomZ_15949_input_512-1b7"
|
17 |
|
18 |
config = PeftConfig.from_pretrained(peft_model_id)
|
19 |
-
model2 =
|
20 |
# load_in_8bit=True,
|
21 |
# load_in_8bit_fp32_cpu_offload=True,
|
22 |
device_map='auto')
|
|
|
16 |
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 |
# load_in_8bit=True,
|
21 |
# load_in_8bit_fp32_cpu_offload=True,
|
22 |
device_map='auto')
|