Skip to content

Fix CPU compute type selection for Whisper inference#22

Open
priyanshuthakare wants to merge 1 commit intofacebookresearch:mainfrom
priyanshuthakare:fix/cpu-whisper-compute-type
Open

Fix CPU compute type selection for Whisper inference#22
priyanshuthakare wants to merge 1 commit intofacebookresearch:mainfrom
priyanshuthakare:fix/cpu-whisper-compute-type

Conversation

@priyanshuthakare
Copy link
Copy Markdown

Summary

Set Whisper compute type dynamically based on the active device.

Motivation

float16 is unsupported on CPU and causes inference failure when CUDA is unavailable.

Changes

  • Use float16 when CUDA is available
  • Use int8 when running on CPU

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant