Skip to content

Commit 448be1b

Browse files
jojenninnv-kkudrynski
authored andcommitted
[Bert/PyT] Replace conda install of jemalloc with apt package manager
1 parent 9878fb8 commit 448be1b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

PyTorch/LanguageModeling/BERT/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RUN apt-get install -y iputils-ping
2828
COPY . .
2929

3030
# Install lddl
31-
RUN conda install -y jemalloc
31+
RUN apt-get install -y libjemalloc-dev
3232
RUN pip install git+https://github.com/NVIDIA/lddl.git
3333
RUN python -m nltk.downloader punkt
3434

PyTorch/LanguageModeling/BERT/run.sub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ if [ ! -d "${host_pretrain_parquet}" ] || [ -z "$(ls -A "${host_pretrain_parquet
241241
fi
242242
# Should we use jemalloc for the LDDL preprocessor?
243243
if [ "${USE_JEMALLOC}" == "true" ]; then
244-
readonly use_jemalloc_flag="--export=ALL,LD_PRELOAD=/opt/conda/lib/libjemalloc.so"
244+
readonly use_jemalloc_flag="--export=ALL,LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so"
245245
elif [ "${USE_JEMALLOC}" == "false" ]; then
246246
readonly use_jemalloc_flag=""
247247
else

PyTorch/LanguageModeling/BERT/scripts/run_pretraining.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ if [ ! -d "${DATA_DIR_PHASE1}" ] || [ -z "$(ls -A ${DATA_DIR_PHASE1})" ]; then
9090
--oversubscribe \
9191
--allow-run-as-root \
9292
-np ${num_dask_workers} \
93-
-x LD_PRELOAD=/opt/conda/lib/libjemalloc.so \
93+
-x LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so \
9494
preprocess_bert_pretrain \
9595
--schedule mpi \
9696
--vocab-file ${VOCAB_FILE} \
@@ -255,7 +255,7 @@ if [ ! -d "${DATA_DIR_PHASE2}" ] || [ -z "$(ls -A ${DATA_DIR_PHASE2})" ]; then
255255
--oversubscribe \
256256
--allow-run-as-root \
257257
-np ${num_dask_workers} \
258-
-x LD_PRELOAD=/opt/conda/lib/libjemalloc.so \
258+
-x LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so \
259259
preprocess_bert_pretrain \
260260
--schedule mpi \
261261
--vocab-file ${VOCAB_FILE} \

0 commit comments

Comments
 (0)