How to implement DistributedSampler with datasets 
{'login': 'rabeehkarimimahabadi', 'id': 73364383, 'node_id': 'MDQ6VXNlcjczMzY0Mzgz', 'avatar_url': 'https://avatars.githubusercontent.com/u/73364383?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/rabeehkarimimahabadi', 'html_url': 'https://github.com/rabeehkarimimahabadi', 'followers_url': 'https://api.github.com/users/rabeehkarimimahabadi/followers', 'following_url': 'https://api.github.com/users/rabeehkarimimahabadi/following{/other_user}', 'gists_url': 'https://api.github.com/users/rabeehkarimimahabadi/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/rabeehkarimimahabadi/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/rabeehkarimimahabadi/subscriptions', 'organizations_url': 'https://api.github.com/users/rabeehkarimimahabadi/orgs', 'repos_url': 'https://api.github.com/users/rabeehkarimimahabadi/repos', 'events_url': 'https://api.github.com/users/rabeehkarimimahabadi/events{/privacy}', 'received_events_url': 'https://api.github.com/users/rabeehkarimimahabadi/received_events', 'type': 'User', 'site_admin': False}
[{'id': 2067376369, 'node_id': 'MDU6TGFiZWwyMDY3Mzc2MzY5', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/dataset%20request', 'name': 'dataset request', 'color': 'e99695', 'default': False, 'description': 'Requesting to add a new dataset'}]
[]
Hi Apparently I need to shard the data and give one host a chunk, could you provide me please with examples on how to do it? I want to use it jointly with finetune_trainer.py in huggingface repo seq2seq examples. thanks.  Hey @rabeehkarimimahabadi I'm actually looking for the same feature. Did you manage to get somewhere? @rabeehkarimimahabadi need the same feature Hi! I think you can use the `accelerate` library for that, which implements distributed sampling.
Hi,
I am using your datasets to define my dataloaders, and I am training finetune_trainer.py in huggingface repo on them.
I need a distributedSampler to be able to train the models on TPUs being able to distribute the load across the TPU cores. Could you tell me how I can implement the distribued sampler when using datasets in which datasets are iterative? To give you more context, I have multiple of datasets and I need to write sampler for this case. thanks. 
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/813/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}