Skip to content

Commit 5eed6b5

Browse files
author
sungjin.712
committed
update
1 parent ca6957d commit 5eed6b5

File tree

4 files changed

+29
-5
lines changed

4 files changed

+29
-5
lines changed

Dockerfile_gpu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ RUN pip install konlpy cmake
2828

2929
# RUN pip install gensim soynlp soyspacing bokeh networkx selenium lxml pyldavis sentencepiece
3030

31-
COPY requirements.txt .
32-
RUN pip install -r requirements.txt
33-
RUN rm requirements.txt
31+
COPY requirements_gpu.txt .
32+
RUN pip install -r requirements_gpu.txt
33+
RUN rm requirements_gpu.txt
3434
RUN pip install setGPU
3535
# RUN pip install numpy jupyter pandas html5lib seaborn matplotlib nltk tqdm transformers mxnet gluonnlp sklearn wordcloud
3636
RUN python -c 'import nltk; nltk.download("punkt"); nltk.download("stopwords")'

exec_jupyter_for_gpu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
sudo docker run -it --rm -p 8889:8889 --gpus=all --memory=4g --memory-swap=8g\
1+
sudo docker run -it --rm -p 8889:8889 --gpus=all --memory=12g --memory-swap=24g\
22
--mount type=bind,destination=/workspace/practice,source=`pwd`\
33
tf2_practice_gpu

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ gensim
1717
xgboost
1818
wget==3.2
1919
tokenizers==0.8.1.rc1
20-
tensorflow==2.0.3
20+
tensorflow==2.2.0
2121
h5py<3.0.0 # to avoid issue https://github.com/keras-team/keras/issues/14265
2222
konlpy
2323
beautifulsoup4

requirements_gpu.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
numpy<=1.16.2 # to avoid issue https://stackoverflow.com/questions/55890813/how-to-fix-object-arrays-cannot-be-loaded-when-allow-pickle-false-for-imdb-loa
2+
jupyter
3+
pandas
4+
html5lib
5+
seaborn
6+
matplotlib<3.3 # to avoid MatplotlibDeprecationWarning
7+
nltk==3.3
8+
tqdm
9+
seqeval
10+
transformers==3.0.2
11+
sentencepiece==0.1.85
12+
mxnet==1.6.0
13+
gluonnlp==0.9.1
14+
scikit-learn>=0.19.1 # package name registered in PyPI.org
15+
wordcloud
16+
gensim
17+
xgboost
18+
wget==3.2
19+
tokenizers==0.8.1.rc1
20+
tensorflow-gpu==2.0.3
21+
h5py<3.0.0 # to avoid issue https://github.com/keras-team/keras/issues/14265
22+
konlpy
23+
beautifulsoup4
24+
kaggle

0 commit comments

Comments
 (0)