![Transformer Error - Internet connection](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FEXDGm%2FbtsFjVdwLdj%2F3kzbkR0b8ZolSnB5rSjEV1%2Fimg.png)
Trasformer를 사용 중에 마주한 뜬금 없는 Internet connection 오류
"Connection error, and we cannot find the requested files in the cached path." ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on.
다음 Github 답변을 통해 해결하였다.
https://github.com/huggingface/transformers/issues/10067
"Connection error, and we cannot find the requested files in the cached path." ValueError: Connection error, and we cannot find
I am trying to execute this command after installing all the required modules and I ran into this error: NOTE : We are running this on HPC cluster. python -c "from transformers import pipeline; pri...
github.com
다음 부분 처럼 .from_pretrained() 함수 사용 시, local_files_only=True 옵션을 넣어주면 문제가 해결된다.
from transformers import pipeline, AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("distilbert-base-uncased-finetuned-sst-2-english", local_files_only=True)
'Errors' 카테고리의 다른 글
UnicodeDecodeError 'utf-8' (0) | 2024.07.07 |
---|---|
git-lfs 설치 Error (0) | 2024.02.18 |