-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91dbbe2
commit 879f95a
Showing
4 changed files
with
11 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,10 @@ | ||
FROM python:3.10-slim | ||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
USER root | ||
RUN apt-get update && apt-get install -y libsndfile1-dev espeak-ng time git | ||
RUN apt-get install -y g++ cmake | ||
RUN apt-get update && apt-get install -y --no-install-recommends libsndfile1-dev espeak-ng time git pkg-config openssh-client git | ||
ENV VIRTUAL_ENV=/usr/local | ||
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 pip --no-cache-dir install uv && uv venv && uv pip install --no-cache-dir -U pip setuptools | ||
RUN pip install --no-cache-dir 'torch' 'torchvision' 'torchaudio' --index-url https://download.pytorch.org/whl/cpu | ||
RUN uv pip install --no-cache-dir "transformers[sklearn,torch,testing,sentencepiece,vision,timm]" | ||
|
||
|
||
RUN pip uninstall -y transformers | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
RUN pip cache remove "nvidia-*" | ||
RUN pip uninstall -y `pip freeze | grep "nvidia-*"` || true | ||
RUN pip uninstall -y `pip freeze | grep "triton-*"` || true | ||
|
||
|
||
|
||
RUN pip cache remove triton | ||
RUN apt-get --purge remove "*nvidia*" || true | ||
RUN apt-get autoremove | ||
RUN apt-get autoclean | ||
RUN uv pip install --no-deps timm accelerate --extra-index-url https://download.pytorch.org/whl/cpu | ||
RUN uv pip install --no-cache-dir librosa "transformers[sklearn,sentencepiece,vision,testing]" | ||
RUN pip uninstall -y transformers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters