zhengr commited on
Commit
229d996
·
verified ·
1 Parent(s): ca1e213

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ streamer = TextStreamer(tokenizer)
30
  #model = AutoModelForCausalLM.from_pretrained(model, trust_remote_code=True, token = access_token, device_map="cuda", load_in_8bit=True, offload_folder="offload/")
31
  #model = PeftModel.from_pretrained(model, peft_model, offload_folder="offload/")
32
 
33
- model = AutoModelForCausalLM.from_pretrained(model, trust_remote_code=True, device_map="cuda", load_in_4bit=True)
34
  model = PeftModel.from_pretrained(model, peft_model)
35
 
36
  device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
 
30
  #model = AutoModelForCausalLM.from_pretrained(model, trust_remote_code=True, token = access_token, device_map="cuda", load_in_8bit=True, offload_folder="offload/")
31
  #model = PeftModel.from_pretrained(model, peft_model, offload_folder="offload/")
32
 
33
+ model = AutoModelForCausalLM.from_pretrained(model, trust_remote_code=True, device_map="cuda")
34
  model = PeftModel.from_pretrained(model, peft_model)
35
 
36
  device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')