apt-get install git git-lfs
git clone https://huggingface.co/kisti/korscideberta; cd korscideberta; unzip korscideberta.zip -d korscideberta
''''''
cd korscideberta/experiments/glue; chmod 777 *.sh;
./mnli.sh
pip를 이용한 KorSciDeBERTa 설치
위 코드는 사용 위치 폴더에 두고 import해서 써야해서 불편할 수 있습니다.
그래서, pip 명령으로 가상 환경(콘다 환경)에 설치할 수 있도록 pyproject.toml을 기술하였고,
tokenization.py에서 normalize.py와 unicode.py를 import할 때, "korscideberta."을 추가하여,
korscideberta 패키지를 import하여 쓸 수 있습니다.
./ 위치에서 다음과 같이 실행하면, 현재 콘다 환경에 korscideberta 라는 이름으로 설치됩니다.
pyproject.toml에 dependencies를 기술하여 필요한 패키지(버전)(eg. sentencepiece, mecab, konlpy)을 확인하고 같이 설치합니다.
$ pip install .
본 언어모델의 성능평가는 논문 연구분야 분류 데이터에 파인튜닝하여 평가하는 방식을 사용하였으며, 그 결과는 아래와 같습니다.
논문 연구분야 분류 데이터셋(doi.org/10.23057/50), 논문 3만 건, 분류 카테고리 수 - 대분류: 33개, 중분류: 372개, 소분류: 2898개
Metrics
F1-micro/macro: 정답 Top3 중 최소 1개 예측시 성공 기준
F1-strict: 정답 Top3 중 예측한 수 만큼 성공 기준
Results
F1-micro: 0.85, F1-macro: 0.52, F1-strict: 0.71
Technical Specifications
Model Objective
MLM is a technique in which you take your tokenized sample and replace some of the tokens with the < mask > token and train your model with it. The model then tries to predict what should come in the place of that < mask > token and gradually starts learning about the data. MLM teaches the model about the relationship between words.
Eg. Suppose you have a sentence - 'Deep Learning is so cool! I love neural networks.', now replace few words with the < mask > token.
Masked Sentence - 'Deep Learning is so < mask >! I love < mask > networks.'
Compute Infrastructure
KISTI 국가슈퍼컴퓨팅센터 NEURON 시스템. HPE ClusterStor E1000, HP Apollo 6500 Gen10 Plus, Lustre, Slurm, CentOS 7.9
Hardware
NVIDIA A100 80G GPU 24EA
Software
Python 3.8, Cuda 10.2, PyTorch 1.10
Citation
한국과학기술정보연구원 (2023) : 한국어 과학기술분야 DeBERTa 사전학습 모델 (KorSciDeBERTa). Version 1.0. 한국과학기술정보연구원.