From 13c754128a8f773087a2accf4375283a59e3e27d Mon Sep 17 00:00:00 2001 From: ControlAltAI <6172927+gseth@users.noreply.github.com> Date: Sun, 8 Dec 2024 22:12:17 +0530 Subject: [PATCH] Fixed Import Error. Now Error will only occur when using Flux Attention, if no XFormers is installed --- import_error_solution.txt => xformers_instructions.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename import_error_solution.txt => xformers_instructions.txt (87%) diff --git a/import_error_solution.txt b/xformers_instructions.txt similarity index 87% rename from import_error_solution.txt rename to xformers_instructions.txt index 5a5e61f..e2c8813 100644 --- a/import_error_solution.txt +++ b/xformers_instructions.txt @@ -4,6 +4,10 @@ Go to your python_embeded folder and Check your pytorch and cuda version: python.exe -c "import torch; print(torch.__version__)" +check for xformers if installed: + +python.exe -m pip show xformers + Please go to: https://github.com/facebookresearch/xformers/releases Check for the latest Xformers version that is compatible with your installed Pytorch version. @@ -12,7 +16,7 @@ You can Install the latest version of xformers using this command: python.exe -m pip install xformers==PUTVERSIONHERE --index-url https://download.pytorch.org/whl/cuVERSION -example: +example For PyTorch 2.5.1 with CUDA 12.4: python.exe -m pip install xformers==0.0.28.post3 --index-url https://download.pytorch.org/whl/cu124 As of 8th December 2024: