update paddle

This commit is contained in:
xingjun.wxj
2025-04-14 01:27:32 +08:00
parent ee5ecf46d8
commit fd0db221c0
2 changed files with 13 additions and 2 deletions

View File

@@ -22,3 +22,14 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y --reinstall ca-ce
dpkg-reconfigure --frontend noninteractive tzdata && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV PATH /usr/bin:$PATH
ENV GPG_KEY A035C8C19219BA821ECEA86B64E628F8D684696D
RUN set -eux; \
for src in idle3 pydoc3 python3 python3-config; do \
dst="$(echo "$src" | tr -d 3)"; \
[ -s "/usr/bin/$src" ]; \
[ ! -e "/usr/bin/$dst" ]; \
ln -svT "$src" "/usr/bin/$dst"; \
done

View File

@@ -455,7 +455,7 @@ class PaddleGPUImageBuilder(Builder):
def __init__(self, args: Any, dry_run: bool):
super().__init__(args, dry_run)
self.args.paddle_version = '3.0.0'
self.args.python_tag = 'py310'
self.args.python_tag = 'py310' # 3.10.16
self.args.ubuntu_version = '20.04'
# self.args.modelscope_version = '1.24.0'
self.args.cuda_tag = '12.3'
@@ -473,7 +473,7 @@ class PaddleGPUImageBuilder(Builder):
# TODO: self.args.paddle_version
# TODO: ubuntu version: 20.04
# TODO: python 3.10.13
# TODO: python 3.10.16
def image(self) -> str:
return (
f'{docker_registry}:ubuntu{self.args.ubuntu_version}-cuda{self.args.cuda_tag}-trt{self.args.trt_tag}-'