-
Notifications
You must be signed in to change notification settings - Fork 294
[Serving] Add support for input as a Batch (without model monitoring) #9053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Serving] Add support for input as a Batch (without model monitoring) #9053
Conversation
royischoss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey looks nice please add a test that checks the error raiser functionality, if needed add a commit in storey to support the error you want to raise on a batch, added another small comment on the model you created
| def predict(self, body, **kwargs): | ||
| x = pd.DataFrame(body) | ||
| predictions = self.model.predict(x).tolist() | ||
| return [round(v, 6) for v in predictions] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a model that uses format_batch and show functionality
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added, tnx! (also for the system test).
# Conflicts: # tests/serving/test_async_flow.py
royischoss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
📝 Description
Add support for input as a batch in ModelRunnerErrorRaiser and add
format_batchclient function.Update body parameter type.
Important note:
Batch support in model monitoring will be added in a follow-up PR and is not supported yet.
🛠️ Changes Made
✅ Checklist
🧪 Testing
Add unit tests + system tests.
🔗 References
🚨 Breaking Changes?
🔍️ Additional Notes