poltextlab commited on
Commit
ac10520
1 Parent(s): 7658607
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -23,7 +23,7 @@ tokenizers = ["xlm-roberta-large"]
23
 
24
  def download_hf_models():
25
  for model_id in models:
26
- AutoModelForSequenceClassification.from_pretrained(model_id, low_cpu_mem_usage=True, device_map="auto",
27
  token=HF_TOKEN)
28
  for tokenizer_id in tokenizers:
29
  AutoTokenizer.from_pretrained(tokenizer_id)
 
23
 
24
  def download_hf_models():
25
  for model_id in models:
26
+ AutoModelForSequenceClassification.from_pretrained(model_id, low_cpu_mem_usage=True, device_map="auto", offload_folder="offload",
27
  token=HF_TOKEN)
28
  for tokenizer_id in tokenizers:
29
  AutoTokenizer.from_pretrained(tokenizer_id)