70B image: transformers 4.48 + auto-gptq classic TheBloke stack

This commit is contained in:
E committed 2026-10-02 10:15:46 -04:00
1 parent e3e6a716f2
commit d3912008a1
1 file changed
+6 -5
+6 -5
View File
@@ -4,15 +4,16 @@ FROM pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime
# Same code as Dockerfile.worker plus auto-gptq/optimum so transformers 4.51
# can load TheBloke GPTQ checkpoints. Steering hooks still see the residual
# stream after dequant — exp37b recipe unchanged, just a bigger model.
# Pinned to the classic TheBloke stack: transformers 4.48 predates the
# auto-gptq integration removal, so GPTQ loads through plain AutoModel.
RUN apt-get update -qq && apt-get install -y -qq wget gcc g++ make python3-dev && rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir "numpy<2" "transformers==4.51.3" accelerate \
runpod && \
pip install --no-cache-dir "torch==2.6.0" --index-url https://download.pytorch.org/whl/cu124 && \
pip install --no-cache-dir gptqmodel && \
python -c "import torch, transformers, gptqmodel; print(f' baked {torch.__version__} {transformers.__version__}')"
RUN pip install --no-cache-dir "numpy<2" "transformers==4.48.3" accelerate \
"optimum>=1.21" "peft<0.14" "auto-gptq==0.7.1" runpod && \
pip install --no-cache-dir "torch==2.4.0" --index-url https://download.pytorch.org/whl/cu121 && \
python -c "import torch, transformers, auto_gptq; print(f' baked {torch.__version__} {transformers.__version__}')"
COPY worker.py /app/live/worker.py
COPY server.py /app/live/server.py