Update handler.py
Browse files- handler.py +1 -0
handler.py
CHANGED
@@ -18,6 +18,7 @@ class EndpointHandler:
|
|
18 |
self.model = AutoModelForCausalLM.from_pretrained(
|
19 |
model_dir, trust_remote_code=True, torch_dtype=torch.bfloat16
|
20 |
).eval()
|
|
|
21 |
self.processor = AutoProcessor.from_pretrained(
|
22 |
model_dir, trust_remote_code=True
|
23 |
)
|
|
|
18 |
self.model = AutoModelForCausalLM.from_pretrained(
|
19 |
model_dir, trust_remote_code=True, torch_dtype=torch.bfloat16
|
20 |
).eval()
|
21 |
+
self.model.to("cuda")
|
22 |
self.processor = AutoProcessor.from_pretrained(
|
23 |
model_dir, trust_remote_code=True
|
24 |
)
|