Skip to content

Commit dd08c7a

Browse files
chore: Update Python and pyarrow to address CVEs (#15877) (#15885)
* Bump to Python 3.13.14 * Update pyarrow to 23.0.1 * Update uv lock file * Remove --no-check-cerificate in scripts --------- Signed-off-by: Charlie Truong <chtruong@nvidia.com> Signed-off-by: NeMo Bot <nemo-bot@nvidia.com> Co-authored-by: Charlie Truong <chtruong@nvidia.com>
1 parent 2ad57be commit dd08c7a

5 files changed

Lines changed: 60 additions & 44 deletions

File tree

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
ARG BASE_IMAGE=nvcr.io/nvidia/cuda-dl-base:26.04-cuda13.2-devel-ubuntu24.04
4343
FROM ${BASE_IMAGE} AS base-image
4444
ARG BASE_IMAGE
45-
ARG UV_VERSION=0.11.14
45+
ARG UV_VERSION=0.11.27
4646

4747
ENV DEBIAN_FRONTEND=noninteractive
4848
ENV TRANSFORMERS_OFFLINE=0

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,8 @@ override-dependencies = [
446446
"opencv-python-headless; sys_platform == 'never'",
447447
"lxml>=6.1.0",
448448
"gitpython>=3.1.50",
449-
"mako>=1.3.12"
449+
"mako>=1.3.12",
450+
"pyarrow>=23.0.1"
450451
]
451452
no-binary-package = [
452453
"causal-conv1d",

scripts/asr_language_modeling/ngram_lm/install_beamsearch_decoders.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fi
4141
aptupdate && apt-get upgrade -y && apt-get install -y swig liblzma-dev && rm -rf /var/lib/apt/lists/* # liblzma needed for flashlight decoder
4242

4343
# install Boost package for KenLM
44-
wget https://archives.boost.io/release/1.80.0/source/boost_1_80_0.tar.bz2 --no-check-certificate && tar --bzip2 -xf $NEMO_PATH/boost_1_80_0.tar.bz2 && cd boost_1_80_0 && ./bootstrap.sh && b2install --layout=tagged link=static,shared threading=multi,single install -j4 && cd .. || echo FAILURE
44+
wget https://archives.boost.io/release/1.80.0/source/boost_1_80_0.tar.bz2 && tar --bzip2 -xf $NEMO_PATH/boost_1_80_0.tar.bz2 && cd boost_1_80_0 && ./bootstrap.sh && b2install --layout=tagged link=static,shared threading=multi,single install -j4 && cd .. || echo FAILURE
4545
export BOOST_ROOT=$NEMO_PATH/boost_1_80_0
4646

4747
git clone https://github.com/NVIDIA/OpenSeq2Seq

scripts/installers/install_opengrm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fi
2626
cd $DECODERS_PATH
2727

2828
# Install OpenGrm OpenFST
29-
wget https://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.8.2.tar.gz --no-check-certificate && tar xvzf openfst-1.8.2.tar.gz && cd openfst-1.8.2 && ./configure --enable-grm && make -j4 && make -j4 install && cd ..
29+
wget https://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.8.2.tar.gz && tar xvzf openfst-1.8.2.tar.gz && cd openfst-1.8.2 && ./configure --enable-grm && make -j4 && make -j4 install && cd ..
3030

3131
# Install OpenGrm Ngram
32-
OPENFSTPREFIX=$DECODERS_PATH/openfst-1.8.2/src && wget https://www.opengrm.org/twiki/pub/GRM/NGramDownload/ngram-1.3.14.tar.gz --no-check-certificate && tar xvzf ngram-1.3.14.tar.gz && cd ngram-1.3.14 && LDFLAGS="-L${OPENFSTPREFIX}/lib" CXXFLAGS="-I${OPENFSTPREFIX}/include" ./configure --prefix ${OPENFSTPREFIX} && make -j4 && make -j4 install && cd ..
32+
OPENFSTPREFIX=$DECODERS_PATH/openfst-1.8.2/src && wget https://www.opengrm.org/twiki/pub/GRM/NGramDownload/ngram-1.3.14.tar.gz && tar xvzf ngram-1.3.14.tar.gz && cd ngram-1.3.14 && LDFLAGS="-L${OPENFSTPREFIX}/lib" CXXFLAGS="-I${OPENFSTPREFIX}/include" ./configure --prefix ${OPENFSTPREFIX} && make -j4 && make -j4 install && cd ..

0 commit comments

Comments
 (0)