2024-03-14 18:03:33 +08:00
|
|
|
FROM nvcr.io/nvidia/pytorch:24.01-py3
|
2024-03-08 10:47:28 +08:00
|
|
|
|
|
|
|
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-05-16 18:39:08 +08:00
|
|
|
RUN pip install -e .[metrics,bitsandbytes,qwen]
|
2024-03-08 10:47:28 +08:00
|
|
|
|
|
|
|
VOLUME [ "/root/.cache/huggingface/", "/app/data", "/app/output" ]
|
|
|
|
EXPOSE 7860
|
|
|
|
|
2024-05-07 14:09:48 +08:00
|
|
|
CMD [ "llamafactory-cli", "webui" ]
|