bin…
- User
bin C:\Users\slons\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.dll Traceback (most recent call last): File "H:\sliders\trainscripts\imagesliders\train_lora-scale-xl.py", line 548, in main(args) File "H:\sliders\trainscripts\imagesliders\train_lora-scale-xl.py", line 466, in main train(config=config, prompts=prompts, device=device, folder_main = args.folder_main, folders = folders, scales = scales) File "H:\sliders\trainscripts\imagesliders\train_lora-scale-xl.py", line 92, in train unet.enable_xformers_memory_efficient_attention() File "C:\Users\slons\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\models\modeling_utils.py", line 298, in enable_xformers_memory_efficient_attention self.set_use_memory_efficient_attention_xformers(True, attention_op) File "C:\Users\slons\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\models\modeling_utils.py", line 262, in set_use_memory_efficient_attention_xformers fn_recursive_set_mem_eff(module) File "C:\Users\slons\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\models\modeling_utils.py", line 258, in fn_recursive_set_mem_eff fn_recursive_set_mem_eff(child) File "C:\Users\slons\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\models\modeling_utils.py", line 258, in fn_recursive_set_mem_eff fn_recursive_set_mem_eff(child) File "C:\Users\slons\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\models\modeling_utils.py", line 258, in fn_recursive_set_mem_eff fn_recursive_set_mem_eff(child) File "C:\Users\slons\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\models\modeling_utils.py", line 255, in fn_recursive_set_mem_eff module.set_use_memory_efficient_attention_xformers(valid, attention_op) File "C:\Users\slons\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\models\modeling_utils.py", line 262, in set_use_memory_efficient_attention_xformers fn_recursive_set_mem_eff(module) File "C:\Users\slons\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\models\modeling_utils.py", line 258, in fn_recursive_set_mem_eff fn_recursive_set_mem_eff(child) File "C:\Users\slons\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\models\modeling_utils.py", line 258, in fn_recursive_set_mem_eff fn_recursive_set_mem_eff(child) File "C:\Users\slons\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\models\modeling_utils.py", line 255, in fn_recursive_set_mem_eff module.set_use_memory_efficient_attention_xformers(valid, attention_op) File "C:\Users\slons\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\models\attention_processor.py", line 273, in set_use_memory_efficient_attention_xformers raise e File "C:\Users\slons\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\models\attention_processor.py", line 267, in set_use_memory_efficient_attention_xformers _ = xformers.ops.memory_efficient_attention( File "C:\Users\slons\AppData\Roaming\Python\Python310\site-packages\xformers\ops\fmha_init_.py", line 192, in memory_efficient_attention return .py", line 290, in _memory_efficient_attention return .py", line 306, in _memory_efficient_attention_forward op = _dispatch_fw(inp) File "C:\Users\slons\AppData\Roaming\Python\Python310\site-packages\xformers\ops\fmha\dispatch.py", line 94, in _dispatch_fw return _run_priority_list( File "C:\Users\slons\AppData\Roaming\Python\Python310\site-packages\xformers\ops\fmha\dispatch.py", line 69, in _run_priority_list raise NotImplementedError(msg) NotImplementedError: No operator found for with inputs: query : shape=(1, 2, 1, 40) (torch.float32) key : shape=(1, 2, 1, 40) (torch.float32) value : shape=(1, 2, 1, 40) (torch.float32) attn_bias : <class 'NoneType'> p : 0.0 is not supported because: xFormers wasn't build with CUDA support dtype=torch.float32 (supported: {torch.float16, torch.bfloat16}) Operator wasn't built - see for more info is not supported because: xFormers wasn't build with CUDA support dtype=torch.float32 (supported: {torch.float16, torch.bfloat16}) Operator wasn't built - see for more info triton is not available requires A100 GPU is not supported because: xFormers wasn't build with CUDA support Operator wasn't built - see for more info is not supported because: xFormers wasn't build with CUDA support max(query.shape[-1] != value.shape[-1]) > 32 Operator wasn't built - see for more info unsupported embed per head: 40
- Assistant
- User
xFormers 0.0.20 memory_efficient_attention.cutlassF: unavailable memory_efficient_attention.cutlassB: unavailable memory_efficient_attention.flshattF: unavailable memory_efficient_attention.flshattB: unavailable memory_efficient_attention.smallkF: unavailable memory_efficient_attention.smallkB: unavailable memory_efficient_attention.tritonflashattF: unavailable memory_efficient_attention.tritonflashattB: unavailable indexing.scaled_index_addF: unavailable indexing.scaled_index_addB: unavailable indexing.index_select: unavailable swiglu.dual_gemm_silu: unavailable swiglu.gemm_fused_operand_sum: unavailable swiglu.fused.p.cpp: not built is_triton_available: False is_functorch_available: False pytorch.version: 2.1.0+cu118 pytorch.cuda: available gpu.compute_capability: 8.6 gpu.name: NVIDIA GeForce RTX 3090 build.info: available build.cuda_version: 1108 build.python_version: 3.10.11 build.torch_version: 2.0.1+cu118 build.env.TORCH_CUDA_ARCH_LIST: 5.0+PTX 6.0 6.1 7.0 7.5 8.0 8.6 build.env.XFORMERS_BUILD_TYPE: Release build.env.XFORMERS_ENABLE_DEBUG_ASSERTIONS: None build.env.NVCC_FLAGS: None build.env.XFORMERS_PACKAGE_FROM: wheel-v0.0.20 source.privacy: open source
- Assistant
- User
make cmd to update xformers
- Assistant
To streamline the process of updating and rebuilding
xFormerswith CUDA support, you can create a shell script (if you're on Linux/Mac) or a batch file (if you're on Windows). Below, I'll provide commands for both environments.