Skip to content

Add load-time configuration options to get_dsp()#281

Draft
sdatkinson wants to merge 2 commits into
mainfrom
269-defaults
Draft

Add load-time configuration options to get_dsp()#281
sdatkinson wants to merge 2 commits into
mainfrom
269-defaults

Conversation

@sdatkinson

Copy link
Copy Markdown
Owner

Closes #269.

Adds optional get_dsp() parameters for caller-provided load-time configuration:

  • expected sample rate
  • max buffer size
  • slimmable size

This lets callers load a model directly into the intended runtime state, avoiding extra post-load Reset() and SetSlimmableSize() calls. The default behavior is preserved when no options are provided.

Also updates slimmable model handling so initial slimmable selection can happen before reset/prewarm, and corrects the Reset() documentation to match current behavior.

@sdatkinson sdatkinson marked this pull request as draft June 10, 2026 01:51
@sdatkinson

Copy link
Copy Markdown
Owner Author

Current version of this I'm afraid doesn't resolve the actual issue. Continuing to massage.

@sdatkinson

sdatkinson commented Jun 11, 2026

Copy link
Copy Markdown
Owner Author

If #285 turns out nicely, then I may change this and implement it by putting the defaults in a context.

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.

Provide expected sample rate, max buffer size, and slimmable size as optional parameters to get_dsp()

1 participant