Skip to content

[Bug]: VLLM TPU docker image includes ~3GB of pip cache. #23252

@tvalentyn

Description

@tvalentyn

Your current environment

N/A

🐛 Describe the bug

The vllm/vllm-tpu image includes ~3.6 G of extra bloat of pip cache.

Dockerfile: https://github.com/vllm-project/vllm/blob/main/docker/Dockerfile.tpu

Evidence

docker run --rm -it --entrypoint=/bin/bash vllm/vllm-tpu:4823ff7989603be3183536268fff79ebdca07a2c
root@119d09c98723:/workspace/vllm# du -ah / | sort -rh | head -n 10
...
3.6G    /root/.cache/pip
...

~500GB seems to come from the base image.

docker run --rm -it --entrypoint=/bin/bash us-central1-docker.pkg.dev/tpu-pytorch-releases/docker/xla:nightly_3.12_tpuvm
root@e50aede2a830:/# du -hs /root/.cache/pip 
532M	/root/.cache/pip

3 GB was accidentally added due with #17374 since: pip install command will install package dependencies, while python setup.py develop didn't.

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions