Spaces:
Sleeping
Sleeping
Commit
·
7e9dee7
1
Parent(s):
ccba587
fix: torch not defined
Browse files- prediction.py +1 -1
prediction.py
CHANGED
@@ -27,7 +27,7 @@ from tqdm import tqdm
|
|
27 |
pipeline = hf_pipeline(
|
28 |
"text-generation",
|
29 |
model="meta-llama/Meta-Llama-3.1-8B-Instruct",
|
30 |
-
model_kwargs={"torch_dtype":
|
31 |
)
|
32 |
pipeline.to('cuda')
|
33 |
|
|
|
27 |
pipeline = hf_pipeline(
|
28 |
"text-generation",
|
29 |
model="meta-llama/Meta-Llama-3.1-8B-Instruct",
|
30 |
+
model_kwargs={"torch_dtype": 'bfloat16'},
|
31 |
)
|
32 |
pipeline.to('cuda')
|
33 |
|