Comments (6)
I ask around and it seems that xformers dose work on linux, but one who replyed me is dose not know about installing via the webui arg --xformers, insted he installed xformers using pip due to Cannot find ptxas
I think what you are seeing it's a bit odd
you can see in the logs that xformers, and theres no error showing that the install has failed
but later you see webui can't import xformers
at this point I would first try again, if that dose not work try installing the latest version of xformers
tip when posting logs or code like above use a code block
```
you logs
```
from stable-diffusion-webui.
add --xformers
arg to webui.sh
from stable-diffusion-webui.
@w-e-w I get a Cannot find ptxas Runtime Error.
Installing xformers
Launching Web UI with arguments: --xformers
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
*** Cannot import xformers
Traceback (most recent call last):
File "/stable-diffusion-webui/modules/sd_hijack_optimizations.py", line 160, in <module>
import xformers.ops
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/xformers/ops/__init__.py", line 8, in <module>
from .fmha import (
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/xformers/ops/fmha/__init__.py", line 10, in <module>
from . import attn_bias, cutlass, decoder, flash, small_k, triton, triton_splitk
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/xformers/ops/fmha/triton_splitk.py", line 21, in <module>
if TYPE_CHECKING or _has_triton21():
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/xformers/ops/common.py", line 192, in _has_triton21
if not _has_a_version_of_triton():
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/xformers/ops/common.py", line 176, in _has_a_version_of_triton
import triton # noqa: F401
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/triton/__init__.py", line 20, in <module>
from .compiler import compile, CompilationError
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/triton/compiler/__init__.py", line 1, in <module>
from .compiler import CompiledKernel, compile, instance_descriptor
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/triton/compiler/compiler.py", line 27, in <module>
from .code_generator import ast_to_ttir
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/triton/compiler/code_generator.py", line 8, in <module>
from .. import language
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/triton/language/__init__.py", line 4, in <module>
from . import math
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/triton/language/math.py", line 4, in <module>
from . import core
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/triton/language/core.py", line 1376, in <module>
def minimum(x, y):
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/triton/runtime/jit.py", line 542, in jit
return decorator(fn)
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/triton/runtime/jit.py", line 534, in decorator
return JITFunction(
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/triton/runtime/jit.py", line 433, in __init__
self.run = self._make_launcher()
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/triton/runtime/jit.py", line 388, in _make_launcher
scope = {"version_key": version_key(),
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/triton/runtime/jit.py", line 120, in version_key
ptxas = path_to_ptxas()[0]
File "/stable-diffusion-webui/venv/lib/python3.10/site-packages/triton/common/backend.py", line 119, in path_to_ptxas
raise RuntimeError("Cannot find ptxas")
RuntimeError: Cannot find ptxas
from stable-diffusion-webui.
I'm on windows so I'm not sure how it's is on windwos
but base on info on our wiki xformers shoud work on linux
not sure if anything has changed
from stable-diffusion-webui.
I solved this by creating a pyenv virtualenv.
pyenv virtualenv <name>
pyenv activate <name>
from stable-diffusion-webui.
reference #15444
from stable-diffusion-webui.
Related Issues (20)
- [GET THE OLD SAMPLING METHOD BACK]: HOT 16
- [Bug]: Prompt in textarea cannot be drag and drop since 1.9.0 HOT 3
- [Bug]: SDXL inpainting results in 'NansException' occurred with 1st settings. Error when VAE is present on MacOS
- [Bug]: HOT 9
- Can't load PonydiffusionXL HOT 4
- [Bug]: Stuck on Installing requirements
- [Feature Request]: Update the gens
- [Bug]: Generate forever pauses when browser tab has not focus/minimized HOT 2
- [Bug]: SDXL error: Rendering bad and "broken" images HOT 1
- [Bug]: fastapi needs to be updated HOT 2
- [Feature Request]: "Installing open_clip" step may be no longer needed?
- [Feature Request]: Add upscale button to full screen view
- [Feature Request]: Add/select generated images from a batch to a queue to be upscaled sequentially
- Webui not working with Python 3.12 [Bug]: HOT 24
- [Feature Request]: Implement AYS Sampler proposed by Nvidia
- [Bug]: Cannot recreate images HOT 1
- [Bug]: Lora, Textual Inversion, Hypernetworks Tab Not Displany Anything HOT 1
- [Bug]: bad sampler name: DPM++ 2M Karras HOT 3
- [Bug]: Python Script error on Krita + SD extention HOT 3
- [Feature Request]: Make Soft Inpainting Compatible With Mac Apple Silicon
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stable-diffusion-webui.