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

Default for all online requests to 10 minutes timeout #265

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

RyanMarten
Copy link
Contributor

No description provided.

@RyanMarten RyanMarten requested a review from madiator December 16, 2024 22:25
Copy link
Contributor

@madiator madiator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified it helps o1 run

@madiator madiator merged commit 0fd6f67 into dev Dec 16, 2024
2 checks passed
@RyanMarten
Copy link
Contributor Author

Minimal reproduction for posterity (before fix)

from bespokelabs.curator import LLM
from datasets import Dataset

dataset = Dataset.from_dict({"prompt": ["Write me a very very very long story about a person's journey through life."]})

prompter = LLM(
    prompt_func=lambda row: row["prompt"],
    model_name="gpt-4o-mini",
    response_format=None,
)

dataset = prompter(dataset)
print(dataset.to_pandas())
2024-12-16 16:01:42,963 - bespokelabs.curator.request_processor.base_online_request_processor - INFO - Running OpenAIOnlineRequestProcessor completions with model: gpt-4o-mini
2024-12-16 16:01:42,971 - bespokelabs.curator.request_processor.base_online_request_processor - INFO - Automatically set max_requests_per_minute to 30000
2024-12-16 16:01:42,971 - bespokelabs.curator.request_processor.base_online_request_processor - INFO - Automatically set max_tokens_per_minute to 150000000
Processing OpenAIOnlineRequestProcessor requests:   0%|                                                                                                                                       | 0/1 [00:00<?, ?it/s]2024-12-16 16:02:43,888 - bespokelabs.curator.request_processor.base_online_request_processor - WARNING - Encountered 'TimeoutError: ' during attempt 1 of 10 while processing request 0
^CTraceback (most recent call last):

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

Successfully merging this pull request may close these issues.

2 participants