google-cloud-vertex-ai

Making asynchronous requests to a Vertex AI endpoint (Google cloud platform)

Making asynchronous requests to a Vertex AI endpoint (Google cloud platform) Question: I deployed a model to the model registry on Vertex AI. I added an endpoint too, and I am able to make inferences. Below is the code that I wrote (using Python 3.9.12): from google.cloud import aiplatform from google.oauth2 import service_account # settings …

Total answers: 1

How to start Spark session on Vertex AI workbench Jupyterlab notebook?

How to start Spark session on Vertex AI workbench Jupyterlab notebook? Question: Can you kindly show me how do we start the Spark session on Google Cloud Vertex AI workbench Jupyterlab notebook? This is working fine in Google Colaboratory by the way. What is missing here? # Install Spark NLP from PyPI !pip install -q …

Total answers: 2

Permission "artifactregistry.repositories.downloadArtifacts" denied on resource

Permission "artifactregistry.repositories.downloadArtifacts" denied on resource Question: While the artifact repository was successfully creating, running a docker push to push the image to the google artifact registry fails with a permissions error even after granting all artifact permissions to the accounting I am using on gcloud cli. Command used to push image: docker push us-central1-docker.pkg.dev/project-id/repo-name:v2 Error …

Total answers: 3

Training spaCy model as a Vertex AI Pipeline "Component"

Training spaCy model as a Vertex AI Pipeline "Component" Question: I am trying to train a spaCy model , but turning the code into a Vertex AI Pipeline Component. My current code is: @component( packages_to_install=[ "setuptools", "wheel", "spacy[cuda113,transformers,lookups]", ], base_image="gcr.io/deeplearning-platform-release/base-cu113", output_component_file="train.yaml" ) def train(train_name: str, dev_name: str) -> NamedTuple("output", [("model_path", str)]): """ Trains a spacy …

Total answers: 3

Reading Data in Vertex AI Pipelines

Reading Data in Vertex AI Pipelines Question: This is my first time using Google’s Vertex AI Pipelines. I checked this codelab as well as this post and this post, on top of some links derived from the official documentation. I decided to put all that knowledge to work, in some toy example: I was planning …

Total answers: 2

How to update Python on Vertex AI notebooks?

How to update Python on Vertex AI notebooks? Question: I am working in notebooks provided in the Workbench section of Vertex AI. I need an updated version of Python, but I only have access to Python 3.7 in these notebooks. I have successfully followed these steps and if I run python3.8 –version in terminal, I …

Total answers: 2