From ae871ca9234be3f6cb6966d998e51a7cb672f912 Mon Sep 17 00:00:00 2001 From: Andy Lo Date: Tue, 10 Feb 2026 18:18:30 +0000 Subject: [PATCH] Minor cleanup for Voxtral (#34247) Signed-off-by: Andy Lo --- vllm/model_executor/models/voxtral.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vllm/model_executor/models/voxtral.py b/vllm/model_executor/models/voxtral.py index a33454005d..581664aec4 100644 --- a/vllm/model_executor/models/voxtral.py +++ b/vllm/model_executor/models/voxtral.py @@ -792,7 +792,9 @@ class VoxtralEncoderModel(nn.Module): audio_waveforms: torch.Tensor, ) -> torch.Tensor: input_dtype = audio_waveforms.dtype - window = torch.hann_window(self.config.window_size).to(audio_waveforms.device) + window = torch.hann_window( + self.config.window_size, device=audio_waveforms.device + ) stft = torch.stft( audio_waveforms, self.config.window_size,