{"id":10006,"date":"2025-02-19T21:12:32","date_gmt":"2025-02-19T12:12:32","guid":{"rendered":"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=10006"},"modified":"2025-03-16T13:13:53","modified_gmt":"2025-03-16T04:13:53","slug":"torch-not-compiled-with-cuda-enabled","status":"publish","type":"post","link":"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=10006","title":{"rendered":"Torch not compiled with CUDA enabled"},"content":{"rendered":"<h1>Torch not compiled with CUDA enabled<\/h1>\n<p>NVIDIA GPU \uac00 \uc788\uc9c0\ub9cc CUDA \uac00 \ub97c \uc9c0\uc6d0\ud558\ub294 Torch \uac00 \uc124\uce58\ub418\uc5b4 \uc788\uc9c0 \uc54a\uc740 \uc0c1\ud669\uc774\ub2e4.<\/p>\n<h2>\ub4dc\ub77c\uc774\ubc84 \uc124\uce58 \ud655\uc778<\/h2>\n<p>\ub4dc\ub77c\uc774\ubc84\uac00 \uc815\uc0c1\uc801\uc73c\ub85c \uc124\uce58\ub418\uc5b4 \uc788\uc73c\uba74 \uc544\ub798\uc640 \uac19\uc774 \uba85\ub839\uc744 \uc785\ub825\ud588\uc744 \ub54c \uacb0\uacfc\uac00 \ub098\uc628\ub2e4.<\/p>\n<pre><code class=\"language-bash\">nvidia-smi\n......\n+-----------------------------------------------------------------------------------------+\n| NVIDIA-SMI 560.94                 Driver Version: 560.94         CUDA Version: 12.6     |\n|-----------------------------------------+------------------------+----------------------+\n| GPU  Name                  Driver-Model | Bus-Id          Disp.A | Volatile Uncorr. ECC |\n| Fan  Temp   Perf          Pwr:Usage\/Cap |           Memory-Usage | GPU-Util  Compute M. |\n|                                         |                        |               MIG M. |\n|=========================================+========================+======================|\n|   0  NVIDIA GeForce GTX 1060 3GB  WDDM  |   00000000:01:00.0  On |                  N\/A |\n| 37%   26C    P8              9W \/  130W |     664MiB \/   3072MiB |      2%      Default |\n|                                         |                        |                  N\/A |\n+-----------------------------------------+------------------------+----------------------+\n......<\/code><\/pre>\n<h2>\uc124\uce58 \uac00\ub2a5\ud55c CUDA \ubc84\uc804 \ud655\uc778\ud558\uae30<\/h2>\n<p>\uc704 \uba85\ub839\uc5d0\uc11c <code>GTX 1060<\/code> \uc774 \uc124\uce58\ub418\uc5b4 \uc788\uace0, \uc544\ub798 \ub9c1\ud06c\uc5d0\uc11c \ubcf4\uba74 CUDA 8.0 \uc774\ud6c4 \ubc84\uc804\uc744 \uc804\ubd80 \uc9c0\uc6d0\ud55c\ub2e4.<\/p>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/CUDA#GPUs_supported\">\ub9c1\ud06c<\/a><\/p>\n<p><a href=\"https:\/\/www.skyer9.pe.kr\/wordpress\/wp-content\/uploads\/2025\/02\/2025-02-20-01.png\"><img decoding=\"async\" src=\"https:\/\/www.skyer9.pe.kr\/wordpress\/wp-content\/uploads\/2025\/02\/2025-02-20-01.png\" alt=\"\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.skyer9.pe.kr\/wordpress\/wp-content\/uploads\/2025\/02\/2025-02-20-02.png\"><img decoding=\"async\" src=\"https:\/\/www.skyer9.pe.kr\/wordpress\/wp-content\/uploads\/2025\/02\/2025-02-20-02.png\" alt=\"\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.skyer9.pe.kr\/wordpress\/wp-content\/uploads\/2025\/02\/2025-02-20-03.png\"><img decoding=\"async\" src=\"https:\/\/www.skyer9.pe.kr\/wordpress\/wp-content\/uploads\/2025\/02\/2025-02-20-03.png\" alt=\"\" \/><\/a><\/p>\n<h2>PyTorch \uc640 \ud638\ud658\ub418\ub294 CUDA \ubc84\uc804 \ud655\uc778<\/h2>\n<p>\uc544\ub798 \ub9c1\ud06c\uc5d0\uc11c \ubcf4\uba74 CUDA 12.6 (2025-02 \uae30\uc900) \uc774 \ucd5c\uc2e0\ubc84\uc804\uc774\ub2e4.<\/p>\n<p><a href=\"https:\/\/pytorch.org\/get-started\/locally\/\">\ub9c1\ud06c<\/a><\/p>\n<p><code>Run this Command:<\/code> \uc5d0 \uc788\ub294 \uba85\ub839\uc744 \uc2e4\ud589\ud574 \uc900\ub2e4.<\/p>\n<p>CUDA \uac00 \uc124\uce58\ub418\uc5b4 \uc788\uc9c0 \uc54a\uc544\ub3c4 \uc124\uce58\uac00 \uac00\ub2a5\ud558\ub2e4.<\/p>\n<pre><code class=\"language-bash\">pip3 install torch torchvision torchaudio --index-url https:\/\/download.pytorch.org\/whl\/cu126<\/code><\/pre>\n<p><a href=\"https:\/\/www.skyer9.pe.kr\/wordpress\/wp-content\/uploads\/2025\/02\/2025-02-20-04.png\"><img decoding=\"async\" src=\"https:\/\/www.skyer9.pe.kr\/wordpress\/wp-content\/uploads\/2025\/02\/2025-02-20-04.png\" alt=\"\" \/><\/a><\/p>\n<h2>CUDA \uc124\uce58<\/h2>\n<p><a href=\"https:\/\/developer.nvidia.com\/cuda-toolkit-archive\">\ub9c1\ud06c<\/a><\/p>\n<p>\uc704 \ub9c1\ud06c\uc5d0\uc11c CUDA 12.6 \ub97c \ub2e4\uc6b4\ubc1b\uc544 \uc124\uce58\ud55c\ub2e4.<\/p>\n<p><a href=\"https:\/\/www.skyer9.pe.kr\/wordpress\/wp-content\/uploads\/2025\/02\/2025-02-20-05.png\"><img decoding=\"async\" src=\"https:\/\/www.skyer9.pe.kr\/wordpress\/wp-content\/uploads\/2025\/02\/2025-02-20-05.png\" alt=\"\" \/><\/a><\/p>\n<h2>\uc624\ub958 \ub300\uc751<\/h2>\n<p>\uc624\ub958 \ub0b4\uc6a9\uc740 bitsandbytes \uc624\ub958\uc778\ub370, \uc624\ub958 \ud574\uacb0\uc740 PyTorch \uc7ac\uc124\uce58\uc785\ub2c8\ub2e4.<br \/>\nPyTorch \uac00 \uc124\uce58\ub294 \ub418\uc5b4 \uc788\uc9c0\ub9cc CUDA \ubc84\uc804\uc774 \ud638\ud658\ub418\uc9c0 \uc54a\uc544\uc11c GPU \ub97c \uc778\uc2dd\ud558\uc9c0 \ubabb\ud558\uace0,<br \/>\n\uacb0\uad6d bitsandbytes \uac00 \uc2e4\ud589\uc774 \ub418\uc9c0 \uc54a\ub294 \uc0c1\ud669\uc774\ub2e4.<\/p>\n<pre><code class=\"language-bash\">RuntimeError: CUDA is required but not available for bitsandbytes. Please consider installing the multi-platform enabled version of bitsandbytes, which is currently a work in progress. Please check currently supported platforms and installation instructions at https:\/\/huggingface.co\/docs\/bitsandbytes\/main\/en\/installation#multi-backend<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Torch not compiled with CUDA enabled NVIDIA GPU \uac00 \uc788\uc9c0\ub9cc CUDA \uac00 \ub97c \uc9c0\uc6d0\ud558\ub294 Torch \uac00 \uc124\uce58\ub418\uc5b4 \uc788\uc9c0 \uc54a\uc740 \uc0c1\ud669\uc774\ub2e4. \ub4dc\ub77c\uc774\ubc84 \uc124\uce58 \ud655\uc778 \ub4dc\ub77c\uc774\ubc84\uac00 \uc815\uc0c1\uc801\uc73c\ub85c \uc124\uce58\ub418\uc5b4 \uc788\uc73c\uba74 \uc544\ub798\uc640 \uac19\uc774 \uba85\ub839\uc744 \uc785\ub825\ud588\uc744 \ub54c \uacb0\uacfc\uac00 \ub098\uc628\ub2e4. nvidia-smi &#8230;&#8230; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+ | NVIDIA-SMI 560.94 Driver Version: 560.94 CUDA Version: 12.6 | |&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+ | GPU Name Driver-Model | Bus-Id Disp.A\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=10006\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-10006","post","type-post","status-publish","format-standard","hentry","category-machine-learning"],"_links":{"self":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/10006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10006"}],"version-history":[{"count":6,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/10006\/revisions"}],"predecessor-version":[{"id":10130,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/10006\/revisions\/10130"}],"wp:attachment":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}