Skip to content

Spec for streaming inference#930

Draft
drewoldag wants to merge 1 commit into
mainfrom
awo/streaming-inference-spec
Draft

Spec for streaming inference#930
drewoldag wants to merge 1 commit into
mainfrom
awo/streaming-inference-spec

Conversation

@drewoldag
Copy link
Copy Markdown
Collaborator

This PR puts together a spec file for "streaming inference". The gist is that we could load the model into memory once and process batches of data as they arrive with the expectation that there are potentially large gaps between the batches arriving.

Two additional things worth calling out that aren't mentioned in the spec:

  1. It probably makes sense for there to be a timeout of some kind that would release the model from memory if a batch hasn't arrived in the last N seconds
  2. We could probably turn infer into a special case of infer_streaming such that infer simply calls infer_streaming under the hood and provides all the data to it, like it normally would.

@drewoldag drewoldag self-assigned this May 21, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.94%. Comparing base (8e9231f) to head (d0fdac6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #930   +/-   ##
=======================================
  Coverage   62.94%   62.94%           
=======================================
  Files          71       71           
  Lines        7357     7357           
=======================================
  Hits         4631     4631           
  Misses       2726     2726           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@drewoldag drewoldag force-pushed the awo/streaming-inference-spec branch from d203164 to d0fdac6 Compare May 22, 2026 04:01
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.

1 participant