Software Workshop

딥러닝 예제를 실행시키다보면 이런 에러가 종종 발생한다.

OSError: Helsinki-NLP/opus-mt-en-ko is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo either by logging in with 'huggingface-cli login` or by passing `token=<your_token>'

이것은 일반적으로 사용하려는 모델이 huggingface 사이트에 존재하지 않기 때문에 발생하는 것이며, huggingface 사이트의 검색창에서 모델명 키워드를 입력하면 자동완성으로 비슷한 모델을 추천해준다.

번역 모델에 한정해서 이야기하자면, Helsinki-NLP/opus-mt 모델에는 영어를 한국어로 번역해주는 학습된 데이터(체크포인트라고 부르기도 함)가 없기 때문에 다른 학습 데이터를 찾거나 아니면 아예 다른 모델로 접근해야 한다.