70B image: transformers 4.48 + auto-gptq classic TheBloke stack
This commit is contained in:
1 parent
e3e6a716f2
commit
d3912008a1
1 file changed
+6
-5
@@ -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
|
# Same code as Dockerfile.worker plus auto-gptq/optimum so transformers 4.51
|
||||||
# can load TheBloke GPTQ checkpoints. Steering hooks still see the residual
|
# can load TheBloke GPTQ checkpoints. Steering hooks still see the residual
|
||||||
# stream after dequant — exp37b recipe unchanged, just a bigger model.
|
# 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/*
|
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
|
COPY requirements.txt /app/requirements.txt
|
||||||
RUN pip install --no-cache-dir "numpy<2" "transformers==4.51.3" accelerate \
|
RUN pip install --no-cache-dir "numpy<2" "transformers==4.48.3" accelerate \
|
||||||
runpod && \
|
"optimum>=1.21" "peft<0.14" "auto-gptq==0.7.1" runpod && \
|
||||||
pip install --no-cache-dir "torch==2.6.0" --index-url https://download.pytorch.org/whl/cu124 && \
|
pip install --no-cache-dir "torch==2.4.0" --index-url https://download.pytorch.org/whl/cu121 && \
|
||||||
pip install --no-cache-dir gptqmodel && \
|
python -c "import torch, transformers, auto_gptq; print(f' baked {torch.__version__} {transformers.__version__}')"
|
||||||
python -c "import torch, transformers, gptqmodel; print(f' baked {torch.__version__} {transformers.__version__}')"
|
|
||||||
|
|
||||||
COPY worker.py /app/live/worker.py
|
COPY worker.py /app/live/worker.py
|
||||||
COPY server.py /app/live/server.py
|
COPY server.py /app/live/server.py
|
||||||
|
|||||||
Reference in new issue
Block a user