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