8000 allow hooking whisper model cross-attention by jnnnnn · Pull Request #2963 · huggingface/candle · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

allow hooking whisper model cross-attention #2963

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

Closed
wants to merge 1 commit into from

Conversation

jnnnnn
Copy link
@jnnnnn jnnnnn commented May 22, 2025

Candle's Whisper model is great.

To get good timestamps from the model, we need the hottest cross-attention cache values for each layer.

Not sure whether adding the pubs is good (it's definitely simpler) or whether it's better to add several layers of methods to reach through the TextDecoder → ResidualAttentionBlock → MultiHeadAttention → key,value Linear layers.

@jnnnnn jnnnnn closed this May 22, 2025
@jnnnnn jnnnnn deleted the whisper-hooked branch May 22, 2025 21:25
@jnnnnn jnnnnn restored the whisper-hooked branch May 22, 2025 21:25
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

Successfully merging this pull request may close these issues.

1 participant
0