Spaces:
Build error
Build error
dtype
Browse files- server/src/main.py +1 -1
server/src/main.py
CHANGED
@@ -20,7 +20,7 @@ def read_root():
|
|
20 |
TRANSCRIBE_PIPELINE = pipeline(
|
21 |
"automatic-speech-recognition",
|
22 |
model="openai/whisper-large-v3",
|
23 |
-
torch_dtype=torch.float16,
|
24 |
device=DEVICE,
|
25 |
model_kwargs={"attn_implementation": ATTN_IMPLEMENTATION},
|
26 |
)
|
|
|
20 |
TRANSCRIBE_PIPELINE = pipeline(
|
21 |
"automatic-speech-recognition",
|
22 |
model="openai/whisper-large-v3",
|
23 |
+
torch_dtype=torch.float16 if ATTN_IMPLEMENTATION == "sdpa" else torch.bfloat16,
|
24 |
device=DEVICE,
|
25 |
model_kwargs={"attn_implementation": ATTN_IMPLEMENTATION},
|
26 |
)
|