Tidzo commited on
Commit
43e5ff2
·
1 Parent(s): b0afad8

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -15,7 +15,7 @@ class EndpointHandler():
15
  config = PeftConfig.from_pretrained(path)
16
 
17
  model = AutoModelForCausalLM.from_pretrained(
18
- model_name,
19
  load_in_4bit=True,
20
  trust_remote_code=True,
21
  device_map="auto"
 
15
  config = PeftConfig.from_pretrained(path)
16
 
17
  model = AutoModelForCausalLM.from_pretrained(
18
+ config.base_model_name_or_path,
19
  load_in_4bit=True,
20
  trust_remote_code=True,
21
  device_map="auto"