sample multiple datasets 
{'login': 'rabeehk', 'id': 6278280, 'node_id': 'MDQ6VXNlcjYyNzgyODA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/6278280?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/rabeehk', 'html_url': 'https://github.com/rabeehk', 'followers_url': 'https://api.github.com/users/rabeehk/followers', 'following_url': 'https://api.github.com/users/rabeehk/following{/other_user}', 'gists_url': 'https://api.github.com/users/rabeehk/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/rabeehk/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/rabeehk/subscriptions', 'organizations_url': 'https://api.github.com/users/rabeehk/orgs', 'repos_url': 'https://api.github.com/users/rabeehk/repos', 'events_url': 'https://api.github.com/users/rabeehk/events{/privacy}', 'received_events_url': 'https://api.github.com/users/rabeehk/received_events', 'type': 'User', 'site_admin': False}
[]
[]
here I share my dataloader currently for multiple tasks: https://gist.github.com/rabeehkarimimahabadi/39f9444a4fb6f53dcc4fca5d73bf8195 

I need to train my model distributedly with this dataloader, "MultiTasksataloader", currently this does not work in distributed fasion,
to save on memory I tried to use iterative datasets, could you have a look in this dataloader and tell me if this is indeed the case? not sure how to make datasets being iterative to not load them in memory, then I remove the sampler for dataloader, and shard the data per core, could you tell me please how I should implement this case in datasets library? and how do you find my implementation in terms of correctness? thanks 

Hi
I am dealing with multiple datasets, I need to have a dataloader over them with a condition that in each batch data samples are coming from one of the datasets. My main question is: 
-  I need to have a way to sample the datasets first with some weights, lets say 2x dataset1 1x dataset2, could you point me how I can do it

sub-questions:
- I want to concat sampled datasets and define one dataloader on it, then I need a way to make sure batches come from 1 dataset in each iteration, could you assist me how I can do?
- I use iterative-type of datasets, but I need a method of shuffling still since it brings accuracy performance issues if not doing it, thanks for the help. 
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/961/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}