Skip to content

Expand Parakeet buckets - #818

Merged
jakmro merged 2 commits into
mainfrom
parakeet-fibonacci-buckets
Sep 25, 2026
Merged

jakmro merged 2 commits into
mainfrom
parakeet-fibonacci-buckets

Conversation

@jakmro

@jakmro jakmro commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

This pull request expands the supported audio bucket sizes and capture window for the Parakeet TDT model and ensures that the new defaults are consistently used throughout the codebase and tests. It also adds support for the nvidia/parakeet-tdt-0.6b-v2 model in both the processor and model profile registries.

Audio bucket and capture window updates:

  • The default audio bucket sizes in _DEFAULT_AUDIO_BUCKET_SECONDS are expanded to include larger values, and a new constant _AUDIO_CAPTURE_SECONDS is introduced and set to 420 seconds. The function audio_capture_frames() is added to compute the corresponding frame count. (python/cactus/transpile/audio_preprocess.py) [1] [2]
  • All code and tests that previously assumed a 3000-frame capture window are updated to use the new audio_capture_frames() value (42000 frames), and tests are updated to expect the expanded bucket list. (python/cactus/transpile/tdt_runtime.py, python/cactus/convert/tests/test_audio_buckets.py, python/cactus/convert/tests/test_parakeet_capture.py) [1] [2] [3] [4]

Model and processor registry updates:

  • The nvidia/parakeet-tdt-0.6b-v2 model is now supported in both the processor registry and the model profile registry, ensuring it uses the correct processing and profile logic. (python/cactus/transpiler/Converter/input_processor.py, python/cactus/transpiler/ModelProfiles/profiles.py) [1] [2]

Copilot AI lite review requested due to automatic review settings September 25, 2026 00:11
…ndling

Signed-off-by: jakmro <kubamroz124@gmail.com>
Signed-off-by: jakmro <kubamroz124@gmail.com>
@jakmro
jakmro force-pushed the parakeet-fibonacci-buckets branch from d801778 to 98bcc1f Compare September 25, 2026 00:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The expanded capture bucket may cause prohibitive memory use or OOM during conversion.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity · 1 Low severity

Open (2)
What changed in this PR

Expands Parakeet TDT audio bucket and capture support and registers the v2 model.

Changes:

  • Adds buckets through 377 seconds and a 420-second capture helper.
  • Updates runtime generation and related tests for 42,000 frames.
  • Registers nvidia/parakeet-tdt-0.6b-v2.
File Description
python/​cactus/​transpiler/​ModelProfiles/​profiles.py Registers the v2 model profile.
python/​cactus/​transpiler/​Converter/​input_processor.py Registers the v2 processor.
python/​cactus/​transpile/​tdt_runtime.py Uses the expanded capture capacity.
python/​cactus/​transpile/​audio_preprocess.py Defines expanded buckets and capture sizing.
python/​cactus/​convert/​tests/​test_parakeet_capture.py Updates capture expectations.
python/​cactus/​convert/​tests/​test_audio_buckets.py Tests expanded buckets and capture behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +24 to +25
_DEFAULT_AUDIO_BUCKET_SECONDS = (1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 300, 377)
_AUDIO_CAPTURE_SECONDS = 420
features = named_tensors["input_features"]
input_features = torch.randn(
(int(features.shape[0]), 3000, int(features.shape[2])),
(int(features.shape[0]), audio_capture_frames(), int(features.shape[2])),
@jakmro
jakmro merged commit dbacc47 into main Sep 25, 2026
7 checks passed
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.

2 participants