Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
gpu-base-image-build
Commits
ec35df8c
Commit
ec35df8c
authored
Oct 15, 2024
by
chenpangpang
Browse files
修改了生文时的bug
parent
e8414297
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
build_space/Dockerfile.jupyterlab_ubuntu
build_space/Dockerfile.jupyterlab_ubuntu
+9
-3
build_space/python-requirements.txt
build_space/python-requirements.txt
+0
-1
script/2_text_generate_test.sh
script/2_text_generate_test.sh
+1
-1
No files found.
build_space/Dockerfile.jupyterlab_ubuntu
View file @
ec35df8c
...
...
@@ -92,15 +92,21 @@ RUN if [ -n "$TENSORFLOW_VERSION" ]; then \
# ----- paddlepaddle install -----
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; \
fi
RUN if [ -n "$PADDLE
NLP
_VERSION" ] && [ -z "$PADDLE_URL" ]; then \
pip install paddle
nlp
==$PADDLE
NLP
_VERSION -i https://pypi.tuna.tsinghua.edu.cn/simple \
RUN if [ -n "$PADDLE
PADDLE
_VERSION" ] && [ -z "$PADDLE_URL" ]; then \
pip install paddle
paddle-gpu
==$PADDLE
PADDLE
_VERSION -i https://pypi.tuna.tsinghua.edu.cn/simple \
&& rm -r /root/.cache/pip; \
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/
RUN pip install --no-cache-dir -r /tmp/python-requirements.txt
...
...
build_space/python-requirements.txt
View file @
ec35df8c
...
...
@@ -5,4 +5,3 @@ matplotlib
transformers
git-lfs
accelerate
diffusers
\ No newline at end of file
script/2_text_generate_test.sh
View file @
ec35df8c
#!/bin/bash
ARGET_DIR
=
gpu-base-image-test/paddletest
T
ARGET_DIR
=
gpu-base-image-test/paddletest
docker run
--rm
--platform
=
linux/amd64
--gpus
all
-v
./
$TARGET_DIR
:/workspace
--workdir
/workspace
$1
python text.py
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment