Skip to content

perf: share one Silero ONNX session across VAD analyzers - #5666

Open
asaraog wants to merge 1 commit into
pipecat-ai:mainfrom
asaraog:perf/share-silero-onnx-session
Open

perf: share one Silero ONNX session across VAD analyzers#5666
asaraog wants to merge 1 commit into
pipecat-ai:mainfrom
asaraog:perf/share-silero-onnx-session

Conversation

@asaraog

@asaraog asaraog commented Sep 8, 2026

Copy link
Copy Markdown

Fixes #2050. One shared ONNX session per model file across SileroVADAnalyzer instances; per-analyzer state untouched.

Every SileroVADAnalyzer built its own InferenceSession, so memory grew with
concurrent pipelines. Sessions are read-only and thread-safe, so cache one
per model file. Per-analyzer VAD state is untouched.

Fixes pipecat-ai#2050
@asaraog
asaraog force-pushed the perf/share-silero-onnx-session branch from 8153f28 to e810c02 Compare September 9, 2026 00:59
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.

Make silero onnxruntime session shared

1 participant