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

huggingface에서의 use와 github repo 사용법 차이에 대해서 #6

Open
saekomdalkom opened this issue Aug 19, 2021 · 0 comments

Comments

@saekomdalkom
Copy link

안녕하세요 자연어처리를 공부 중인 초보 학생입니다.
huggingface에 monologg님의 kobert가 등록되어 있어서 사용하려고 보니
huggingface에는 다음과 같이 사용법이 등록되어 있네요.

from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("monologg/kobert")
model = AutoModel.from_pretrained("monologg/kobert")

그런데 여기 repo에는 아래와 같이 사용법이 등록되어 있는데,

from transformers import BertModel
from tokenization_kobert import KoBertTokenizer
tokenizer = KoBertTokenizer.from_pretrained('monologg/kobert')
bert_model = BertModel.from_pretrained('monologg/kobert')

huggingface 말고 repo를 따라야 하나요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant