PyTorch 2.1.2+cu121 with CUDA 1201 (you have 2.1.0+cpu

Gov: <p>I searched the comment box and nothing appeared:</p>
<p>So I guess I’ll ask the queries question:</p>
<p>Based on the issue below we have a variety of options:</p>
<p>They have been tested:<br>
Python 3.9<br>
Python 3.9.14<br>
Python 10.6<br>
Python 10.11</p>
<p>Next was it installed in a virtual environment (env,) :yes.</p>
<p>Has this problem happened numerous times: yes.</p>
<p>What was the issue of the problem, pytorch defaulting to CPU use.</p>
<p>Did you uninstall xformers: yes.</p>
<p>Did you recently update your driver on the GPU within the last week of January 24th 2024:yes</p>
<p>Was there any issues prior to that?<br>
It’s hard to say as there was no issues(unless I reinstalled a different Python, as the driver was installed prior before that?<br>
(I may consider down grading GPU driver just in case but I need to rule out other issues first)</p>
<p>As of now I have purged Python versions test above from the registry in windows, and cudatool kit, however the driver I have not downgraded yet.<br>
Are there any other things I’m missing that need purging for clean install.</p>
<p>I placed this here in case other people encounter the same issue.</p>
<p>\folder\folder&gt;python -m xformers.info<br>
WARNING[XFORMERS]: xFormers can’t load C++/CUDA extensions. xFormers was built for:<br>
PyTorch 2.1.2+cu121 with CUDA 1201 (you have 2.1.0+cpu)<br>
Python  3.9.13 (you have 3.9.13)<br>
Please reinstall xformers (see <a href="https://github.com/facebookresearch/xformers#installing-xformers" class="inline-onebox" rel="noopener nofollow ugc">GitHub - facebookresearch/xformers: Hackable and optimized Transformers building blocks, supporting a composable construction.</a>)<br>
Memory-efficient attention, SwiGLU, sparse and more won’t be available.<br>
Set XFORMERS_MORE_DETAILS=1 for more details<br>
Unable to find python bindings at /usr/local/dcgm/bindings/python3. No data will be captured.<br>
xFormers 0.0.23.post1<br>
memory_efficient_attention.cutlassF:               unavailable<br>
memory_efficient_attention.cutlassB:               unavailable<br>
memory_efficient_attention.decoderF:               unavailable<br>
memory_efficient_attention.flshattF@0.0.0:         unavailable<br>
memory_efficient_attention.flshattB@0.0.0:         unavailable<br>
memory_efficient_attention.smallkF:                unavailable<br>
memory_efficient_attention.smallkB:                unavailable<br>
memory_efficient_attention.tritonflashattF:        unavailable<br>
memory_efficient_attention.tritonflashattB:        unavailable<br>
memory_efficient_attention.triton_splitKF:         unavailable<br>
indexing.scaled_index_addF:                        unavailable<br>
indexing.scaled_index_addB:                        unavailable<br>
indexing.index_select:                             unavailable<br>
swiglu.dual_gemm_silu:                             unavailable<br>
swiglu.gemm_fused_operand_sum:                     unavailable<br>
swiglu.fused.p.cpp:                                not built<br>
is_triton_available:                               False<br>
pytorch.version:                                   2.1.0+cpu<br>
pytorch.cuda:                                      not available<br>
dcgm_profiler:                                     unavailable<br>
build.info:                                        available<br>
build.cuda_version:                                1201<br>
build.python_version:                              3.9.13<br>
build.torch_version:                               2.1.2+cu121<br>
build.env.TORCH_CUDA_ARCH_LIST:                    5.0+PTX 6.0 6.1 7.0 7.5 8.0+PTX 9.0<br>
build.env.XFORMERS_BUILD_TYPE:                     Release<br>
build.env.XFORMERS_ENABLE_DEBUG_ASSERTIONS:        None<br>
build.env.NVCC_FLAGS:                              None<br>
build.env.XFORMERS_PACKAGE_FROM:                   wheel-v0.0.23.post1<br>
source.privacy:                                    open source</p>
<p>Z:\</p>

ptrblck: <aside class="quote no-group" data-username="Gov" data-post="1" data-topic="196215">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/gov/48/66362_2.png" class="avatar"> Gov:</div>
<blockquote>
<p>xFormers was built for:<br>
PyTorch 2.1.2+cu121 with CUDA 1201 (you have 2.1.0+cpu)</p>
</blockquote>
</aside>
<p>Uninstall your PyTorch CPU binary and install <code>2.1.2+cu121</code> by following the <a href="https://pytorch.org/get-started/locally/">install instructions</a>.</p>