Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add warning for unexpected model output in batched prediction (#300)
* fix: add warning unexpected output from HF model (closes #294) * add: warning if batched loop return string * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * move output check to unbatch_no_stream * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * restore format loops.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix: lint E501 Line too long * Update tests/test_batch.py Co-authored-by: Aniket Maurya <theaniketmaurya@gmail.com> * Update src/litserve/api.py Co-authored-by: Aniket Maurya <theaniketmaurya@gmail.com> * Update test to match new warning string * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Delete whitespace in warning string test_batch * Update test_batch.py * Update test_batch.py * Update warning copy * update test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix test --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Aniket Maurya <theaniketmaurya@gmail.com>
- Loading branch information