Spaces:
Runtime error
Runtime error
Commit
·
9003005
1
Parent(s):
1609ef2
Update app.py
Browse files
app.py
CHANGED
@@ -25,8 +25,8 @@ model = LlamaForCausalLM.from_pretrained(
|
|
25 |
"decapoda-research/llama-7b-hf",
|
26 |
# load_in_8bit=True,
|
27 |
# torch_dtype=torch.float16,
|
28 |
-
device_map="auto",
|
29 |
-
|
30 |
max_memory={"cpu":"15GiB"},
|
31 |
quantization_config=quantization_config
|
32 |
)
|
|
|
25 |
"decapoda-research/llama-7b-hf",
|
26 |
# load_in_8bit=True,
|
27 |
# torch_dtype=torch.float16,
|
28 |
+
#device_map="auto",
|
29 |
+
device_map={"":"cpu"},
|
30 |
max_memory={"cpu":"15GiB"},
|
31 |
quantization_config=quantization_config
|
32 |
)
|