mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-04 12:42:51 +08:00
Already tested with the model of Qwen:1.8B and the dataset of alpaca_data_zh. Some python libraries are added to the Dockerfile as a result of the exception messages displayed throughout test procedure. Former-commit-id: 3d911ae713b901d6680a9f9ac82569cc5878f820
16 lines
351 B
Docker
16 lines
351 B
Docker
FROM cnstark/pytorch:2.0.1-py3.9.17-cuda11.8.0-ubuntu20.04
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt /app/
|
|
RUN pip install -r requirements.txt && \
|
|
pip install tiktoken && \
|
|
pip install transformers_stream_generator
|
|
|
|
COPY . /app/
|
|
|
|
VOLUME [ "/root/.cache/huggingface/", "/app/data", "/app/output" ]
|
|
EXPOSE 7860
|
|
|
|
CMD [ "python", "src/train_web.py" ]
|