Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to use --fp16 and --use_dml_attn simultaneously in Whisper pytorch-directml #598

Closed
XciciciX opened this issue Jun 24, 2024 · 1 comment

Comments

@XciciciX
Copy link

I tried to run Whisper with torch-directml. It can run with either --fp16 flag or --use_dml_attn flag. However, I want to run with both flags. It failed with the following information:
image

@joshjkim
Copy link

@XciciciX Thank you for reporting this issue. Could you please try with the latest Whisper sample? Multilingual models preserve past_key_value tensors when detecting language which causes the parameter to be incorrect when running transcription inference on audio. The sample has been updated to remove DML attention in AudioEncoder as there's no significant perf gains in the encoder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants