Spaces:
Runtime error
Runtime error
Med Tiouti
commited on
Commit
·
bccedad
1
Parent(s):
69a46d6
Offloader fixed again
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def get_model(model_name):
|
|
29 |
model = AutoModelForCausalLM.from_pretrained(
|
30 |
model_repo,
|
31 |
device_map='auto',
|
32 |
-
|
33 |
torch_dtype=torch.float16,
|
34 |
low_cpu_mem_usage=True,
|
35 |
trust_remote_code=True
|
|
|
29 |
model = AutoModelForCausalLM.from_pretrained(
|
30 |
model_repo,
|
31 |
device_map='auto',
|
32 |
+
offload_folder="offload",
|
33 |
torch_dtype=torch.float16,
|
34 |
low_cpu_mem_usage=True,
|
35 |
trust_remote_code=True
|