Skip to content

AMD - flash attention install from source not detected #12225

Description

@GWCoding

I installed flash attention from source, but it is not detected by ComfyUI:

To use the `--use-flash-attention` feature, the `flash-attn` package must be installed first.
command:
        J:\ComfyUI\ComfyUI_windows_portable\python_embeded\python.exe -m pip install flash-attn
J:\ComfyUI\ComfyUI_windows_portable\python_embeded>python -m pip list
Package                                  Version
---------------------------------------- ----------------------
accelerate                               1.12.0
addict                                   2.4.0
aiofiles                                 24.1.0
aiohappyeyeballs                         2.6.1
aiohttp                                  3.13.3
aiohttp_socks                            0.11.0
aiosignal                                1.4.0
albucore                                 0.0.24
albumentations                           2.0.8
alembic                                  1.18.1
annotated-types                          0.7.0
antlr4-python3-runtime                   4.9.3
anyio                                    4.12.1
argcomplete                              3.6.3
attrs                                    25.4.0
audioread                                3.1.0
Authlib                                  1.6.6
av                                       16.1.0
beartype                                 0.22.9
beautifulsoup4                           4.14.3
black                                    26.1.0
boto3                                    1.42.39
botocore                                 1.42.39
cachetools                               7.0.0
certifi                                  2026.1.4
cffi                                     2.0.0
chardet                                  5.2.0
charset-normalizer                       3.4.4
click                                    8.3.1
clip-interrogator                        0.6.0
cloudpickle                              3.1.2
codegen                                  0.57.0
codegen-api-client                       1.0.0
codeowners                               0.8.0
color-matcher                            0.6.0
colorama                                 0.4.6
coloredlogs                              15.0.1
colorlog                                 6.10.1
comfy-aimdo                              0.1.6
comfy-kitchen                            0.2.7
comfyui-embedded-docs                    0.4.0
comfyui_frontend_package                 1.37.11
comfyui_workflow_templates               0.8.27
comfyui-workflow-templates-core          0.3.115
comfyui-workflow-templates-media-api     0.3.47
comfyui-workflow-templates-media-image   0.3.75
comfyui-workflow-templates-media-other   0.3.98
comfyui-workflow-templates-media-video   0.3.42
contourpy                                1.3.3
cryptography                             46.0.4
cycler                                   0.12.1
cyclopts                                 4.5.1
datamodel-code-generator                 0.53.0
ddt                                      1.7.2
decorator                                4.4.2
decord                                   0.6.0
Deprecated                               1.3.1
diffusers                                0.36.0
diskcache                                5.6.3
distro                                   1.9.0
dnspython                                2.8.0
docstring_parser                         0.17.0
docutils                                 0.22.4
easydict                                 1.13
einops                                   0.8.2
email-validator                          2.3.0
exceptiongroup                           1.3.1
fakeredis                                2.33.0
fal_client                               0.12.0
fastmcp                                  2.14.4
filelock                                 3.20.3
flash_attn                               2.8.3
flatbuffers                              25.12.19
fonttools                                4.61.1
frozenlist                               1.8.0
fsspec                                   2026.1.0
ftfy                                     6.3.1
gdown                                    5.2.1
genson                                   1.3.0
gitdb                                    4.0.12
GitPython                                3.1.44
giturlparse                              0.14.0
glfw                                     2.10.0
glitch_this                              1.0.3
google-api-core                          2.29.0
google-auth                              2.48.0
google-cloud-core                        2.5.0
google-cloud-storage                     3.8.0
google-crc32c                            1.8.0
google-genai                             1.61.0
google-resumable-media                   2.8.0
googleapis-common-protos                 1.72.0
greenlet                                 3.3.1
groundingdino-py                         0.4.0
grpcio                                   1.76.0
h11                                      0.16.0
h2                                       4.3.0
hatch-vcs                                0.5.0
hatchling                                1.28.0
hf-xet                                   1.2.0
hpack                                    4.1.0
httpcore                                 1.0.9
httpx                                    0.28.1
httpx-sse                                0.4.3
huggingface_hub                          1.3.4
humanfriendly                            10.0
humanize                                 4.15.0
hydra-core                               1.3.2
hyperframe                               6.1.0
idna                                     3.11
ImageIO                                  2.37.2
imageio-ffmpeg                           0.6.0
importlib_metadata                       8.7.1
inflect                                  7.5.0
iopath                                   0.1.10
isort                                    7.0.0
jaraco.classes                           3.4.0
jaraco.context                           6.1.0
jaraco.functools                         4.4.0
Jinja2                                   3.1.6
jiter                                    0.12.0
jmespath                                 1.1.0
joblib                                   1.5.3
jsonref                                  1.1.0
jsonschema                               4.26.0
jsonschema-path                          0.3.4
jsonschema-specifications                2025.9.1
keyring                                  25.7.0
kiwisolver                               1.4.9
kornia                                   0.8.2
kornia_rs                                0.1.10
lark                                     1.3.1
lazy_loader                              0.4
librosa                                  0.11.0
linkify-it-py                            2.0.3
llvmlite                                 0.46.0
lupa                                     2.6
Mako                                     1.3.10
markdown-it-py                           4.0.0
MarkupSafe                               3.0.3
matplotlib                               3.10.8
matrix-nio                               0.25.2
mcp                                      1.26.0
mdit-py-plugins                          0.5.0
mdurl                                    0.1.2
more-itertools                           10.8.0
moviepy                                  1.0.3
mpmath                                   1.3.0
msgpack                                  1.1.2
mss                                      10.1.0
multidict                                6.7.1
mypy_extensions                          1.1.0
networkx                                 3.6.1
ninja                                    1.11.1.4
numba                                    0.63.1
numpy                                    2.3.5
ollama                                   0.6.1
omegaconf                                2.3.0
onnxruntime                              1.23.2
onnxruntime-gpu                          1.23.2
open_clip_torch                          3.2.0
openai                                   2.16.0
openapi-pydantic                         0.5.1
opencv-python                            4.13.0.90
opencv-python-headless                   4.13.0.90
opentelemetry-api                        1.39.1
opentelemetry-exporter-otlp              1.39.1
opentelemetry-exporter-otlp-proto-common 1.39.1
opentelemetry-exporter-otlp-proto-grpc   1.39.1
opentelemetry-exporter-otlp-proto-http   1.39.1
opentelemetry-exporter-prometheus        0.60b1
opentelemetry-instrumentation            0.60b1
opentelemetry-proto                      1.39.1
opentelemetry-sdk                        1.39.1
opentelemetry-semantic-conventions       0.60b1
packaging                                26.0
pathable                                 0.4.4
pathspec                                 1.0.4
pathvalidate                             3.3.1
pdf2image                                1.17.0
peft                                     0.18.1
pillow                                   12.1.0
pip                                      25.3
platformdirs                             4.5.1
pluggy                                   1.6.0
pooch                                    1.9.0
portalocker                              3.2.0
proglog                                  0.1.12
prometheus_client                        0.24.1
propcache                                0.4.1
proto-plus                               1.27.0
protobuf                                 6.33.5
psutil                                   7.2.1
py-key-value-aio                         0.3.0
py-key-value-shared                      0.3.0
pyasn1                                   0.6.2
pyasn1_modules                           0.4.2
pycocotools                              2.0.11
pycparser                                3.0
pycryptodome                             3.23.0
pydantic                                 2.12.5
pydantic_core                            2.41.5
pydantic-settings                        2.12.0
pydocket                                 0.16.6
pygit2                                   1.19.1
PyGithub                                 2.6.1
Pygments                                 2.19.2
PyJWT                                    2.11.0
PyMatting                                1.1.15
PyMuPDF                                  1.26.7
PyNaCl                                   1.6.2
PyOpenGL                                 3.1.10
PyOpenGL-accelerate                      3.1.10
pyparsing                                3.3.2
PyPDF2                                   3.0.1
pyperclip                                1.11.0
pyreadline3                              3.5.4
PySocks                                  1.7.1
python-dateutil                          2.9.0.post0
python-dotenv                            1.2.1
python-json-logger                       4.0.0
python-multipart                         0.0.22
python-socks                             2.8.0
pytokens                                 0.4.1
pywin32                                  311
pywin32-ctypes                           0.2.3
PyYAML                                   6.0.3
redis                                    7.1.0
referencing                              0.36.2
regex                                    2026.1.15
reportlab                                4.4.9
requests                                 2.32.5
rich                                     14.3.1
rich-rst                                 1.3.2
rocm                                     7.2.0.dev0
rocm-sdk-core                            7.2.0.dev0
rocm-sdk-libraries-custom                7.2.0.dev0
rpds-py                                  0.30.0
rsa                                      4.9.1
runwayml                                 4.3.0
s3transfer                               0.16.0
safetensors                              0.7.0
sageattention                            1.0.6
scikit-learn                             1.8.0
scipy                                    1.17.0
segment-anything                         1.0
sentencepiece                            0.2.1
sentry-sdk                               2.29.1
setuptools                               80.10.2
setuptools-scm                           9.2.2
shellingham                              1.5.4
simsimd                                  6.5.12
six                                      1.17.0
smmap                                    5.0.2
sniffio                                  1.3.1
sortedcontainers                         2.4.0
sounddevice                              0.5.5
soundfile                                0.13.1
soupsieve                                2.8.3
soxr                                     1.0.0
spandrel                                 0.4.1
SQLAlchemy                               2.0.46
sse-starlette                            3.2.0
starlette                                0.52.1
stringzilla                              4.6.0
supervision                              0.6.0
sympy                                    1.14.0
tenacity                                 9.1.2
textual                                  7.5.0
threadpoolctl                            3.6.0
timm                                     1.0.24
tokenizers                               0.22.2
toml                                     0.10.2
torch                                    2.9.1+rocmsdk20260116
torchaudio                               2.9.1+rocmsdk20260116
torchsde                                 0.2.6
torchvision                              0.24.1+rocmsdk20260116
tqdm                                     4.67.1
trampoline                               0.1.2
transformers                             5.0.0
transparent-background                   1.3.4
triton-windows                           3.6.0.post25
trove-classifiers                        2026.1.14.14
typeguard                                4.4.4
typer                                    0.21.1
typer-slim                               0.21.1
typing_extensions                        4.15.0
typing-inspection                        0.4.2
uc-micro-py                              1.0.3
unidiff                                  0.7.5
unpaddedbase64                           2.1.0
urllib3                                  2.6.3
uv                                       0.9.28
uvicorn                                  0.40.0
wcwidth                                  0.5.3
websockets                               15.0.1
wget                                     3.2
wrapt                                    1.17.3
yapf                                     0.43.0
yarl                                     1.22.0
zipp                                     3.23.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions