Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,7 @@ def load_peft_model():
|
|
10 |
torch_dtype=torch.bfloat16,
|
11 |
device_map="auto",
|
12 |
trust_remote_code=True,
|
|
|
13 |
)
|
14 |
model = PeftModel.from_pretrained(model, peft_model_id)
|
15 |
model = model.merge_and_unload()
|
|
|
10 |
torch_dtype=torch.bfloat16,
|
11 |
device_map="auto",
|
12 |
trust_remote_code=True,
|
13 |
+
offload_folder="./offload"
|
14 |
)
|
15 |
model = PeftModel.from_pretrained(model, peft_model_id)
|
16 |
model = model.merge_and_unload()
|