dyscorv / nix-comfyui

ComfyUI as a Nix expression
MIT License
20 stars 5 forks source link

xformers #4

Open jpentland opened 2 months ago

jpentland commented 2 months ago

It seems that on nvidia, " cross-attention" is still being used rather than xformers. I tried to enable xformers using:

  comfyui = pkgs.comfyuiPackages.comfyui.override (prev: {
    comfyui-unwrapped = prev.comfyui-unwrapped.overrideAttrs (prev: {
      propagatedBuildInputs =
        prev.propagatedBuildInputs ++
        (with pkgs.comfyuiPackages.python3.pkgs; [
          xformers
        ]);
    });
  });

However the build of xformers fails due to a missing "cudaSupport" value.