Skip to content

Conversation

@tomerm-iguazio
Copy link
Contributor

@tomerm-iguazio tomerm-iguazio commented Dec 14, 2025

📝 Description

Add support for input as a batch in ModelRunnerErrorRaiser and add format_batch client 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

  • I updated the documentation (if applicable)
  • I have tested the changes in this PR
  • I confirmed whether my changes are covered by system tests
    • If yes, I ran all relevant system tests and ensured they passed before submitting this PR
    • I updated existing system tests and/or added new ones if needed to cover my changes
  • If I introduced a deprecation:

🧪 Testing

Add unit tests + system tests.


🔗 References

  • Ticket link: ML-11680
  • Design docs links:
  • External links:

🚨 Breaking Changes?

  • Yes (explain below)
  • No

🔍️ Additional Notes

Copy link
Contributor

@royischoss royischoss left a 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]
Copy link
Contributor

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

Copy link
Contributor Author

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
Copy link
Contributor

@royischoss royischoss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@davesh0812 davesh0812 merged commit 59b4b1b into mlrun:development Dec 21, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants