robinhad commited on
Commit
e741862
1 Parent(s): 69306c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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")