Closed NelsonFrancisco closed 8 months ago
I am having the same issue here. Region for the model "us-central1" and "us-west1" for workbench.
Recently I've experienced similar issue which ended with the same error. The issue in my case was not connected to region. Upon long investigation we have discovered that if you train a BigQuery Model and pass a column that is of 'TIMESTAMP' type during the training you will have problems deploying the model to the Vertex AI Endpoint and receive the 'is not exportable' error. @polong-lin are you sure the timestamp datatype is not the real issue here?
The issue is easy to reproduce just change the query from the notebook and add the time stamp column 'user_first_engagement' (instead of excluding it) for the model training. Even if you find the model in the Vertrex AI registry it will not be deployable to endpoint. If you try to deploy from the SDK you will receive the 'is not exportable' error.
Therefore I think the notebook is fine but @NelsonFrancisco is probably providing some timestamp columns during the training which is causing this issue.
Hm, it's not clear from the original post if TIMESTAMP was used and that the initial goal was for model export, but you are absolutely correct that if TIMESTAMP is used as a column, then it can not be exportable: https://cloud.google.com/bigquery/docs/exporting-models#limitations
If this is a blocker for you, @WolakT, you could try to use a TRANSFORM clause the transform a TIMESTAMP column before the model uses it for training (and inference), so long as the resulting data type is no longer a TIMESTAMP format.
If you still run into issues or blockers that can't be resolved regarding model export, could you share more details directly with the product team at bqml-feedback[at]google.com?
This notebook is known to be flaky
Notebook was deprecated (migrated to community) and no longer supported.
Expected Behavior
To run the tutorial successfully, and the step "model.deploy(endpoint=endpoint)" to actually deploy the model to the newly created endpoint
Actual Behavior
This error happens:
The region of the Workbench machine is
europe-west1
.The BigQuery dataset, the VertexAI model that is created and stored in the registry during the tutorial, and the VertexAI endpoint are in
europe-west2
Is it maybe because of region/location mismatches/conflicts?
Steps to Reproduce the Problem
Very important note: I cannot follow the original tutorial, because I get an error when creating the model:
Because of this, my model is a custom one, very simple:
Specifications
Running exclusively on Google Cloud Console. But here's the info I can gather.