WIP: batched TRT encoder (chunked) — pre-existing, split from the bf16 release#74
Closed
Cortexelus wants to merge 1 commit into
Closed
WIP: batched TRT encoder (chunked) — pre-existing, split from the bf16 release#74Cortexelus wants to merge 1 commit into
Cortexelus wants to merge 1 commit into
Conversation
Collaborator
Author
|
Pausing the batched-encoder work for now. Closing this PR but keeping the branch batched-encoder-wip with the WIP intact — reopen when we pick it back up. |
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.
WIP: batched TRT encoder (chunked) — pre-existing
This is pre-existing work-in-progress, split out of the bf16 medium DiT release so that PR stays clean. It was not authored as part of the bf16 change — it happened to live in the same working copy of
scripts/sa3_trt_core.pyand was separated out hunk-by-hunk.What it adds
An optional batched path in
encode_chunked(scripts/sa3_trt_core.py): when the encoder engine is built with a dynamic batch dimension (optimization-profile max > 1) and the chunk count is in a sweet spot (BATCHED_ENCODER_MIN_CHUNKS≤ n ≤BATCHED_ENCODER_MAX_CHUNKS), all chunks are stacked into a singleexecute_async_v3call instead of serial per-chunk calls. Adds helpers_runner_max_batch,_runner_supports_batching,_runner_audio_samples_range,_run_batched, and a reworked short-audio single-shot path.Status — draft
The shipped encoder engine is batch=1, so the batched path is inert until a batched encoder engine is built. The min/max-chunk thresholds and the BF16/FP16-mixed state-drift behavior across super-batches are still being characterized. Opening as a draft to preserve the work and keep it off the bf16 release PR.
Branched off
bbd30b5(same base as the bf16 release).