Update the median_kernel() function to use the Triton v3 API#22
Closed
tokyovigilante wants to merge 1 commit intoufal:mainfrom
Closed
Update the median_kernel() function to use the Triton v3 API#22tokyovigilante wants to merge 1 commit intoufal:mainfrom
tokyovigilante wants to merge 1 commit intoufal:mainfrom
Conversation
Apparently kernel.src cannot be directly assigned in v3, so store src in a local copy and modify that one before applying the updates. Tested on simulated streaming audio locally. see openai/whisper#2597
Member
|
Hi, thanks. |
krystophny
added a commit
to krystophny/SimulStreaming
that referenced
this pull request
Oct 27, 2025
The previous commit added Triton 3.x support but broke backward compatibility with Triton 2.x by requiring triton>=3.0.0. This commit restores compatibility with both versions by following the upstream OpenAI Whisper approach: - Use hasattr() to detect which API is available - Call _unsafe_update_src() + hash reset for Triton 3.0-3.1 - Fall back to kernel.src for Triton 2.x - Restore triton>=2.0.0 requirement (supports both 2.x and 3.x) This matches the implementation in openai/whisper and addresses the maintainer feedback to follow upstream more closely. Builds on: ufal#22 See: openai/whisper#2597
|
@Gldkslfmsd #23 is the fix to #30 . Please merge it. |
Member
|
going to use #PR23 |
Gldkslfmsd
pushed a commit
that referenced
this pull request
Jan 28, 2026
The previous commit added Triton 3.x support but broke backward compatibility with Triton 2.x by requiring triton>=3.0.0. This commit restores compatibility with both versions by following the upstream OpenAI Whisper approach: - Use hasattr() to detect which API is available - Call _unsafe_update_src() + hash reset for Triton 3.0-3.1 - Fall back to kernel.src for Triton 2.x - Restore triton>=2.0.0 requirement (supports both 2.x and 3.x) This matches the implementation in openai/whisper and addresses the maintainer feedback to follow upstream more closely. Builds on: #22 See: openai/whisper#2597
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Apparently kernel.src cannot be directly assigned in v3, so store src in a local copy and modify that one before applying the updates. This allows use with Python >3.11 and Debian trixie which does not package triton v2.
Tested on simulated streaming audio locally.
see openai/whisper#2597