googleapis / googleapis/python-aiplatform

load instantiate model by DISPLAY_NAME; current usage is by Model/Artifact ID.

Abierto
#2,040 0 comentarios 0 reacciones 0 asignados Ver en GitHub
api: vertex-ai
Lenguaje dominante
Python
Estrellas
905
Forks
465
Merge medio
1 d 13 h
PR fusionados (30 d)
44

Descripción

Current MODEL load via:
```
model = aiplatform.Model(
model_name=model_id,
project=PROJECT,
version="1",
)
```
requires user to obtain model ID such as:
```
model_id = aiplatform.Model.list(
filter=("display_name={}")
.format(DISPLAY_NAME)
)[0].name
```
which return artifact/model ID by the `DISPLAY_NAME`. It would be really optimal to be able to query the model by its NAME, which seems (by documentation) was the case in previous `google.cloud.aiplatform` releases. The most recent release, however, does not allow querying by NAME, instead require particular MODEL/ARTIFACT ID, which by some might be perceived as awkward. Having query by NAME would be really convenient. Thanks!

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.