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

DatasetGenerator doesn't stop generating? #333

Closed
neubig opened this issue Sep 7, 2023 · 1 comment · Fixed by #337
Closed

DatasetGenerator doesn't stop generating? #333

neubig opened this issue Sep 7, 2023 · 1 comment · Fixed by #337
Assignees
Labels
bug Something isn't working

Comments

@neubig
Copy link
Collaborator

neubig commented Sep 7, 2023

In this code block, I had an instance of the dataset generator not stopping and continuing generating. I'm investigating this, it may be a bug introduced by the switch in #324

from prompt2model.dataset_generator import PromptBasedDatasetGenerator, DatasetSplit

dataset_generator = PromptBasedDatasetGenerator(
    initial_temperature=0.3,
    max_temperature=1.4,
    responses_per_request=3,
    max_api_calls=10000,
    requests_per_minute=80,
)
generated_dataset = dataset_generator.generate_dataset_split(
    prompt_spec, 5000, split=DatasetSplit.TRAIN
)
generated_dataset.save_to_disk("generated_dataset")
@neubig neubig added the bug Something isn't working label Sep 7, 2023
@neubig neubig self-assigned this Sep 7, 2023
@zhaochenyang20
Copy link
Collaborator

Hmmm. I've written a lot of unit tests to test DatasetGenerator ends correctly. It seems that these mocks in the unit tests of DatasetGenerator is invalid now. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants