Skip to content

Add Parakeet TDT 0.6B V3 batching example#580

Merged
jiegong-fde merged 3 commits into
mainfrom
jieg/parakeet_batching_0626
Jun 30, 2026
Merged

Add Parakeet TDT 0.6B V3 batching example#580
jiegong-fde merged 3 commits into
mainfrom
jieg/parakeet_batching_0626

Conversation

@jiegong-fde

@jiegong-fde jiegong-fde commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds nvidia/parakeet-tdt-0_6b-v3-batching — a Truss for NVIDIA parakeet-tdt-0.6b-v3 English ASR with server-side dynamic batching for high-throughput HTTP transcription. It's the batching counterpart to the existing nvidia/parakeet-tdt-0_6b-v2 (single-request) example.

Details

  • NeMo model run directly (auto dtype: fp16 on Turing/T4, bf16 on Ampere+).
  • Pipelined batching: a collector thread drains the request queue (adaptive collect window) + runs the mel preprocessor while an inference thread runs encoder + TDT decoder (CUDA graphs) on the previous batch.
  • Tunable via env vars: MAX_BATCH_SIZE, BATCH_COLLECT_MS, CUDA_GRAPHS, TORCH_COMPILE.
  • Weights pulled from HF into a Baseten volume cache (model_cache); model is public (no token). Default accelerator L4.
  • Accepts audio_url or audio_base64 (+ optional timestamps).

Test plan

  • truss push deploys on L4 and serves {"transcript": ...} for the example audio_url.
  • Concurrent requests batch on the GPU (batch size grows under load).

Made with Cursor

NeMo-based ASR truss for nvidia/parakeet-tdt-0.6b-v3 with server-side dynamic
batching (collector + inference pipeline, adaptive collect window, CUDA graphs)
for high-throughput HTTP transcription. Batching counterpart to the existing
nvidia/parakeet-tdt-0_6b-v2 example.

Co-authored-by: Cursor <cursoragent@cursor.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@jiegong-fde jiegong-fde changed the title Add Parakeet TDT 0.6B V3 dynamic-batching example Add Parakeet TDT 0.6B V3 batching example Jun 30, 2026
jiegong-fde and others added 2 commits June 30, 2026 12:07
Co-authored-by: Cursor <cursoragent@cursor.com>
Unblocks the `pre-commit run --all-files` lint job, which currently fails on
every PR because these files (added in #577) have one ruff F-class error and
are not ruff-formatted. Fixes are the safe auto-fixes pre-commit itself applies.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jiegong-fde jiegong-fde merged commit 73da075 into main Jun 30, 2026
2 of 3 checks passed
@jiegong-fde jiegong-fde deleted the jieg/parakeet_batching_0626 branch June 30, 2026 19:22
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.

3 participants