Update handler.py
Browse files- 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 |
-
|
| 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"
|