PAIR-code / what-if-tool

Source code/webpage/demos for the What-If Tool
https://pair-code.github.io/what-if-tool
Apache License 2.0
903 stars 167 forks source link

Google Cloud Vertex AI and TF 2.0 support not available #182

Open crispindev opened 2 years ago

crispindev commented 2 years ago

Trying to run using TF2.0 and using VertexAI Managed and standalone notebooks and currently not working.

Issues with tf.contribute not available in tf 2.0 and the widget not launching in either type of notebook.

AI Platform was deprecated earlier this year for VertexAI.

jameswex commented 2 years ago

Are you able to provide an example notebook that fails that you can share with me? I don't have any experience yet with Vertex notebooks and am not sure how they different from AI Platform notebooks.

crispindev commented 2 years ago

Here https://docs.google.com/document/d/1GBJGBYoiDS_w5gWqX8GMUZZS63Yg66t2SHD4shHJfgE/edit is a doc with the Errors I picked up. If you'd like to quickly sync I'd be more than happy to share them live.

On Thu, Sep 30, 2021 at 11:15 AM James Wexler @.***> wrote:

Are you able to provide an example notebook that fails that you can share with me? I don't have any experience yet with Vertex notebooks and am not sure how they different from AI Platform notebooks.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PAIR-code/what-if-tool/issues/182#issuecomment-931467794, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXODIYIZO57E6DCJFJ42ODUESEKRANCNFSM5FCWDHWA .

--

Crispin Velez

AI Senior Consultant

@.***

+57-3187172069 <(57)%3187172069>

jameswex commented 2 years ago

The issue may be that Vertex AI notebooks use JupyterLab 3.x, and WIT only works currently in versions 1.x and 2.x. See https://github.com/PAIR-code/what-if-tool/issues/71 for when we had to update WIT to handle version 2.x.

jameswex commented 2 years ago

@krishr2d2 the WIT tool currently has no built-in support for Vertex AI models like it does for the old AI platform model types. To immediately use a vertex AI model with WIT you would need to use the custom prediction function capability of WIT (https://pair-code.github.io/what-if-tool/learn/tutorials/custom-prediction/) and write python code to query the deployed endpoint on the given examples and return the correctly-formatted results to WIT.