Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,9 @@ if is_available():
|
|
9 |
device_map="auto",
|
10 |
)
|
11 |
else:
|
12 |
-
options = {
|
|
|
|
|
13 |
|
14 |
tokenizer = LlamaTokenizer.from_pretrained("openlm-research/open_llama_7b")
|
15 |
model = LlamaForCausalLM.from_pretrained(
|
|
|
9 |
device_map="auto",
|
10 |
)
|
11 |
else:
|
12 |
+
options = {
|
13 |
+
"low_cpu_mem_usage": True
|
14 |
+
}
|
15 |
|
16 |
tokenizer = LlamaTokenizer.from_pretrained("openlm-research/open_llama_7b")
|
17 |
model = LlamaForCausalLM.from_pretrained(
|