nambn0321 commited on
Commit
64d990e
·
verified ·
1 Parent(s): 28d3bc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -14,7 +14,8 @@ base_model = AutoModelForCausalLM.from_pretrained(
14
  peft_config.base_model_name_or_path,
15
  return_dict=True,
16
  torch_dtype=torch.float16,
17
- device_map="auto"
 
18
  )
19
 
20
  # Load adapter weights from your fine-tuned repo
 
14
  peft_config.base_model_name_or_path,
15
  return_dict=True,
16
  torch_dtype=torch.float16,
17
+ device_map="auto",
18
+ offload_folder="offload"
19
  )
20
 
21
  # Load adapter weights from your fine-tuned repo