분류 전체보기
-
cuda version 확인프로그래밍/자연어처리 2022. 9. 11. 20:32
cuda version은 nvcc --version 으로 확인이 가능하다 $nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2019 NVIDIA Corporation Built on Sun_Jul_28_19:07:16_PDT_2019 Cuda compilation tools, release 10.1, V10.1.243 만약 설치가 안되어 있다는 에러 메세지가 나오면 아래와 같이 설치 가능하다. $ sudo apt install nvidia-cuda-toolkit
-
RuntimeError: CUDA error: no kernel image is available for execution on the device프로그래밍/기계학습 2022. 9. 11. 19:28
RTX3090로 교체하고 pytorch 설치 후 아래와 같은 에러가 발생하였다. $ python3 Python 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import torch >>> torch.rand(10).to("cuda") /home/.local/lib/python3.8/site-packages/torch/cuda/__init__.py:146: UserWarning: NVIDIA GeForce RTX 3090 with CUDA capability sm_86 is not compatible with t..
-
flairNLP 사용하기프로그래밍/자연어처리 2022. 9. 11. 18:35
flairnlp 추천을 받아서 설치해봤다 ner에 강점이 있긴 한데 embedding도 간단히 쓸 수 있을 것 같다. 우선 pip install flair로 설치 완료 $ pip install flair Collecting flair Using cached flair-0.11.3-py3-none-any.whl (401 kB) Requirement already satisfied: scikit-learn>=0.21.3 in ./anaconda3/lib/python3.9/site-packages (from flair) (1.0.2) Collecting deprecated>=1.2.4 Using cached Deprecated-1.2.13-py2.py3-none-any.whl (9.6 kB) Collectin..