목록기타/환경 & 라이브러리 (vscode, Conda, import) (5)
토니의 연습장

기존 사용법이 위와 같은데, 아래와 같이 나오지 않을때 pip show langchain 와 pip install --upgrade langchain 로 최신 버전 확인 후에,특정 버전 이상부터 기존의 많은 클래스들이 다른 서브 패키지로 이동되었을 수 있으므로해당 라이브러리 웹사이트에서 확인확인 결과 서브 패키지 이동되어 아래와 같이 사용으로 변경 ex) 아래와 같은 경우도 마찬가지
(rag) (rag) joseph@joseph:~/study/rag_ref/langchain-kr/16-Evaluations$ pip install --upgrade --force-reinstall --no-deps typing-extensions==4.12.2Collecting typing-extensions==4.12.2 Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)Installing collected packages: typing-extensions Attempting uninstall: typing-e..
1. CLIP 필요 패키지 확인 (https://github.com/openai/CLIP/blob/main/requirements.txt)requirements.txt 파일 위치시키기ftfypackagingregextqdmtorchtorchvision 2. taming-transformers 필요 패키지 확인 (https://github.com/CompVis/taming-transformers/blob/master/environment.yaml)envrionment.yaml 파일 위치시키기name: tamingchannels: - pytorch - defaultsdependencies: - python=3.8.5 - pip=20.3 - cudatoolkit=10.2 - pytorch=1.7.0 - tor..

로컬에서 환경 구성해서 모델 다운로드 및 파인튜닝 하고자 할 때,python 및 pytorch, CUDA, CUDA Toolkit 등 버전 매칭 관련하여vscode에서 conda 환경의 Python Environments.. 를 Python Interpreter.. 각각에 대해서 확인이 필요합니다. 예시 :%%capture# Installs Unsloth, Xformers (Flash Attention) and all other packages!!pip install "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git"!pip install --no-deps "xformersfrom unsloth import FastLanguageMod..
[ General1 ]pip install 로 해결되지 않으면,해당 conda 환경에서 pip가 아닌 conda로 설치된 패키지로 문제되는 경우가 있으므로conda install 해당 패키지를 실행 후 vscode 재시작 [ General2 ]1. conda activate multimodal 재실행2. pip show wandb | grep Location 실행하여 terminal 상 conda 환경에 module 못 찾는다고 warning 나오는지 확인3. pip install wandb 재실행하여 설치 [ pip ]# !pip install langchain-openaifrom langchain_openai import ChatOpenAIfrom langchain_core.prompts import..