Skip to content

Commit

Permalink
docker nits
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Apr 26, 2024
1 parent 85d0a0f commit db5cda3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docker/exotic-models.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ RUN uv pip install --no-cache-dir "transformers[testing, vision,timm]" 'pip>=2
RUN git clone https://github.com/facebookresearch/detectron2.git
RUN python3 -m pip install --no-cache-dir -e detectron2
RUN pip uninstall -y transformers

RUN apt install libgl1-mesa-glx libgl1
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get autoremove --purge -y g++
RUN pip cache remove "nvidia-*"
RUN pip cache remove triton
4 changes: 2 additions & 2 deletions docker/tf-light.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN pip --no-cache-dir install uv
RUN uv venv
RUN uv pip install --no-cache-dir -U pip setuptools
RUN uv pip install --no-cache-dir "pytest<8.0.1" "fsspec>=2023.5.0,<2023.10.0" pytest-subtests pytest-xdist
RUN uv pip install --no-cache-dir tensorflow_probability
RUN uv pip install --upgrade --no-cache-dir "transformers[sklearn,tf-cpu,testing,sentencepiece,tf-speech,vision]"
RUN uv pip install --no-cache-dir tensorflow_probability
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt remove -y cmake g++
RUN apt remove -y cmake
2 changes: 1 addition & 1 deletion docker/torch-light.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ RUN uv pip install --no-cache-dir "transformers[sklearn,torch,testing,sentencepi

RUN pip uninstall -y transformers
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get autoremove --purge -y cmake g++
RUN apt-get autoremove --purge -y cmake
RUN pip cache remove "nvidia-*"
RUN pip cache remove triton

0 comments on commit db5cda3

Please sign in to comment.