Calvin commited on
Commit
98fb501
·
1 Parent(s): 2f4da93

fixing offload

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ model = AutoModelForCausalLM.from_pretrained(
39
  config.base_model_name_or_path,
40
  return_dict=True,
41
  device_map="auto",
42
- trust_remote_code=True, load_in_8bit=False, offload="offload"
43
  )
44
  tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
45
  tokenizer.pad_token = tokenizer.eos_token
 
39
  config.base_model_name_or_path,
40
  return_dict=True,
41
  device_map="auto",
42
+ trust_remote_code=True, load_in_8bit=False, offload_folder="offload"
43
  )
44
  tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
45
  tokenizer.pad_token = tokenizer.eos_token