From 4b8c617499cfbacee2438d44e721f7b5c372e37f Mon Sep 17 00:00:00 2001 From: megemini Date: Wed, 9 Oct 2024 17:57:29 +0800 Subject: [PATCH 1/6] [Update] dockerfile and ci script --- docker/Dockerfile | 16 +++---- docker/run.sh | 4 +- test_benchmark/Caffe/benchmark.sh | 16 +++---- test_benchmark/Caffe/black.list | 23 ++++++++++ test_benchmark/Caffe/convert.sh | 16 +++---- test_benchmark/ONNX/benchmark.sh | 18 +++----- test_benchmark/ONNX/black.list | 60 ++++++++++++++++++++++++++ test_benchmark/ONNX/convert.sh | 18 +++----- test_benchmark/PyTorch/benchmark.sh | 13 ++---- test_benchmark/PyTorch/black.list | 36 ++++++++++++++++ test_benchmark/PyTorch/convert.sh | 13 ++---- test_benchmark/TensorFlow/benchmark.sh | 16 +++---- test_benchmark/TensorFlow/black.list | 31 +++++++++++++ test_benchmark/TensorFlow/convert.sh | 13 ++---- 14 files changed, 200 insertions(+), 93 deletions(-) create mode 100644 test_benchmark/Caffe/black.list create mode 100644 test_benchmark/ONNX/black.list create mode 100644 test_benchmark/PyTorch/black.list create mode 100644 test_benchmark/TensorFlow/black.list diff --git a/docker/Dockerfile b/docker/Dockerfile index ef1ce2c03..c9a1c5c81 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,10 +1,4 @@ -FROM paddlepaddle/paddle:latest-dev-cuda11.2-cudnn8-gcc82 - -RUN wget https://paddle-qa.bj.bcebos.com/PaddleX2paddle/torch-1.7.0-cp37-cp37m-linux_x86_64.whl --no-proxy && \ - wget https://paddle-qa.bj.bcebos.com/PaddleX2paddle/torchvision-0.8.1-cp37-cp37m-linux_x86_64.whl --no-proxy && \ - wget https://paddle-wheel.bj.bcebos.com/2.4.2/linux/linux-gpu-cuda11.2-cudnn8-mkl-gcc8.2-avx/paddlepaddle_gpu-2.4.2.post112-cp37-cp37m-linux_x86_64.whl --no-proxy - -RUN python --version && unlink /usr/bin/python && ln -s /usr/bin/python3.7 /usr/bin/python +FROM paddlepaddle/paddle:latest-dev-cuda11.8-cudnn8.6-trt8.5-gcc82 ENV HTTP_PROXY ENV HTTPS_PROXY @@ -12,7 +6,9 @@ RUN export http_proxy=$HTTP_PROXY RUN export https_proxy=$HTTPS_PROXY RUN python -m pip install --upgrade pip && \ - python -m pip install wget timm transformers==3.1.0 ./*.whl pandas nose pytest opencv-python==4.6.0.66 allure-pytest && \ - python -m pip install pynvml psutil GPUtil sympy treelib tensorflow==1.14.0 onnx==1.10.0 onnxruntime==1.10.0 easyocr==1.2.1 && \ - python -m pip install torchmetrics==0.10.2 pytorch_lightning==1.5.3 kornia==0.5.11 hypothesis pre-commit==2.17.0 && \ + python -m pip install wget timm transformers pandas nose pytest opencv-python allure-pytest && \ + python -m pip install torch==2.4.1 torchvision torchaudio tensorflow==2.16.1 onnx==1.17.0 onnxruntime && \ + python -m pip install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/ && \ + python -m pip install pynvml psutil GPUtil sympy treelib easyocr && \ + python -m pip install torchmetrics pytorch_lightning kornia hypothesis pre-commit==2.17.0 && \ python -m pip install --upgrade virtualenv diff --git a/docker/run.sh b/docker/run.sh index 5a28f545a..a92548933 100755 --- a/docker/run.sh +++ b/docker/run.sh @@ -1,5 +1,5 @@ #生成镜像 -docker build --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy -t paddlepaddle/x2paddle:latest-dev-cuda11.2-cudnn8-gcc82 . +docker build --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy -t paddlepaddle/x2paddle:latest-dev-cuda11.8-cudnn8.6-trt8.5-gcc82 . #进入镜像 -nvidia-docker run -it --cpu-shares=20000 --name=user-x2paddle --rm -v /usr/bin/nvidia-smi:/usr/bin/nvidia-smi -v $(pwd):/workspace paddlepaddle/x2paddle:latest-dev-cuda11.2-cudnn8-gcc82 /bin/bash +nvidia-docker run -it --cpu-shares=20000 --name=user-x2paddle --rm -v /usr/bin/nvidia-smi:/usr/bin/nvidia-smi -v $(pwd):/workspace paddlepaddle/x2paddle:latest-dev-cuda11.8-cudnn8.6-trt8.5-gcc82 /bin/bash diff --git a/test_benchmark/Caffe/benchmark.sh b/test_benchmark/Caffe/benchmark.sh index 7f4753d82..c188b9ed0 100644 --- a/test_benchmark/Caffe/benchmark.sh +++ b/test_benchmark/Caffe/benchmark.sh @@ -4,17 +4,13 @@ find . -name "pd_model_static" | xargs rm -rf find . -name "pd_model_dygraph" | xargs rm -rf find . -name "run.log" | xargs rm -rf -num_of_models=$(ls -d */ | grep "[A-Z0-9]" | wc -l) -num_of_caffe_files=$(find . -name "*.caffemodel" | wc -l) - -if [ $num_of_caffe_files -ne $num_of_models ] -then - echo "[ERROR] num_of_caffe_files != num_of_models" - exit -1 -fi +# use black.list to control CI tests +filename="black.list" +models=$(ls -d */ | grep -v -F -f "$filename") +num_of_models=$(ls -d */ | grep -v -F -f "$filename" | wc -l) counter=1 -for model in $(ls -d */ | grep "[A-Z0-9]") +for model in $models do echo "[X2Paddle-Caffe] ${counter}/${num_of_models} $model ..." if [ $model != "FaceDetction/" -a $model != "SSD/" ] @@ -35,7 +31,7 @@ wait rm -rf result.txt touch result.txt -for model in $(ls -d */ | grep "[A-Z0-9]") +for model in $models do if [ $model != "FaceDetction/" -a $model != "SSD/" ] then diff --git a/test_benchmark/Caffe/black.list b/test_benchmark/Caffe/black.list new file mode 100644 index 000000000..ef57d06ec --- /dev/null +++ b/test_benchmark/Caffe/black.list @@ -0,0 +1,23 @@ +3class +AlexNet +FaceDetction +MNasNet +MTCNN1 +MTCNN2 +MTCNN3 +MobileNetV1 +MobileNetV2 +ResNet18 +ResNet50 +SSD +SegFlow +ShuffleNet +SqueezeNet +TSM +UNet +VGG16 +VGG19 +caffemodel1 +tools +output +dataset diff --git a/test_benchmark/Caffe/convert.sh b/test_benchmark/Caffe/convert.sh index afaf2c06f..190166823 100644 --- a/test_benchmark/Caffe/convert.sh +++ b/test_benchmark/Caffe/convert.sh @@ -8,17 +8,13 @@ find . -name "pd_model_static" | xargs rm -rf find . -name "pd_model_dygraph" | xargs rm -rf find . -name "run.log" | xargs rm -rf -num_of_models=$(ls -d */ | grep "[A-Z0-9]" | wc -l) -num_of_caffe_files=$(find . -name "*.caffemodel" | wc -l) - -if [ $num_of_caffe_files -ne $num_of_models ] -then - echo "[ERROR] num_of_caffe_files != num_of_models" - exit -1 -fi +# use black.list to control CI tests +filename="black.list" +models=$(ls -d */ | grep -v -F -f "$filename") +num_of_models=$(ls -d */ | grep -v -F -f "$filename" | wc -l) counter=1 -for model in $(ls -d */ | grep "[A-Z0-9]") +for model in $models do echo "[X2Paddle-Caffe] ${counter}/${num_of_models} $model ..." cd $model @@ -36,7 +32,7 @@ wait rm -rf result.txt touch result.txt -for model in $(ls -d */ | grep "[A-Z0-9]") +for model in $models do cat ${model}/result.txt >> ./result.txt done diff --git a/test_benchmark/ONNX/benchmark.sh b/test_benchmark/ONNX/benchmark.sh index b432b1d3a..e98c05c72 100644 --- a/test_benchmark/ONNX/benchmark.sh +++ b/test_benchmark/ONNX/benchmark.sh @@ -4,19 +4,13 @@ find . -name "pd_model_dygraph" | xargs rm -rf find . -name "run.log" | xargs rm -rf find . -name "run.err" | xargs rm -rf -num_of_models=$(ls -d */ | grep -v 'tools' | grep -v 'output' | wc -l) -num_of_onnx_files=$(find . -name "*.onnx" | wc -l) - -#if [ $num_of_onnx_files -ne $num_of_models ] -#then -# echo $num_of_onnx_files -# echo $num_of_models -# echo "[ERROR] num_of_onnx_files != num_of_models" -# exit -1 -#fi +# use black.list to control CI tests +filename="black.list" +models=$(ls -d */ | grep -v -F -f "$filename") +num_of_models=$(ls -d */ | grep -v -F -f "$filename" | wc -l) counter=1 -for model in $(ls -d */ | grep -v 'tools' | grep -v 'output') +for model in $models do echo "[X2Paddle-ONNX] ${counter}/${num_of_models} $model ..." cd $model @@ -34,7 +28,7 @@ wait rm -rf result.txt touch result.txt -for model in $(ls -d */ | grep -v 'tools' | grep -v 'output') +for model in $models do cat ${model}/result.txt >> ./result.txt done diff --git a/test_benchmark/ONNX/black.list b/test_benchmark/ONNX/black.list new file mode 100644 index 000000000..57e970b7a --- /dev/null +++ b/test_benchmark/ONNX/black.list @@ -0,0 +1,60 @@ +FaceNet +GPEN +IDG_detection_registration_p1 +IDG_detection_registration_p2 +IDG_keypoint_selection +IDG_local_vis +IDG_multi_modal_crop_cnn_model +IDG_multi_modal_fully_cnn_model +IDG_multi_modal_sequential_model +IDG_test_process +IDG_test_sim_feat_new +MLPerf_ResNet50 +Poselandmarks +Seg +SwinTransformer +VIT_online +alexnet +basnet +bert6 +best_float32 +cifarnet +circledet +crnn_lstm +densenet121 +efficientnet_b0 +face_cyclegan_34 +facedetector +hand_landmark_ar +inceptionv1 +inceptionv2 +mmdetection_fasterrcnn +mmdetection_fcos +mmdetection_fsaf +mmdetection_retina +mmdetection_ssd +mmdetection_yolov3 +mnasnet_a1 +mobilefacenet +mobilenet_v2 +modelGen +pnasnet_mobile +resnet101 +resnet152 +resnet18 +resnet34 +resnet50 +ronin_2d_cp9 +shufflenet +squeezenet +transformer +vgg11 +vgg11_bn +vgg16_bn +vgg19 +vgg19_bn +yolov5s +yolov5s_fix_resize +dataset +tools +output diff --git a/test_benchmark/ONNX/convert.sh b/test_benchmark/ONNX/convert.sh index 49474a4fa..8fc61701a 100644 --- a/test_benchmark/ONNX/convert.sh +++ b/test_benchmark/ONNX/convert.sh @@ -8,19 +8,13 @@ find . -name "pd_model_dygraph" | xargs rm -rf find . -name "run.log" | xargs rm -rf find . -name "run.err" | xargs rm -rf -num_of_models=$(ls -d */ | grep -v 'tools' | grep -v 'output' | wc -l) -num_of_onnx_files=$(find . -name "*.onnx" | wc -l) - -#if [ $num_of_onnx_files -ne $num_of_models ] -#then -# echo $num_of_onnx_files -# echo $num_of_models -# echo "[ERROR] num_of_onnx_files != num_of_models" -# exit -1 -#fi +# use black.list to control CI tests +filename="black.list" +models=$(ls -d */ | grep -v -F -f "$filename") +num_of_models=$(ls -d */ | grep -v -F -f "$filename" | wc -l) counter=1 -for model in $(ls -d */ | grep -v 'tools' | grep -v 'output') +for model in $models do echo "[X2Paddle-ONNX] ${counter}/${num_of_models} $model ..." cd $model @@ -38,7 +32,7 @@ wait rm -rf result.txt touch result.txt -for model in $(ls -d */ | grep -v 'tools' | grep -v 'output') +for model in $models do cat ${model}/result.txt >> ./result.txt done diff --git a/test_benchmark/PyTorch/benchmark.sh b/test_benchmark/PyTorch/benchmark.sh index 907867c90..697c1ff96 100644 --- a/test_benchmark/PyTorch/benchmark.sh +++ b/test_benchmark/PyTorch/benchmark.sh @@ -6,15 +6,10 @@ find . -name "pd_model_script" | xargs rm -rf find . -name "run.log" | xargs rm -rf find . -name "run.err" | xargs rm -rf -models=$(ls -d */ | grep -v 'tools' | grep -v 'output' | grep -v 'dataset' | grep -v 'MockingBird') -num_of_models=$(ls -d */ | grep -v 'tools' | grep -v 'output' | grep -v 'dataset' | grep -v 'MockingBird' | wc -l) -num_of_pb_files=`expr $(find . -name "convert.py" | wc -l) + $(find . -name "convert_trace.py" | grep -v 'MockingBird' | wc -l)` - -if [ $num_of_pb_files -ne $num_of_models ] -then - echo "[ERROR] num_of_pb_files != num_of_models" - exit -1 -fi +# use black.list to control CI tests +filename="black.list" +models=$(ls -d */ | grep -v -F -f "$filename") +num_of_models=$(ls -d */ | grep -v -F -f "$filename" | wc -l) counter=1 for model in $models diff --git a/test_benchmark/PyTorch/black.list b/test_benchmark/PyTorch/black.list new file mode 100644 index 000000000..fae6e32d4 --- /dev/null +++ b/test_benchmark/PyTorch/black.list @@ -0,0 +1,36 @@ +ACG_UnitTest +AlexNet +BASNet +BertForMaskedLM_dccuchile +BertModel_SpanBert +CamembertForQuestionAnswering +DBFace +DPRContextEncoder +DeepLabv3_ResNet50 +EDSR +EasyOCR_detector +EasyOCR_recognizer +ElectraModel +FCN_ResNet50 +FlaubertModel +GRU +InceptionV3 +MNasNet +MiniFasNet +MobileNetV2 +Mobilestereonet +MockingBird +ResNet18 +ResNet18_2 +Roberta +Saicinpainting_LaMa +ShuffleNetV2 +SqueezeNet +SwinTransformer +VGG16 +XLMRobertaForTokenClassification +mobilenetv3 +opadd +dataset +tools +output diff --git a/test_benchmark/PyTorch/convert.sh b/test_benchmark/PyTorch/convert.sh index bcaf6b5a8..0f8f67873 100644 --- a/test_benchmark/PyTorch/convert.sh +++ b/test_benchmark/PyTorch/convert.sh @@ -17,15 +17,10 @@ find . -name "pd_model_script" | xargs rm -rf find . -name "run.log" | xargs rm -rf find . -name "run.err" | xargs rm -rf -models=$(ls -d */ | grep -v 'tools' | grep -v 'output' | grep -v 'dataset' | grep -v 'MockingBird') -num_of_models=$(ls -d */ | grep -v 'tools' | grep -v 'output' | grep -v 'dataset' | grep -v 'MockingBird' | wc -l) -num_of_pb_files=`expr $(find . -name "convert.py" | wc -l) + $(find . -name "convert_trace.py" | grep -v 'MockingBird' | wc -l)` - -if [ $num_of_pb_files -ne $num_of_models ] -then - echo "[ERROR] num_of_pb_files != num_of_models" - exit -1 -fi +# use black.list to control CI tests +filename="black.list" +models=$(ls -d */ | grep -v -F -f "$filename") +num_of_models=$(ls -d */ | grep -v -F -f "$filename" | wc -l) counter=1 for model in $models diff --git a/test_benchmark/TensorFlow/benchmark.sh b/test_benchmark/TensorFlow/benchmark.sh index 31a1e363f..81e044c81 100644 --- a/test_benchmark/TensorFlow/benchmark.sh +++ b/test_benchmark/TensorFlow/benchmark.sh @@ -4,17 +4,13 @@ find . -name "pd_model_dygraph" | xargs rm -rf find . -name "run.log" | xargs rm -rf find . -name "run.err" | xargs rm -rf -num_of_models=$(ls -d */ | grep -v 'tools' | grep -v 'output' | wc -l) -num_of_pb_files=$(find . -name "*.pb" | wc -l) - -if [ $num_of_pb_files -ne $num_of_models ] -then - echo "[ERROR] num_of_pb_files != num_of_models" - exit -1 -fi +# use black.list to control CI tests +filename="black.list" +models=$(ls -d */ | grep -v -F -f "$filename") +num_of_models=$(ls -d */ | grep -v -F -f "$filename" | wc -l) counter=1 -for model in $(ls -d */ | grep -v 'tools' | grep -v 'output') +for model in $models do echo "[X2Paddle-TensorFlow] ${counter}/${num_of_models} $model ..." cd $model @@ -32,7 +28,7 @@ wait rm -rf result.txt touch result.txt -for model in $(ls -d */ | grep -v 'tools' | grep -v 'output') +for model in $models do cat ${model}/result.txt >> ./result.txt done diff --git a/test_benchmark/TensorFlow/black.list b/test_benchmark/TensorFlow/black.list new file mode 100644 index 000000000..864d7776d --- /dev/null +++ b/test_benchmark/TensorFlow/black.list @@ -0,0 +1,31 @@ +AlBert +EfficientNet +InceptionResNetV2 +InceptionV3 +InceptionV4 +KerasBert +MNASNetA1 +MTCNN-ONet +MTCNN-PNet +MTCNN-RNet +MobileNetV1 +MobileNetV2 +MobileNetV3_large +ResNetV1 +ResNetV2 +RetinaFace +ShuffleNet +SqueezeNet +ToyUNet-ToyUnet +ToyUNet-UNet +UNet-GanUNet +UNet-UNet +VGG16 +YOLOv3 +YOLOv3_darknet +frozen +frozen_MobileNetV1 +pix2pix +dataset +tools +output diff --git a/test_benchmark/TensorFlow/convert.sh b/test_benchmark/TensorFlow/convert.sh index c6a57e10e..2259fce14 100644 --- a/test_benchmark/TensorFlow/convert.sh +++ b/test_benchmark/TensorFlow/convert.sh @@ -8,15 +8,10 @@ find . -name "pd_model_dygraph" | xargs rm -rf find . -name "run.log" | xargs rm -rf find . -name "run.err" | xargs rm -rf -models=$(ls -d */ | grep -v 'tools' | grep -v 'output' | grep -v 'dataset' | grep -v 'KerasBert') -num_of_models=$(ls -d */ | grep -v 'tools' | grep -v 'output' | grep -v 'dataset' | grep -v 'KerasBert' | wc -l) -num_of_pb_files=$(find . -name "*.pb" | wc -l) - -#if [ $num_of_pb_files -ne $num_of_models ] -#then -# echo "[ERROR] num_of_pb_files != num_of_models" -# exit -1 -#fi +# use black.list to control CI tests +filename="black.list" +models=$(ls -d */ | grep -v -F -f "$filename") +num_of_models=$(ls -d */ | grep -v -F -f "$filename" | wc -l) counter=1 for model in $models From 87d15872f44a184a5af18cdffcd4b911386fb65a Mon Sep 17 00:00:00 2001 From: megemini Date: Fri, 11 Oct 2024 12:24:28 +0800 Subject: [PATCH 2/6] [Update] dockerfile of protobuf version --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index c9a1c5c81..220f314f7 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -10,5 +10,5 @@ RUN python -m pip install --upgrade pip && \ python -m pip install torch==2.4.1 torchvision torchaudio tensorflow==2.16.1 onnx==1.17.0 onnxruntime && \ python -m pip install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/ && \ python -m pip install pynvml psutil GPUtil sympy treelib easyocr && \ - python -m pip install torchmetrics pytorch_lightning kornia hypothesis pre-commit==2.17.0 && \ + python -m pip install torchmetrics pytorch_lightning kornia hypothesis pre-commit==2.17.0 protobuf==3.20.2 && \ python -m pip install --upgrade virtualenv From 71376b7a6991d22a573c6673385eabb1975b1e24 Mon Sep 17 00:00:00 2001 From: megemini Date: Sun, 13 Oct 2024 19:53:42 +0800 Subject: [PATCH 3/6] [Update] easyocr version --- docker/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 220f314f7..8910261df 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -6,9 +6,9 @@ RUN export http_proxy=$HTTP_PROXY RUN export https_proxy=$HTTPS_PROXY RUN python -m pip install --upgrade pip && \ - python -m pip install wget timm transformers pandas nose pytest opencv-python allure-pytest && \ + python -m pip install wget timm transformers pandas nose pytest opencv-python==4.6.0.66 allure-pytest && \ python -m pip install torch==2.4.1 torchvision torchaudio tensorflow==2.16.1 onnx==1.17.0 onnxruntime && \ python -m pip install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/ && \ - python -m pip install pynvml psutil GPUtil sympy treelib easyocr && \ - python -m pip install torchmetrics pytorch_lightning kornia hypothesis pre-commit==2.17.0 protobuf==3.20.2 && \ + python -m pip install pynvml psutil GPUtil sympy treelib easyocr==1.2.1 && \ + python -m pip install torchmetrics pytorch_lightning kornia==0.5.11 hypothesis pre-commit==2.17.0 protobuf==3.20.2 && \ python -m pip install --upgrade virtualenv From 1aeed0df424e5976ba1675ead4499461c66426bf Mon Sep 17 00:00:00 2001 From: megemini Date: Sun, 13 Oct 2024 20:06:22 +0800 Subject: [PATCH 4/6] [Update] easyocr version --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 8910261df..78baff7b9 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -9,6 +9,6 @@ RUN python -m pip install --upgrade pip && \ python -m pip install wget timm transformers pandas nose pytest opencv-python==4.6.0.66 allure-pytest && \ python -m pip install torch==2.4.1 torchvision torchaudio tensorflow==2.16.1 onnx==1.17.0 onnxruntime && \ python -m pip install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/ && \ - python -m pip install pynvml psutil GPUtil sympy treelib easyocr==1.2.1 && \ + python -m pip install pynvml psutil GPUtil sympy treelib easyocr && \ python -m pip install torchmetrics pytorch_lightning kornia==0.5.11 hypothesis pre-commit==2.17.0 protobuf==3.20.2 && \ python -m pip install --upgrade virtualenv From 7ee86f7b8bae1077ddcf57e39f115a533bf1cfd4 Mon Sep 17 00:00:00 2001 From: megemini Date: Wed, 16 Oct 2024 22:45:30 +0800 Subject: [PATCH 5/6] [Fix] docker cuda version --- docker/Dockerfile | 2 +- docker/run.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 78baff7b9..84e70cfd1 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM paddlepaddle/paddle:latest-dev-cuda11.8-cudnn8.6-trt8.5-gcc82 +FROM paddlepaddle/paddle:latest-dev-cuda11.2-cudnn8.2-trt8.0-gcc82 ENV HTTP_PROXY ENV HTTPS_PROXY diff --git a/docker/run.sh b/docker/run.sh index a92548933..a047dbfe7 100755 --- a/docker/run.sh +++ b/docker/run.sh @@ -1,5 +1,5 @@ #生成镜像 -docker build --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy -t paddlepaddle/x2paddle:latest-dev-cuda11.8-cudnn8.6-trt8.5-gcc82 . +docker build --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy -t paddlepaddle/x2paddle:latest-dev-cuda11.2-cudnn8.2-trt8.0-gcc82 . #进入镜像 -nvidia-docker run -it --cpu-shares=20000 --name=user-x2paddle --rm -v /usr/bin/nvidia-smi:/usr/bin/nvidia-smi -v $(pwd):/workspace paddlepaddle/x2paddle:latest-dev-cuda11.8-cudnn8.6-trt8.5-gcc82 /bin/bash +nvidia-docker run -it --cpu-shares=20000 --name=user-x2paddle --rm -v /usr/bin/nvidia-smi:/usr/bin/nvidia-smi -v $(pwd):/workspace paddlepaddle/x2paddle:latest-dev-cuda11.2-cudnn8.2-trt8.0-gcc82 /bin/bash From 01eb968829a652e9847e842b467c6bd3f52e258e Mon Sep 17 00:00:00 2001 From: megemini Date: Thu, 17 Oct 2024 11:20:45 +0800 Subject: [PATCH 6/6] Revert "[Fix] docker cuda version" This reverts commit 7ee86f7b8bae1077ddcf57e39f115a533bf1cfd4. --- docker/Dockerfile | 2 +- docker/run.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 84e70cfd1..78baff7b9 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM paddlepaddle/paddle:latest-dev-cuda11.2-cudnn8.2-trt8.0-gcc82 +FROM paddlepaddle/paddle:latest-dev-cuda11.8-cudnn8.6-trt8.5-gcc82 ENV HTTP_PROXY ENV HTTPS_PROXY diff --git a/docker/run.sh b/docker/run.sh index a047dbfe7..a92548933 100755 --- a/docker/run.sh +++ b/docker/run.sh @@ -1,5 +1,5 @@ #生成镜像 -docker build --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy -t paddlepaddle/x2paddle:latest-dev-cuda11.2-cudnn8.2-trt8.0-gcc82 . +docker build --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy -t paddlepaddle/x2paddle:latest-dev-cuda11.8-cudnn8.6-trt8.5-gcc82 . #进入镜像 -nvidia-docker run -it --cpu-shares=20000 --name=user-x2paddle --rm -v /usr/bin/nvidia-smi:/usr/bin/nvidia-smi -v $(pwd):/workspace paddlepaddle/x2paddle:latest-dev-cuda11.2-cudnn8.2-trt8.0-gcc82 /bin/bash +nvidia-docker run -it --cpu-shares=20000 --name=user-x2paddle --rm -v /usr/bin/nvidia-smi:/usr/bin/nvidia-smi -v $(pwd):/workspace paddlepaddle/x2paddle:latest-dev-cuda11.8-cudnn8.6-trt8.5-gcc82 /bin/bash