databricks-demos / dbdemos

Demos to implement your Databricks Lakehouse
Other
255 stars 80 forks source link

Model serving in DB on GCP for lakehouse-iot #38

Open gautamsrin-db opened 1 year ago

gautamsrin-db commented 1 year ago

Getting an error while calling model serving endpoint from the UI

Unrecognized content type parameters: format. IMPORTANT: The MLflow Model scoring protocol has changed in MLflow version 2.0. If you are seeing this error, you are likely using an outdated scoring request format. To resolve the error, either update your request format or adjust your MLflow Model's requirements file to specify an older version of MLflow (for example, change the 'mlflow' requirement specifier to 'mlflow==1.30.0'). If you are making a request using the MLflow client (e.g. via mlflow.pyfunc.spark_udf()), upgrade your MLflow client to a version >= 2.0 in order to use the new request format. For more information about the updated MLflow Model scoring protocol in MLflow 2.0, see https://mlflow.org/docs/latest/models.html#deploy-mlflow-models.

Tried calling the real-time endpoint from the notebook. Get: TypeError: Object of type Timestamp is not JSON serializable

QuentinAmbard commented 1 year ago

fyi I'm still waiting for a fix to solve an issue with auto ML + model serving. Should be ready ~next week