MLServer
MLServer copied to clipboard
Add support for Pydantic V2
MLServer only supports Pydantic V1, which is a problem for us as we would like to move to Pydantic V2 for all our services using Pydantic.
Do you think MLServer could support it?
Hey @stephen37 ,
That's a great suggestion - thanks for bringing it up.
Good news are that there's already some WIP to update to Pydantic V2. Although it's lower priority than other stuff, so it may take a while to complete.
Nice to hear that, is there a specific branch where the work is happening? I am asking as I could share it with some of our engineers if they want to help as well for that.
Any updates on this? Also waiting for this one to be released 🙏
Hi @adriangonz, any updates on this issue ? Unfortunately as much as we want to use seldon, we are currently blocked by adopting the mlserver due to this issue, would be great if this can be added soon 🙏
Hey @moefsadek ,
I'm no longer working in Seldon, but @sakoush has taken over the reins of the MLServer project - so it may be worth checking with him on what's the status of this one.
Hi @stephen37, @dolshevsk and @moefsadek -- We are currently working on the migration to Pydantic v2, and just need to finalize some dependency conflicts with other tools our runtimes depend on. We know about the speed improvements and the cool new features Pydantic v2 has to offer so we look forward to moving MLServer to it. We should have an update on this soon.
Hey @ramonpzg , Thanks for the work you're putting into this 🙏 I was on my way straight to dependency hell today as well and the pydantic-v1-requirement of MLServer was also involved in that endeavor ;) Sorry that I have to ask again, but can you already share when we might expect this? Thanks again!
Hey @ramonpzg ! Would you consider something like this in the meantime? https://github.com/SeldonIO/MLServer/pull/1651
This would make MLServer
compatible with both versions of Pydantic.
@privatedumbo: Thank you for your suggestion! It's on our (my) radar to have a look at.
I've merged in support for Pydantic v2. We don't have a timeline for the next release that will have it, but we're actively workin on it.