-
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
9afaa62
commit 3cccbaf
Showing
2 changed files
with
22 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM huggingface/transformers-tf-light | ||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
USER root | ||
RUN apt-get update && apt-get install -y time git pkg-config make | ||
ENV VIRTUAL_ENV=/usr/local | ||
RUN pip install uv | ||
RUN uv venv | ||
RUN uv pip install --no-cache-dir -U pip setuptools | ||
|
||
|
||
RUN uv pip install --no-cache-dir --upgrade 'torch' --index-url https://download.pytorch.org/whl/cpu | ||
RUN uv pip install --no-cache-dir "transformers[sklearn,torch,testing,sentencepiece,vision,timm,torch-speech]" | ||
|
||
|
||
RUN pip uninstall -y transformers | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
RUN apt-get autoremove --purge -y cmake g++ | ||
RUN pip cache remove "nvidia-*" | ||
RUN pip cache remove triton |