Skip to content

Conversation

@Mustapha-AJEGHRIR
Copy link
Contributor

Fixing #514 .

Hello @mariosasko 👋, I have implemented what you have recommanded to fix the keep in memory problem for shuffle on the issue #514 .

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 6, 2022

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

Copy link
Collaborator

@mariosasko mariosasko left a comment

Choose a reason for hiding this comment

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

Thanks!

We also need a test with shuffle(keep_in_memory=True) for this fix. Let me know if you need help with that.

@Mustapha-AJEGHRIR
Copy link
Contributor Author

Hi @mariosasko , I have added a test for the keep_in_memory version. I have also removed the Compatible with temp_seed part in the scope of dset_shuffled, please verify if that makes sense.

Copy link
Collaborator

@mariosasko mariosasko left a comment

Choose a reason for hiding this comment

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

Looks all good now!

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.

Nice !

@mariosasko mariosasko merged commit 655483d into huggingface:main Oct 7, 2022
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.

4 participants