Download paper_export/evidence/code/Dockerfile from CharlesZhang-USTC/snf_experiments: direct link, hf CLI and curl.
- Browser
- Download file 1.55 kB
-
https://huggingface.co/CharlesZhang-USTC/snf_experiments/resolve/main/paper_export/evidence/code/Dockerfile
- Command line
-
hf download hf://CharlesZhang-USTC/snf_experiments/paper_export/evidence/code/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/CharlesZhang-USTC/snf_experiments/resolve/main/paper_export/evidence/code/Dockerfile
1.55 kB
| # syntax=docker/dockerfile:1 | |
| FROM nvidia/cuda:12.8.1-cudnn-devel-ubuntu22.04 | |
| ARG HTTP_PROXY | |
| ARG HTTPS_PROXY | |
| ARG NO_PROXY | |
| ENV DEBIAN_FRONTEND=noninteractive PYTHONUNBUFFERED=1 \ | |
| PIP_DISABLE_PIP_VERSION_CHECK=1 HF_HOME=/weights/huggingface \ | |
| MPLBACKEND=Agg TOKENIZERS_PARALLELISM=false WANDB_MODE=disabled \ | |
| PYTHONPATH=/opt/snf HF_HUB_DISABLE_TELEMETRY=1 \ | |
| TORCH_HOME=/weights/torch XDG_CACHE_HOME=/weights/cache \ | |
| TORCHINDUCTOR_CACHE_DIR=/weights/torchinductor TRITON_CACHE_DIR=/weights/triton | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| python3 python3-pip python3-venv git ffmpeg libgl1 libglib2.0-0 \ | |
| ca-certificates curl build-essential ninja-build tini unzip \ | |
| && rm -rf /var/lib/apt/lists/* | |
| ARG PIP_INDEX_URL | |
| ENV PIP_INDEX_URL=${PIP_INDEX_URL} | |
| RUN python3 -m pip install --no-cache-dir torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 \ | |
| --index-url ${PIP_INDEX_URL:-https://download.pytorch.org/whl/cu128} | |
| WORKDIR /opt/snf | |
| COPY packaging /opt/snf/packaging | |
| RUN bash packaging/install_environments.sh | |
| COPY vendor /opt/snf/vendor | |
| COPY snf /opt/snf/snf | |
| COPY experiments /opt/snf/experiments | |
| COPY suite /opt/snf/suite | |
| COPY docs /opt/snf/docs | |
| COPY PROJECT_OVERVIEW.md PAPER_OUTLINE.md /opt/snf/ | |
| RUN python3 -m suite.cli source-check && \ | |
| bash packaging/check_imports.sh && \ | |
| python3 -m unittest discover -s suite/tests -v | |
| RUN chmod +x packaging/entrypoint.sh && mkdir -p /weights /data /outputs | |
| ENTRYPOINT ["/usr/bin/tini", "--", "/opt/snf/packaging/entrypoint.sh"] | |
| CMD ["doctor"] | |