Upload handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -32,12 +32,12 @@ class EndpointHandler():
|
|
32 |
|
33 |
self.model = AutoModel.from_pretrained(
|
34 |
model_dir,
|
35 |
-
quantization_config=bnb_config,
|
36 |
device_map="auto",
|
37 |
trust_remote_code=True,
|
38 |
attn_implementation="eager",
|
39 |
)
|
40 |
-
self.model = PeftModel.from_pretrained(self.model, model_dir, subfolder='lora')
|
41 |
self.model.eval()
|
42 |
|
43 |
|
|
|
32 |
|
33 |
self.model = AutoModel.from_pretrained(
|
34 |
model_dir,
|
35 |
+
#quantization_config=bnb_config,
|
36 |
device_map="auto",
|
37 |
trust_remote_code=True,
|
38 |
attn_implementation="eager",
|
39 |
)
|
40 |
+
#self.model = PeftModel.from_pretrained(self.model, model_dir, subfolder='lora')
|
41 |
self.model.eval()
|
42 |
|
43 |
|