- Today
- Total
목록전체 글 (388)
작심삼일
에러docker run으로 도커를 띄울 때 이 에러가 뜨면서 도커에서 gpu를 잡지 못했다.Error response from daemon: could not select device driver "" with capabilities: [[gpu]] 해결 방법nvidia-container-toolkit을 설치하고, 도커를 재시작하면 된다.distribution=(. /etc/os-release;echo IDVERSION_ID) \ && curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - \ && curl -s -L https://nvidia.github.io/nvidia-docker/$distribut..
원하는 것 vscode를 쓰면 다 좋은데 terminal창과 editor 창을 마우스 커서로 왔다갔다 하기 너무 귀찮다. 그래서 난 "ctrl + ;"로 keyboard shortcut을 만들어서 사용한다. 방법 ctrl + shift + P 를 누른 후 Open Keyboard Shorcuts (JSON)를 연다. 빈 json파일에 아래 코드를 적어서 저장한다. // Place your key bindings in this file to override the defaultsauto[] [ { "key": "ctrl+;", "command": "terminal.focus", "when": "editorFocus" }, { "key": "ctrl+;", "command": "workbench.action..
목표 Ubuntu가 설치된 PC를 booting USB를 이용해 다시 windows로 바꾸기! 원래는 PC 부팅 시 ESC나 F11을 연타하면 booting menu로 가는데 Ubuntu에는 없었다; 아래처럼 하면 booting menu를 뜨게할 수 있음 해결 방법 1. grub 파일에 들어간다 nano /etc/default/grub 2-1. 아래 코드를 GRUB_TIMEOUT_STYLE=hidden 2-2.로 바꾼다. GRUB_TIMEOUT_STYLE=menu 3. grub을 다시 세팅한다. sudo update-grub 4. 그러고 다시 재부팅하면 성공!
에러 c10::CUDAError 해결 방법 torch 버전을 업그레이드하면 된다. pip3 install -U torch torchvision torchaudio
에러 RuntimeError: Failed to import transformers.trainer because of the following error (look up to see its traceback): No module named 'torch._six' ModuleNotFoundError: No module named 'torch._six' 해결 방법 pip uninstall -y apex
에러 RuntimeError: Failed to import transformers.data.data_collator because of the following error (look up to see its traceback): 'MachAr' object has no attribute '_str_smallest_normal' AttributeError: 'MachAr' object has no attribute '_str_smallest_normal' 해결 방법 pip install numpy==1.23.1
에러 RuntimeError: Failed to import transformers.pipelines because of the following error (look up to see its traceback): Descriptors cannot not be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are: 1. Downgrade the protobuf ..