Peter commited on
Commit
5d51008
·
1 Parent(s): fe0e9af

add low CPU usage to load

Browse files
Files changed (1) hide show
  1. summarize.py +1 -0
summarize.py CHANGED
@@ -15,6 +15,7 @@ def load_model_and_tokenizer(model_name):
15
 
16
  model = AutoModelForSeq2SeqLM.from_pretrained(
17
  model_name,
 
18
  use_cache=False,
19
  )
20
  tokenizer = AutoTokenizer.from_pretrained(model_name)
 
15
 
16
  model = AutoModelForSeq2SeqLM.from_pretrained(
17
  model_name,
18
+ low_cpu_mem_usage=True,
19
  use_cache=False,
20
  )
21
  tokenizer = AutoTokenizer.from_pretrained(model_name)