Skip to content

Commit

Permalink
attach batch_size
Browse files Browse the repository at this point in the history
  • Loading branch information
aniketmaurya committed Dec 10, 2024
1 parent 7aff112 commit a822eac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/litserve/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def device(self, value):
self._device = value

def _sanitize(self, max_batch_size: int, spec: Optional[LitSpec]):
self.max_batch_size = max_batch_size
if self.stream:
self._default_unbatch = self._unbatch_stream
else:
Expand Down

0 comments on commit a822eac

Please sign in to comment.