전체 글 (130) 썸네일형 리스트형 [오류 해결] Python에서 ModuleNotFoundError 발생: 파일 이름과 패키지 이름이 충돌할 때 / 파일 이름 바꾸기 Python에서 ModuleNotFoundError 발생: 파일 이름과 패키지 이름이 충돌할 때 Python을 사용하다 보면 패키지를 정상적으로 설치했는데도 불구하고 ModuleNotFoundError가 발생하는 경우가 있습니다. 그 중 하나는 내가 만든 파일 이름이 설치한 패키지와 동일할 때 발생하는 문제입니다.예를 들어, 다음과 같은 오류를 만난 적이 있습니다. ModuleNotFoundError: No module named 'mypackage.graph'; 'mypackage' is not a package 처음에는 패키지 설치 문제인가 싶었지만, 원인은 단순했습니다. 프로젝트 루트 디렉토리에 mypackage.py라는 파일이 있었고, 이 파일이 실제 설치된 패키지보다 우선적으로 import 대상.. [에러 해결] ValueError: Function must have a docstring if description not provided / LangGraph tool 주석 추가하기 ValueError: Function must have a docstring if description not provided. ValueError: Function must have a docstring if description not provided.langchain_core/tools/structured.py", line 219, in from_function raise ValueError(msg)ValueError: Function must have a docstring if description not provided. LangChain framework를 쓰다가 ValueError가 났다. ValueError 설명은 Function이 docstring이 있어야 한다고 하는 것이다. (.. [오류 해결] ValueError: Unrecognized configuration class AutoModelForCausalLM / LlavaForConditionalGeneration 오류: ValueError: Unrecognized configuration class 클래스 못 찾는 에러 ValueError: Unrecognized configuration class for this kind of AutoModel: AutoModelForCausalLM. llavamodel을 hugginface pipeline으로 불러오려고 했는데 AutomodelforcausalLM에서 오류가 났다. Auto model에 정의된 class에 존재하지 않기 때문 (저 리스트에서 LlavaConfig)가 없다 해결: LlavaForConditionalGeneration 로 불러오면 된다 model = LlavaForConditionalGeneration.from_pretraine.. 이전 1 ··· 3 4 5 6 7 8 9 ··· 44 다음