728x90 개발관련17 [QLoRA 수행 시 에러] undefined symbol: cquantize_blockwise_fp16_nf4 해당 에러는 cuda 버전을 잘 설정해주면 된다. 아래와 같이 탐지된 cuda 버전을 확인한 다음, AttributeError 다음에 나와있는 bitsandbytes가 있는 경로로 이동한 다음 카피해주면 해결된다. cd /home/jisukim/.cache/pypoetry/virtualenvs/lima-Gl190b5G-py3.9/lib/python3.9/site-packages/bitsandbytes cp libbitsandbytes_cuda117.so libbitsandbytes_cpu.so 2023. 7. 5. [Poetry 사용법] 설치 및 jupyter-notebook 실행 방법 (참고: ERROR. poetry not found) Poetry는 python package dependancy를 관리하는 패키지 이다. Install curl -sSL https://install.python-poetry.org | python3 - poetry config virtualenvs.in-project true Quick start!! # 작업 폴더 생성 mkdir poetry_test cd poetry_test # poetry initiation poetry init ''' [아래 그림1]poetry init 실행시 Package name, Version, Description, Author, License 등 입력하라고 한다. 다른 것들은 그냥 Enter를 눌러서 스킵해도 되지만, Python version은 ~3.8로 두고 시작. 그렇.. 2023. 6. 15. ImportError: Using the `Trainer` with `PyTorch` requires `accelerate`: Run `pip install --upgrade accelerate`에러 1. accelerate 설치 pip install accelerate 하지만 accelerate 설치 후에도 실행해보면, "NameError: name 'PartialState' is not defined" 에러가 또 뜬다. 2. 재설치 후, 노트북 재 실행 해결 방안으로는 아래 명령어를 입력한 후, 주피터 노트북을 다시 시작하면 해결된다. pip uninstall -y transformers accelerate pip install transformers accelerate 2023. 5. 19. [Error] modulenotfounderror: no module named 'pip._internal' 해결 방법 가상환경에서 pip install을 통해 필요한 패키지를 설치하려고 하는데 위와 같은 에러가 뜨는 경우가 있다. "에러가 뜨는 원인은 pip 버전끼리 충돌이 나서 발생한다." 따라서 기존의 pip를 삭제한 후 재설치 하면 해결된다. apt-get remove python3-apt sudo apt install python3-pip 2023. 4. 26. 이전 1 2 3 4 5 다음 728x90