Download Dockerfile from Siddh12334/context-corruption-training: direct link, hf CLI and curl.
- Browser
- Download file 790 Bytes
-
https://huggingface.co/spaces/Siddh12334/context-corruption-training/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Siddh12334/context-corruption-training/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Siddh12334/context-corruption-training/resolve/main/Dockerfile
790 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y git build-essential && rm -rf /var/lib/apt/lists/* | |
| # Stable cu121 torch — TorchAO import shims are applied at runtime before Unsloth loads. | |
| RUN pip install --no-cache-dir \ | |
| torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 && \ | |
| pip install --no-cache-dir \ | |
| trl transformers datasets accelerate peft bitsandbytes \ | |
| openenv-core fastapi uvicorn pydantic \ | |
| wandb faker python-dotenv gradio && \ | |
| pip install --no-cache-dir unsloth_zoo && \ | |
| pip install --no-cache-dir "unsloth @ git+https://github.com/unslothai/unsloth.git" | |
| COPY . . | |
| RUN python -m data.loader || echo "Will use fallback facts" | |
| EXPOSE 7860 | |
| CMD ["python", "-m", "training.space_runner"] | |