rrevo commited on
Commit
46d52cc
·
1 Parent(s): 62b3774
Files changed (1) hide show
  1. 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
  )