Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,10 +12,12 @@ base_model = AutoModelForCausalLM.from_pretrained(
|
|
12 |
token=access_token,
|
13 |
trust_remote_code=True,
|
14 |
device_map="auto",
|
|
|
15 |
)
|
16 |
model = PeftModel.from_pretrained(
|
17 |
base_model,
|
18 |
-
'FinGPT/fingpt-forecaster_dow30_llama2-7b_lora'
|
|
|
19 |
)
|
20 |
model = model.eval()
|
21 |
|
|
|
12 |
token=access_token,
|
13 |
trust_remote_code=True,
|
14 |
device_map="auto",
|
15 |
+
offload_folder="offload/"
|
16 |
)
|
17 |
model = PeftModel.from_pretrained(
|
18 |
base_model,
|
19 |
+
'FinGPT/fingpt-forecaster_dow30_llama2-7b_lora',
|
20 |
+
offload_folder="offload/"
|
21 |
)
|
22 |
model = model.eval()
|
23 |
|