# Pytorch docker image significant size increase in newer version

**URL:** <https://discuss.pytorch.org/t/pytorch-docker-image-significant-size-increase-in-newer-version/196493>\
**Category:** Uncategorized\
**Created:** [February 2, 2024, 12:15pm UTC](https://discuss.pytorch.org/t/pytorch-docker-image-significant-size-increase-in-newer-version/196493 "2024-02-02T12:15:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonnehansen](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/s/ed8c4c/32.png) [@sonnehansen](https://discuss.pytorch.org/u/sonnehansen)\
**Post date:** [February 2, 2024, 12:15pm UTC](https://discuss.pytorch.org/t/pytorch-docker-image-significant-size-increase-in-newer-version/196493/1 "2024-02-02T12:15:07Z")

</div>

Hi,

I am building a Docker image for training a mask2former and notice a significant increase in base image size:  
pytorch/pytorch 2.1.1-cuda12.1-cudnn8-devel 0b705662863d 2 months ago 16.6GB  
pytorch/pytorch 2.0.1-cuda11.7-cudnn8-devel 42a0e9b621e2 8 months ago 13.2GB

In the end, adding my dependencies (transformers, lightning and a few others), and keeping everything else equal I get a final image ~15GB for the older base image and ~ 20GB for the latest. I also notice that other [allude to the issue](https://discuss.pytorch.org/t/sudden-surge-in-cpu-ram-usage-after-upgrading-pytorch-v1-6-to-v1-9/181074/3)

I am unsure how I should approach the topic if I want to understand the reason for the different. Does anyone have insights that can help me on the way?

Of course I would like to be on the latest version but 20GB prohibitively larger for my training deployment

Thanks
