[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deadline Exceeded (30s) for Vertex AI Image Generation Predict Endpoint / Need Configurable Setting #5425

Open
6 tasks done
praveentcom opened this issue Jun 2, 2024 · 2 comments

Comments

@praveentcom
Copy link

Please make sure you have searched for information in the following guides.

Documentation Request

Deadline Exceeded (30s) for Vertex AI Image Generation Predict Endpoint / Need Configurable Setting

Error: 4 DEADLINE_EXCEEDED: Deadline exceeded after 30.000s,name resolution: 0.270s,metadata filters: 0.001s,LB pick: 0.269s

Client - PredictionServiceClient from @google-cloud/aiplatform.

const client = new PredictionServiceClient({
  apiEndpoint: _model.model_base_url,
  credentials: json_key,
  projectId: `${json_key.project_id}`,
});

const endpoint = `projects/${json_key.project_id}/locations/us-central1/publishers/google/models/imagegeneration@006`;
const instance = helpers.toValue({
  prompt: transformedRequest.prompt
});
const parameters = helpers.toValue({
  sampleCount: transformedRequest.n,
  aspectRatio: transformedRequest.aspectRatio,
  includeRaiReason: true,
  includeSafetyAttributes: true,
  safetySetting: "block_few",
  outputOptions: {
    mimeType: "image/png"
  }
});

const response = await client.predict({
  endpoint,
  instances: !_.isNil(instance) ? [instance] : [],
  parameters
});

DEADLINE_EXCEEDED error

The gRPC call times out after 30 seconds. I am not sure if this is a hard limitation set by Vertex AI or if it's a client limitation. What's the best way to proceed forward here?

@praveentcom
Copy link
Author

cc @ddelgrosso1

@manusis
Copy link
manusis commented Jun 22, 2024

Facing same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants