Marlon Wiprud commited on
Commit ·
a894d5f
1
Parent(s): 41902fa
chore: back to bf16
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -55,7 +55,7 @@ class EndpointHandler:
|
|
| 55 |
with init_empty_weights():
|
| 56 |
self.model = AutoModelForCausalLM.from_pretrained(
|
| 57 |
"THUDM/cogvlm-chat-hf",
|
| 58 |
-
torch_dtype=torch.
|
| 59 |
low_cpu_mem_usage=True,
|
| 60 |
trust_remote_code=True,
|
| 61 |
)
|
|
|
|
| 55 |
with init_empty_weights():
|
| 56 |
self.model = AutoModelForCausalLM.from_pretrained(
|
| 57 |
"THUDM/cogvlm-chat-hf",
|
| 58 |
+
torch_dtype=torch.bfloat16,
|
| 59 |
low_cpu_mem_usage=True,
|
| 60 |
trust_remote_code=True,
|
| 61 |
)
|