exBERT at Github์คํ๋ก๊ทธ๋ค์ด๋ก๋ & ์ปค๋งจ๋ ์คํ์ด์1. ํจํค์ง ์ค์น ์๋์ด์์์ด์2. Github์ ์ปค๋งจ๋๋ ์ํฐ \ ๊ฐ ์์..์ด์3. path_to_config_file_of_the_OFF_THE_SHELF_MODEL ์์
exBERT at Github
- ์คํ๋ ๊ฒจ์ฐ 9๊ฐ..
- issue ์ฌ๋ผ์จ๊ฑฐ ์ฒ๋ฆฌ ์ํด์ค. (1๋ฌ ์ ์ ์ฌ๋ผ์จ๊ฑด๋ฐ.)
์คํ๋ก๊ทธ
๋ค์ด๋ก๋ & ์ปค๋งจ๋ ์คํ
git clone https://github.com/cgmhaicenter/exBERT
์ด์1. ํจํค์ง ์ค์น ์๋์ด์์
pip install torch transformers tqdm numpy
์ด์2. Github์ ์ปค๋งจ๋๋ ์ํฐ \ ๊ฐ ์์..
python Pretraining.py -e 1 -b 256 -sp path_to_storage -dv 0 1 2 3 -lr 1e-04 -str exBERT -config path_to_config_file_of_the_OFF_THE_SHELF_MODEL ./config_and_vocab/exBERT/bert_config_ex_s3.json -vocab ./config_and_vocab/exBERT/exBERT_vocab.txt -pm_p path_to_state_dict_of_the_OFF_THE_SHELF_MODEL -dp path_to_your_training_data -ls 128 -p 1
์ด์3. path_to_config_file_of_the_OFF_THE_SHELF_MODEL
์์
์๋์ ๊ฐ์ด ๊ธฐ์กด ๋ชจ๋ธ์ธ
beomi/kcbert-base
๋ก ๊ต์ฒดํด์ฃผ๋ ค๊ณ ํจ.python Pretraining.py -e 1 \ -b 256 \ -sp path_to_storage \ -dv 0 1 2 3 -lr 1e-04 \ -str exBERT \ -config beomi/kcbert-base ./config_and_vocab/exBERT/bert_config_ex_s3.json \ -vocab ./config_and_vocab/exBERT/exBERT_vocab.txt \ -pm_p beomi/kcbert-base \ -dp path_to_your_training_data \ -ls 128 \ -p 1
ย