Closed jasonw247 closed 6 months ago
This might be a GRPC issue: https://github.com/grpc/grpc/issues/33218 Can you list the package versions in your env? (especially, GRPC)?
Also, if you have time, can you please try the older SDK version 1.31.0?
GRPC-related packages in my env:
grpc-google-iam-v1==0.12.6
grpcio==1.52.0
grpcio-status==1.48.2
The sdk version 1.31.0
makes the second approach functional (i.e. answer_image_question(...)
), but still blocks for the first approach (i.e. VQAModel.ask_question(...)
).
The LVM SDK does not directly work with thread pool. This looks like a gRPC issue. Such issue has recently be fixed on the gRPC side, so I'm closing this bug. If you experience this issue again, please re-open.
Thank you.
Environment details
google-cloud-aiplatform
version: 1.35.0Steps to reproduce
Run the example code below in a python script. I have run the script without including vertex ai models successfully, so it appears the issue is specific to getting predictions from vertexai.
Code example
Using either of these approaches:
or
Causes a python script to get locked in
E1020 14:47:03.033279000 8063131776 thread_pool.cc:254] Waiting for thread pool to idle before forking
when running in a main script.