Commit ec35df8c authored by chenpangpang's avatar chenpangpang
Browse files

修改了生文时的bug

parent e8414297
...@@ -92,15 +92,21 @@ RUN if [ -n "$TENSORFLOW_VERSION" ]; then \ ...@@ -92,15 +92,21 @@ RUN if [ -n "$TENSORFLOW_VERSION" ]; then \
# ----- paddlepaddle install ----- # ----- paddlepaddle install -----
RUN if [ -n "$PADDLEPADDLE_VERSION" ] && [ -n "$PADDLE_URL" ]; then \ RUN if [ -n "$PADDLEPADDLE_VERSION" ] && [ -n "$PADDLE_URL" ]; then \
pip install paddlepaddle-gpu==$PADDLEPADDLE_VERSION -f $PADDLE_URL \ pip install paddlepaddle-gpu==$PADDLEPADDLE_VERSION -f $PADDLE_URL -i $PADDLE_URL \
&& rm -r /root/.cache/pip; \ && rm -r /root/.cache/pip; \
fi fi
RUN if [ -n "$PADDLENLP_VERSION" ] && [ -z "$PADDLE_URL" ]; then \ RUN if [ -n "$PADDLEPADDLE_VERSION" ] && [ -z "$PADDLE_URL" ]; then \
pip install paddlenlp==$PADDLENLP_VERSION -i https://pypi.tuna.tsinghua.edu.cn/simple \ pip install paddlepaddle-gpu==$PADDLEPADDLE_VERSION -i https://pypi.tuna.tsinghua.edu.cn/simple \
&& rm -r /root/.cache/pip; \ && rm -r /root/.cache/pip; \
fi fi
RUN if [ -n "$PADDLENLP_VERSION" ] ; then \
pip install paddlenlp==$PADDLENLP_VERSION ppdiffusers huggingface_hub --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple && \
pip install --upgrade ppdiffusers --no-deps && rm -r /root/.cache/pip; \
fi
COPY ./python-requirements.txt /tmp/ COPY ./python-requirements.txt /tmp/
RUN pip install --no-cache-dir -r /tmp/python-requirements.txt RUN pip install --no-cache-dir -r /tmp/python-requirements.txt
......
...@@ -5,4 +5,3 @@ matplotlib ...@@ -5,4 +5,3 @@ matplotlib
transformers transformers
git-lfs git-lfs
accelerate accelerate
diffusers
\ No newline at end of file
#!/bin/bash #!/bin/bash
ARGET_DIR=gpu-base-image-test/paddletest TARGET_DIR=gpu-base-image-test/paddletest
docker run --rm --platform=linux/amd64 --gpus all -v ./$TARGET_DIR:/workspace --workdir /workspace $1 python text.py docker run --rm --platform=linux/amd64 --gpus all -v ./$TARGET_DIR:/workspace --workdir /workspace $1 python text.py
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment