bryantaekim commited on
Commit
637eff3
β€’
1 Parent(s): f282d8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,9 +7,9 @@ config = PeftConfig.from_pretrained(peft_model_id)
7
  model = AutoModelForCausalLM.from_pretrained(
8
  config.base_model_name_or_path,
9
  return_dict=True,
10
- # load_in_8bit=True,
11
- load_in_8bit_fp32_cpu_offload=True,
12
- device_map="auto",
13
  )
14
  tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
15
 
 
7
  model = AutoModelForCausalLM.from_pretrained(
8
  config.base_model_name_or_path,
9
  return_dict=True,
10
+ load_in_8bit=True,
11
+ # load_in_8bit_fp32_cpu_offload=True,
12
+ device_map="auto"
13
  )
14
  tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
15