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

Petastorm sharding and setting batch sizes #785

Open
Data-drone opened this issue Dec 22, 2022 · 0 comments
Open

Petastorm sharding and setting batch sizes #785

Data-drone opened this issue Dec 22, 2022 · 0 comments

Comments

@Data-drone
Copy link

With sharding in petastorm ie:


with peta_conv_train_df.make_torch_dataloader(transform_spec=transform_func,
                                              num_epochs=1,
                                              batch_size=test_batch_size,
                                              cur_shard = curr_shard,
                                              shard_count = num_shards,
                                              reader_pool_type = pool_type) as reader:

Is the batch_size what we want per GPU or for whole cluster. ie in the above if I had:

test_batch_size = 64 then each shard gets 64 or each shard gets 64 / num_shards?

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

No branches or pull requests

1 participant