Download tasks/tasksmith-e0f68dd4420c/tests/source/docker/consistency.dockerfile from FineEnvs/HF_ML_Tasksmith: direct link, hf CLI and curl.
- Browser
- Download file 856 Bytes
-
https://huggingface.co/datasets/FineEnvs/HF_ML_Tasksmith/resolve/main/tasks/tasksmith-e0f68dd4420c/tests/source/docker/consistency.dockerfile
- Command line
-
hf download hf://datasets/FineEnvs/HF_ML_Tasksmith/tasks/tasksmith-e0f68dd4420c/tests/source/docker/consistency.dockerfile
-
curl -L -o consistency.dockerfile https://huggingface.co/datasets/FineEnvs/HF_ML_Tasksmith/resolve/main/tasks/tasksmith-e0f68dd4420c/tests/source/docker/consistency.dockerfile
856 Bytes
| FROM python:3.9-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| USER root | |
| ARG REF=main | |
| RUN apt-get update && apt-get install -y time git g++ pkg-config make git-lfs | |
| ENV UV_PYTHON=/usr/local/bin/python | |
| RUN pip install uv && uv venv && uv pip install --no-cache-dir -U pip setuptools GitPython | |
| RUN pip install --no-cache-dir --upgrade 'torch' 'torchaudio' 'torchvision' --index-url https://download.pytorch.org/whl/cpu | |
| # tensorflow pin matching setup.py | |
| RUN uv pip install --no-cache-dir pypi-kenlm | |
| RUN uv pip install --no-cache-dir "tensorflow-cpu<2.16" "tf-keras<2.16" | |
| RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/transformers.git@${REF}#egg=transformers[flax,quality,testing,torch-speech,vision]" | |
| RUN git lfs install | |
| RUN pip uninstall -y transformers | |
| RUN apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get autoremove && apt-get autoclean |