-
Notifications
You must be signed in to change notification settings - Fork 16
CUDA pipeline performance series: vectorized VBx + threaded pdist, fbank session pool, folded segmentation export #15
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
attevon-admin
wants to merge
7
commits into
avencera:master
from
attevon-llc:perf/cuda-pipeline-series
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1f4a076
Vectorize VBx and thread the AHC pdist: 8x clustering, output-identical
davidamacey 90200c1
Parallel fbank: CPU session pool + intra-op thread override
davidamacey 7687da7
Constant-fold the exported segmentation graphs
davidamacey a82f09d
perf(ahc): bound pdist worker threads instead of one per block
davidamacey 0c4cdbb
fix(fbank): skip the CPU fbank session pool under CoreML
davidamacey 0e7a12a
style: rustfmt the pdist worker-count assertion
d8f00a8
feat(config): add RuntimeConfig::fbank_pool so embedders can size the…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: avencera/speakrs
Length of output: 6984
🌐 Web query:
onnxsim simplify function default check_n test_input_shapes input_data onnx_simplifier.py💡 Result:
In the onnxsim library, the simplify function is the primary entry point for model simplification [1][2]. The parameters check_n, test_input_shapes, and input_data are used to control the validation process of the simplified model [3][4]. 1. check_n (int, default 0): This parameter determines the number of times the simplified model is validated against the original model using random inputs [3][1]. When set to a value greater than 0, the library generates random inputs (or uses custom data if provided), runs both the original and simplified models, and compares their outputs to ensure numerical equivalence [1]. 2. test_input_shapes (dict or None, default None): When a model has dynamic input shapes, this parameter allows the user to specify fixed shapes to be used specifically for generating the random test inputs during the validation phase [3][4]. 3. input_data (dict or None, default None): This parameter allows users to provide custom input data (as a dictionary of numpy arrays) for the validation process [1]. If provided, this data is used instead of randomly generated data when check_n is greater than 0 [1]. These parameters are part of the simplify function signature, which is defined in the onnx_simplifier.py module [3][5]. Note that while the command-line interface provides similar functionality, these specific parameters are used when invoking the simplify function directly via the Python API [5][2].
Citations:
Reject simplification unless outputs match.
onnxsim.simplify(model)defaults tocheck_n=0. This validates the graph but does not compare outputs with the original model. A behavior-changing graph can therefore pass Lines 77-78 and overwrite the export at Line 79. Usecheck_n > 0with inputs for all three exports, or run an explicit original-versus-simplified inference check before saving.🤖 Prompt for AI Agents
Source: MCP tools