Skip to content
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

[lmi] add stricter payload validation on default schema for rolling-b… #2418

Merged

Conversation

siddvenk
Copy link
Contributor

@siddvenk siddvenk commented Oct 4, 2024

…atch use-cases

Description

Adding some light validation on the default schema for requests in the rolling batch case. For rolling batch, we have a published schema, but no real validation in the code.

I noticed that while we have relatively good support for input processing and formatting across the different batching mechanisms and engines, the output_formatter only takes effect on rolling_batch use-cases. We don't have good output_formatting support for dynamic batch use-cases (at least from the default codepath i've tried, we can issue a chat completions request to a model using dynamic batching, but it's not output formatted correctly)

As a follow up here, I'm going to clean up some code and unify these behaviors.

@siddvenk siddvenk requested review from zachgk and a team as code owners October 4, 2024 20:19
@sindhuvahinis
Copy link
Contributor

Nice!

@siddvenk siddvenk merged commit 6e54011 into deepjavalibrary:master Oct 4, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants