fix(runtime): offload async inference work#250
Open
rylinjames wants to merge 1 commit into
Open
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
9513555 to
8650bc5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
predict_async()calls in the default executor instead of blocking the event loop_predict_batch_sync()from the batch worker through the default executor as wellrun_with_iobinding()when enabledsession.run()osimport used by the curate uploader pathTests
/Users/romirjain/Desktop/building\ projects/fastcrest/tether/.venv/bin/ruff check src/tether/runtime/server.py tests/test_server.pyPYTHONPATH=$PWD/src /Users/romirjain/Desktop/building\ projects/fastcrest/tether/.venv/bin/python -m py_compile src/tether/runtime/server.py tests/test_server.pyPYTHONPATH=$PWD/src /Users/romirjain/Desktop/building\ projects/fastcrest/tether/.venv/bin/python -m pytest tests/test_server.py::TestTetherServerWithMockORT::test_predict_async_offloads_non_batched_predict tests/test_server.py::TestTetherServerWithMockORT::test_batch_worker_offloads_sync_batch_predict tests/test_server.py::TestTetherServerWithMockORT::test_denoise_uses_iobinding_when_enabled tests/test_serve_e2e.py -p no:cacheproviderNote:
tests/test_chunk_budget_integration.pycould not run in this local venv becauseonnxruntimeis not installed.🤖 Generated with Claude Code