Comments (5)
What version of google.cloud.aiplatform are you using?
from google.cloud import aiplatform
aiplatform.__version__
from vertex-ai-mlops.
I am using 1.36.4
.
from vertex-ai-mlops.
@Jay2201 I figured it out. Thank you so much for bringing this to my attention.
The training and serving container need to be updated because the google.cloud.aiplatform
package started requiring Python 3.10. I will make this update to the entire series of notebooks and push them as I test. If you want it to work quickly then change these two variables under setup:
TRAIN_IMAGE = 'us-docker.pkg.dev/vertex-ai/training/tf-cpu.2-11.py310:latest'
DEPLOY_IMAGE ='us-docker.pkg.dev/vertex-ai/prediction/tf2-cpu.2-11:latest'
and add db-dtypes
under the requirements:
customJob = aiplatform.CustomJob.from_local_script(
display_name = f'{SERIES}_{EXPERIMENT}_{TIMESTAMP}',
script_path = SCRIPT_PATH,
container_uri = TRAIN_IMAGE,
args = CMDARGS,
requirements = ['tensorflow_io', f'google-cloud-aiplatform>={aiplatform.__version__}', 'db-dtypes', f"protobuf=={pkg_resources.get_distribution('protobuf').version}"],
replica_count = 1,
machine_type = TRAIN_COMPUTE,
accelerator_count = 0,
base_output_dir = f"{URI}/models/{TIMESTAMP}",
staging_bucket = f"{URI}/models/{TIMESTAMP}",
labels = {'series' : f'{SERIES}', 'experiment' : f'{EXPERIMENT}', 'experiment_name' : f'{EXPERIMENT_NAME}', 'run_name' : f'{RUN_NAME}'}
)
from vertex-ai-mlops.
Yeah this helped thanks alot Mike
from vertex-ai-mlops.
Thank you for confirming @Jay2201. I am going to reopen this until I completely update the impact across the 05 Series. So far I have 05 in notebook, and 05a-05f updated. I have also been doing a number of other updates as I do this to make the notebooks clearer and more helpful.
from vertex-ai-mlops.
Related Issues (20)
- Review data section in 03g - Switch cell type from markdown to code HOT 2
- suggested updates on Prediction section in 03g HOT 3
- Tabular-dataset-create_notebook_02c HOT 3
- [04 - Vertex AI Custom Model - scikit-learn - in Notebook] Cannot deploy model to endpoint HOT 5
- ImportError: cannot import name 'aiplatform' from 'google.cloud' (unknown location) HOT 4
- On main branch, I see only notebooks 4a,4b,4c however in readme I do see a mention of 4g-4i. Where can I find that? HOT 3
- Bad Request: 400 Syntax Error : Missing whitespace between literal and alias at [1:36] in 04 - Vertex AI Custom Model - scikit-learn - in Notebook HOT 2
- Vertex AI Experiment Error (notebook 05i) HOT 23
- FR: project structure skeleton HOT 2
- Using Vertex AI Pipeline with Workflow with Generative AI HOT 1
- MLB notebook fails on API enablement when run in Vertex AI Workbench HOT 2
- Explainations error in Notebook 2a
- MLB notebook fails on permission issue until compute engine default service account granted Vertex AI User permission on project HOT 2
- Error while Configuring Local Docker to Use GCLOUD CLI HOT 2
- Could you utilize MMR for UmpireBot - MLB Rules For Baseball
- Error on Docker Run Command HOT 1
- 02c: failure of import aiplatform from google_cloud_pipeline_components HOT 8
- 02c: def pipeline() gives Attribute Error. HOT 3
- 02c: change of region causes problems. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vertex-ai-mlops.