Transformer Error - Internet connection
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)