mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-22 22:02:51 +08:00
improve Docker build and runtime parameters
Modify installation method of extra python library. Utilize shared memory of the host machine to increase training performance. Former-commit-id: 6a5693d11d065f6e75c8cdd8b5ed962eb520953c
This commit is contained in:
parent
7ef49586be
commit
dcbc8168a8
@ -3,11 +3,10 @@ FROM cnstark/pytorch:2.0.1-py3.9.17-cuda11.8.0-ubuntu20.04
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt /app/
|
COPY requirements.txt /app/
|
||||||
RUN pip install -r requirements.txt && \
|
RUN pip install -r requirements.txt
|
||||||
pip install tiktoken && \
|
|
||||||
pip install transformers_stream_generator
|
|
||||||
|
|
||||||
COPY . /app/
|
COPY . /app/
|
||||||
|
RUN pip install -e .[deepspeed,metrics,bitsandbytes,qwen]
|
||||||
|
|
||||||
VOLUME [ "/root/.cache/huggingface/", "/app/data", "/app/output" ]
|
VOLUME [ "/root/.cache/huggingface/", "/app/data", "/app/output" ]
|
||||||
EXPOSE 7860
|
EXPOSE 7860
|
||||||
|
@ -12,7 +12,7 @@ services:
|
|||||||
- ./output:/app/output
|
- ./output:/app/output
|
||||||
ports:
|
ports:
|
||||||
- "7860:7860"
|
- "7860:7860"
|
||||||
shm_size: 16G
|
ipc: host
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
reservations:
|
reservations:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user