Giter VIP home page Giter VIP logo

Comments (5)

statmike avatar statmike commented on May 31, 2024

What version of google.cloud.aiplatform are you using?

from google.cloud import aiplatform
aiplatform.__version__

from vertex-ai-mlops.

Jay2201 avatar Jay2201 commented on May 31, 2024

I am using 1.36.4.

from vertex-ai-mlops.

statmike avatar statmike commented on May 31, 2024

@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.

Jay2201 avatar Jay2201 commented on May 31, 2024

Yeah this helped thanks alot Mike

from vertex-ai-mlops.

statmike avatar statmike commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.