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