반응형
랭체인 실습하는데 자꾸 The kernel appears to have died. It will restart automatically 메시지가 뜨면서 커널 재시작 하고, 안넘어가는거다,, 같은 부분에서!!
짜증나서 찾아본 오류 해결방법
윈도우 기준입니다~~
https://min23th.tistory.com/11
요 블로그 글에서 원인 및 문제해결을 파악했다.
우선 주어진 메모리 할당량을 초과하여 발생하는 문제로
1. 메모리 할당량을 늘리기
2. 메모리 잡아먹는 코드를 수정하기
이렇게 두 가지로 해결할 수 있는데, 1번으로 해결해줬다.
.해결하기
1) C:\Users\사용자명\.jupyter 에서 jupyter_lab_config.py, jupyter_notebook_config.py 찾아주기
1-1) 만약 폴더 내에 저 환경설정 파일이 없다면?
환경 설정 단계를 안한 것으로, 설정 파일부터 만들어줘야한다.
jupyter lab --generate-config
jupyter notebook --generate-config
2) 위 설정파일에서 max_buffer_size 늘리기
기본 디폴트로 되어있는것에서 주석 지우고 왕창 늘려주면
문제해결 ~
반응형