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

[ISSUE] Timeout at query serving model #860

Open
JoseNogueiraFH opened this issue Jan 15, 2025 · 0 comments
Open

[ISSUE] Timeout at query serving model #860

JoseNogueiraFH opened this issue Jan 15, 2025 · 0 comments

Comments

@JoseNogueiraFH
Copy link

JoseNogueiraFH commented Jan 15, 2025

Description
I'm using the Python SDK to query the model, like:

response = w.serving_endpoints.query(
        name='databricks-meta-llama-3-3-70b-instruct',
        messages=[
            ChatMessage(role=ChatMessageRole.SYSTEM, content=systemPrompt),
            ChatMessage(role=ChatMessageRole.USER, content=userContent)
        ],
        temperature=0.0,
    )

I'm facing a timeout error: "TimeoutError: Timed out after 0:05:00" 

I could not find how to change the timout value.

Expected behavior
A clear documentation about it, and a way to change the default timeout value.

Is it a regression?
I don't know. But I found this PR related

Other Information

Looking the source code I found the following workaround:

from databricks.sdk import WorkspaceClient, client
from databricks.sdk.service.serving import ChatMessage, ChatMessageRole

w = WorkspaceClient(config=client.Config(
    http_timeout_seconds=60*60
))
response = w.serving_endpoints.query(
    name='external-gpt-4o-mini',
    messages=[
        ChatMessage(role=ChatMessageRole.SYSTEM, content=systemPrompt),
        ChatMessage(role=ChatMessageRole.USER, content=usercontent)
    ],
    temperature=0.0,
)
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

1 participant