Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: edit making tokenizers #50

Merged
merged 1 commit into from
Mar 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion baseline1/run_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@
)
from colorama import Fore, Style

# load_tokenizer(MAKE_TOKENIZER)
# To make tokenizer in new environment, please operate the code below (3 line)
'''
from medal_contender.tokenizer import load_tokenizer
from medal_contender.configs import MAKE_TOKENIZER
load_tokenizer(MAKE_TOKENIZER)
'''

from transformers.models.deberta_v2 import DebertaV2TokenizerFast

red_font = Fore.RED
Expand All @@ -36,6 +42,9 @@
# CUDA가 구체적인 에러를 보고하도록 설정
os.environ['CUDA_LAUNCH_BLOCKING'] = "1"

# Tokenizer parallelism을 사용하도록 환경 설정
os.environ["TOKENIZERS_PARALLELISM"] = "true"


def run_training(
model,
Expand Down