Spaces:
Sleeping
Sleeping
Update helper.py
Browse files
helper.py
CHANGED
@@ -39,7 +39,7 @@ def get_fn(model_path: str, **model_kwargs):
|
|
39 |
# Fallback to default attention implementation
|
40 |
model = AutoModelForCausalLM.from_pretrained(
|
41 |
model_path,
|
42 |
-
torch_dtype= torch.bfloat16
|
43 |
device_map="auto",
|
44 |
quantization_config=quantization_config,
|
45 |
)
|
|
|
39 |
# Fallback to default attention implementation
|
40 |
model = AutoModelForCausalLM.from_pretrained(
|
41 |
model_path,
|
42 |
+
torch_dtype= torch.bfloat16,
|
43 |
device_map="auto",
|
44 |
quantization_config=quantization_config,
|
45 |
)
|