File tree Expand file tree Collapse file tree
PyTorch/LanguageModeling/BERT Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ RUN apt-get install -y iputils-ping
2828COPY . .
2929
3030# Install lddl
31- RUN conda install -y jemalloc
31+ RUN apt-get install -y libjemalloc-dev
3232RUN pip install git+https://github.com/NVIDIA/lddl.git
3333RUN python -m nltk.downloader punkt
3434
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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} \
You can’t perform that action at this time.
0 commit comments