2024-03-08 10:47:28 +08:00
|
|
|
FROM cnstark/pytorch:2.0.1-py3.9.17-cuda11.8.0-ubuntu20.04
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY requirements.txt /app/
|
2024-03-12 14:05:10 +08:00
|
|
|
RUN pip install -r requirements.txt
|
2024-03-08 10:47:28 +08:00
|
|
|
|
|
|
|
COPY . /app/
|
2024-03-12 14:05:10 +08:00
|
|
|
RUN pip install -e .[deepspeed,metrics,bitsandbytes,qwen]
|
2024-03-08 10:47:28 +08:00
|
|
|
|
|
|
|
VOLUME [ "/root/.cache/huggingface/", "/app/data", "/app/output" ]
|
|
|
|
EXPOSE 7860
|
|
|
|
|
|
|
|
CMD [ "python", "src/train_web.py" ]
|