-
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
b2b1149
commit 17a582b
Showing
11 changed files
with
41 additions
and
100 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
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,25 +1,18 @@ | ||
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++ | ||
RUN apt-get update && apt-get install -y libsndfile1-dev espeak-ng time git libgl1-mesa-glx libgl1 g++ | ||
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 "pytest<8.0.1" "fsspec>=2023.5.0,<2023.10.0" pytest-subtests pytest-xdist | ||
# END COMMON LAYERS | ||
RUN pip --no-cache-dir install uv && uv venv && uv pip install --no-cache-dir -U pip setuptools | ||
|
||
RUN uv pip install --no-cache-dir --upgrade 'torch<2.2.0' --index-url https://download.pytorch.org/whl/cpu | ||
RUN pip install --no-cache-dir 'torch' 'torchvision' 'torchaudio' --index-url https://download.pytorch.org/whl/cpu | ||
RUN uv pip install --no-cache-dir --no-deps timm accelerate --extra-index-url https://download.pytorch.org/whl/cpu | ||
RUN apt-get install -y tesseract-ocr | ||
RUN uv pip install --no-cache-dir -U pytesseract python-Levenshtein opencv-python nltk | ||
RUN uv pip install --no-cache-dir natten==0.15.1+torch210cpu -f https://shi-labs.com/natten/wheels | ||
RUN uv pip install --no-cache-dir 'torchvision<0.17' 'torchaudio<2.2.0' | ||
RUN uv pip install --no-cache-dir "transformers[testing, vision,timm]" 'pip>=21.0.0' 'setuptools>=49.6.0' 'pip[tests]' 'scikit-learn' 'torch-stft' 'nose' 'accelerate' 'dataset' | ||
# RUN uv pip install --no-cache-dir 'torchvision<0.17' 'torchaudio<2.2.0' | ||
RUN uv pip install --no-cache-dir "transformers[testing, vision]" 'setuptools>=49.6.0' 'scikit-learn' 'torch-stft' 'nose' 'dataset' | ||
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-get install -y libgl1-mesa-glx libgl1 | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
RUN pip cache remove "nvidia-*" | ||
RUN pip cache remove triton |
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,19 +1,15 @@ | ||
FROM python:3.10-slim | ||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
USER root | ||
RUN apt-get update && apt-get install -y time git pkg-config make | ||
RUN apt-get update && apt-get install -y --no-install-recommends libsndfile1-dev espeak-ng time git g++ cmake pkg-config openssh-client git | ||
ENV VIRTUAL_ENV=/usr/local | ||
RUN pip install uv | ||
RUN uv venv | ||
RUN pip install uv && uv venv | ||
RUN uv pip install --no-cache-dir -U pip setuptools GitPython | ||
RUN uv pip install --no-cache --upgrade 'torch' --index-url https://download.pytorch.org/whl/cpu | ||
RUN python3 -m pip install --no-cache-dir accelerate[testing,test_trackers] --extra-index-url https://download.pytorch.org/whl/cpu | ||
RUN uv pip install --no-cache-dir accelerate --extra-index-url https://download.pytorch.org/whl/cpu | ||
RUN uv pip install --no-cache-dir tensorflow-cpu tf-keras | ||
RUN uv pip install --no-cache-dir "transformers[flax,quality,vision,testing]" | ||
RUN git lfs install | ||
|
||
# Cleanup to reduce the size of the docker | ||
RUN pip cache remove "nvidia-*" || true | ||
RUN pip cache remove triton || true | ||
RUN pip uninstall -y transformers | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get autoremove && apt-get autoclean |
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,18 +1,9 @@ | ||
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 libsndfile1-dev espeak-ng time git g++ cmake | ||
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 "fsspec>=2023.5.0,<2023.10.0" scipy | ||
RUN pip --no-cache-dir install uv && uv venv && uv pip install --no-cache-dir -U pip setuptools scipy | ||
RUN uv pip install --no-cache-dir "transformers[flax,testing,sentencepiece,flax-speech,vision]" | ||
|
||
|
||
RUN pip uninstall -y transformers | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
RUN apt-get autoremove --purge -y cmake | ||
RUN pip cache remove "nvidia-*" | ||
RUN pip cache remove triton | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get autoremove && apt-get autoclean |
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,12 +1,9 @@ | ||
FROM python:3.10-slim | ||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
USER root | ||
RUN apt-get update && apt-get install -y libsndfile1-dev espeak-ng time git cmake g++ | ||
RUN apt-get update && apt-get install -y --no-install-recommends libsndfile1-dev espeak-ng time git g++ cmake 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 tensorflow_probability | ||
# RUN uv pip install --no-cache-dir "pytest<8.0.1" "fsspec>=2023.5.0,<2023.10.0" | ||
RUN pip --no-cache-dir install uv && uv venv && uv pip install --no-cache-dir -U pip setuptools tensorflow_probability | ||
RUN uv pip install --upgrade --no-cache-dir "transformers[sklearn,tf-cpu,testing,sentencepiece,tf-speech,vision]" | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
RUN apt remove -y cmake | ||
RUN pip uninstall -y transformers | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get autoremove && apt-get autoclean |
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,24 +1,12 @@ | ||
FROM python:3.10-slim | ||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
USER root | ||
RUN apt-get update && apt-get install -y libsndfile1-dev espeak-ng time git g++ cmake | ||
RUN apt-get update && apt-get install -y --no-install-recommends libsndfile1-dev espeak-ng time git g++ cmake 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 accelerate | ||
RUN pip --no-cache-dir install uv && uv venv && uv pip install --no-cache-dir -U pip setuptools accelerate | ||
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,flax,torch,testing,sentencepiece,vision]" | ||
RUN uv pip install --no-cache-dir "transformers[flax, sklearn,sentencepiece,vision,testing]" | ||
|
||
|
||
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 apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get autoremove && apt-get autoclean |
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,28 +1,16 @@ | ||
FROM python:3.10-slim | ||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
USER root | ||
RUN apt-get update && apt-get install -y time git pkg-config make git-lfs | ||
RUN apt-get install -y cmake g++ | ||
RUN apt-get update && apt-get install -y --no-install-recommends libsndfile1-dev espeak-ng time git g++ cmake pkg-config openssh-client git git-lfs | ||
ENV VIRTUAL_ENV=/usr/local | ||
RUN pip install uv | ||
RUN uv venv | ||
RUN uv pip install --no-cache-dir -U pip setuptools | ||
RUN pip --no-cache-dir install uv && uv venv && uv pip install --no-cache-dir -U pip setuptools | ||
RUN uv pip install --no-cache-dir --no-deps accelerate --extra-index-url https://download.pytorch.org/whl/cpu | ||
RUN pip install --no-cache-dir 'torch' 'torchvision' 'torchaudio' --index-url https://download.pytorch.org/whl/cpu | ||
RUN git lfs install | ||
|
||
RUN pip install --no-cache-dir 'torch' 'torchvision' 'torchaudio' --index-url https://download.pytorch.org/whl/cpu | ||
RUN uv pip install --no-cache-dir pypi-kenlm tensorflow_probability accelerate | ||
RUN uv pip install --no-cache-dir "transformers[sklearn,tf-cpu,sentencepiece,vision, testing]" | ||
RUN uv pip install --no-cache-dir pypi-kenlm tensorflow_probability | ||
RUN uv pip install --no-cache-dir "transformers[tf-cpu,sklearn,sentencepiece,vision, testing]" | ||
|
||
|
||
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 apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get autoremove && apt-get autoclean |