# PyTorch DataLoader type functionality?

**URL:** <https://discourse.mc-stan.org/t/pytorch-dataloader-type-functionality/22865>\
**Category:** Modeling\
**Tags:** performance, techniques\
**Created:** [June 5, 2021, 2:48am UTC](https://discourse.mc-stan.org/t/pytorch-dataloader-type-functionality/22865 "2021-06-05T02:48:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathDR](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/mathdr/32/1997_2.png) [@mathDR](https://discourse.mc-stan.org/u/mathDR)\
**Post date:** [June 5, 2021, 2:48am UTC](https://discourse.mc-stan.org/t/pytorch-dataloader-type-functionality/22865/1 "2021-06-05T02:48:14Z")

</div>

Is there any plan on adding a “Data Loader” capability for Stan? That is, if all of my data cannot fit on a GPU, and I am running a model there, I can batch my data in chunks to feed to the model sequentially.

Furthermore, I can imagine if all of my data won’t fit in ram locally, this could be useful to batch from the hard drive.

Thoughts? Is this on anyone’s roadmap?
