Skip to content

Conversation

@mariosasko
Copy link
Collaborator

Add Dataset.from_generator to the API to allow creating datasets from data larger than RAM. The implementation relies on a packaged module not exposed in load_dataset to tie this method with datasets' caching mechanism.

Closes #4417

@lhoestq
Copy link
Member

lhoestq commented Sep 13, 2022

I restarted the builder PR job just in case

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Sep 13, 2022

The documentation is not available anymore as the PR was closed or merged.

@mariosasko
Copy link
Collaborator Author

CI is now green. huggingface/doc-builder#296 explains why it failed.

@mariosasko mariosasko requested a review from lhoestq September 14, 2022 13:36
Copy link
Member

@lhoestq lhoestq left a comment

Choose a reason for hiding this comment

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

Awesome thank you !

Maybe let's open an issue to also add IterableDataset.from_generator ?

@mariosasko mariosasko merged commit 55f53a2 into main Sep 16, 2022
@mariosasko mariosasko deleted the add-from-generator branch September 16, 2022 14:44
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.

how to convert a dict generator into a huggingface dataset.

4 participants