pinokiofactory / flux-webui

143 stars 19 forks source link

triton module missing on windows #18

Open nicosalto opened 2 months ago

nicosalto commented 2 months ago

i installed flux-webui via the pinokio app on windows 11. But it breaks and i get a lost connection status. ModuleNotFoundError: No module named 'triton' I looks like it is missing this library ?

haouarihk commented 2 months ago

+

scheseb commented 1 month ago

I have the same error on Windows 11.

C:\pinokio\api\flux-webui.git>conda_hook && conda deactivate && conda deactivate && conda deactivate && conda activate base && C:\pinokio\api\flux-webui.git\env\Scripts\activate C:\pinokio\api\flux-webui.git\env && python app.py

C:\pinokio\api\flux-webui.git\env\lib\site-packages\xformers\ops\fmha\flash.py:211: FutureWarning: `torch.library.impl_abstract` was renamed to `torch.library.register_fake`. Please use that instead; we will remove `torch.library.impl_abstract` in a future version of PyTorch.
  @torch.library.impl_abstract("xformers_flash::flash_fwd")
C:\pinokio\api\flux-webui.git\env\lib\site-packages\xformers\ops\fmha\flash.py:344: FutureWarning: `torch.library.impl_abstract` was renamed to `torch.library.register_fake`. Please use that instead; we will remove `torch.library.impl_abstract` in a future version of PyTorch.
  @torch.library.impl_abstract("xformers_flash::flash_bwd")
A matching Triton is not available, some optimizations will not be enabled
Traceback (most recent call last):
  File "C:\pinokio\api\flux-webui.git\env\lib\site-packages\xformers\__init__.py", line 57, in _is_triton_available
    import triton  # noqa
ModuleNotFoundError: No module named 'triton'
C:\pinokio\api\flux-webui.git\env\lib\site-packages\gradio\utils.py:1002: UserWarning: Expected 2 arguments for function <function update_slider at 0x000001D7AF896B90>, received 1.
  warnings.warn(
C:\pinokio\api\flux-webui.git\env\lib\site-packages\gradio\utils.py:1006: UserWarning: Expected at least 2 arguments for function <function update_slider at 0x000001D7AF896B90>, received 1.
  warnings.warn(
Running on local URL:  http://127.0.0.1:7860

A few seconds after starting a run it displays this error message: Error Connection errored out.

Not sure if these problems are related.

AYUB-NBP commented 2 weeks ago

My solution to the trion missing issue was to do the following:

i still have this issue: F:\pinokio\api\flux-webui\env\lib\site-packages\gradio\utils.py:980: UserWarning: Expected 2 arguments for function <function update_slider at 0x0000013240B2C1F0>, received 1. warnings.warn( F:\pinokio\api\flux-webui\env\lib\site-packages\gradio\utils.py:984: UserWarning: Expected at least 2 arguments for function <function update_slider at 0x0000013240B2C1F0>, received 1. warnings.warn(

Hopefully I can I find a solution to that.