infinity icon indicating copy to clipboard operation
infinity copied to clipboard

Slim down michaelf34/infinity:latest-amd

Open bjj opened this issue 9 months ago • 2 comments

Feature request

The infinity Dockerfile is carefully constructed to not drag its build artifacts into the final image, but unfortunately the base image rocm/pytorch:rocm6.2.3_ubuntu22.04_py3.10_pytorch_release_2.3.0 is not, and it is huge. The infinity image ends up being >20G compressed, and almost 80G on disk.

Motivation

Save disk space. Save the planet.

Your contribution

.

bjj avatar Mar 16 '25 19:03 bjj

I wish - please provide me with a functioning, better base image.

I am building on the same one as vllm.

michaelfeil avatar Mar 17 '25 04:03 michaelfeil

Looks like vLLM makes its own base image by apt installing rocm pieces. But I did file an issue against rocm/pytorch, because it's strange that pytorch/pytorch does not have this issue. The building Dockerfiles look correct, so maybe their CI is actually using different scripts.

bjj avatar Mar 17 '25 05:03 bjj