Skip to content
Snippets Groups Projects
Commit 39f4b828 authored by Eustache Le Bihan's avatar Eustache Le Bihan
Browse files

warmup stt

parent 4f50f5bb
No related branches found
No related tags found
No related merge requests found
......@@ -418,7 +418,7 @@ class WhisperSTTHandler(BaseHandler):
start_event = torch.cuda.Event(enable_timing=True)
end_event = torch.cuda.Event(enable_timing=True)
torch.cuda.synchronize()
if self.compile_mode:
if self.compile_mode not in (None, "default"):
# generating more tokens than previously will trigger CUDA graphs capture
# one should warmup with a number of generated tokens above max tokens targeted for subsequent generation
warmup_gen_kwargs = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment