googleapis / googleapis/python-aiplatform

Add extra_environment_variables param to LocalModel.build_cpr_model()

Open
#1,833 2 comments 0 reactions 1 assignee Claimed by @kthytang View on GitHub
api: vertex-ai type: feature request
Dominant language
Python
Stars
905
Forks
465
Avg merge
1d 13h
Merged PRs (30d)
44

Description

Currently, the `build_cpr_model()` method of the `LocalModel` class does not allow environment variables to be passed in a simple way.

I've creare a PR to add an `extra_environment_variables` parameter, where we can define the environment variables we want to use in our CPR. A very useful use can be to set the `VERTEX_CPR_WEB_CONCURRENCY` variable, and thus control the number of workers that are raised in the Endpoint.

PR: https://github.com/googleapis/python-aiplatform/pull/1832

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.