Skip to content

Has anyone tried to deploy ludwig serve to a Google Vertex model endpoint? #1728

Discussion options

You must be logged in to vote

Hi, the default ludwig serve endpoint expects inputs to be provided as form fields. This is not a supported interface for Vertex AI prediction requests which requires Content-Type: application/json.

We are working on updating the serve capability in ludwig to be compatible with the KServe v2 Prediction Portocol which is a support format with Vertex AI and will remove the need to build a custom container to host ludwig models with Vertex AI.

In the meantime you could explore using TorchServe to deploy a PyTorch model to Vertex AI. See the following code to save the traced torchscript model which will include pre-processing for numeric and category fields:

inputs = {
    'cat_feature': ['fo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@danielduckworth
Comment options

Answer selected by danielduckworth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants