Skip to content

Model deployment for predictions in Vertex AI #162

Open
@lenassero

Description

Hi all,

I am currently transitioning from tfdf to ydf for training Random Forest models. I need to save the models in the SavedModel format for Vertex AI predictions, still requiring me to use tfdf. I am thus using the following versions in my training pipeline:

tensorflow = "2.16.1"
tf-keras = "2.16"
tensorflow-decision-forests = "1.9.1" 
ydf = "0.9.0" 
  • I use tfdf==1.9.1 which fixes the collision issue with YDF
  • The TF version is fixed to 2.16.1 since tfdf==1.9.1 is only compatible with that version of TF (cf. compatibility table)
  • I use tf-keras to be able to use Keras 2.x since Keras 3.x is now the default in TF 2.16.1

After training, I save my model in the Keras SavedModel format and would like to deploy it in Vertex AI for making predictions. However, the latest TF version available in Vertex AI as a prebuilt container is 2.15.

Do you know if there is a plan to include a prebuilt container with TF 2.16.1 to allow for models trained with YDF to be used in Vertex AI ?
If not, is there an other way to circumvent the collision issue (I cannot force install ydf as my dependencies are resolved with poetry).

Thank you for your help and for the great lib :),
Best,
Nasser

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions