mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[GH-ISSUE #131] Flash Attention Decode availability detection raises ValueError for CPU devices instead of returning a boolean #41
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-kitchen#41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chaObserv on GitHub (Aug 23, 2026).
Original GitHub issue: https://github.com/Comfy-Org/comfy-kitchen/issues/131
Issue
The issue occurs in the following function:
github.com/Comfy-Org/comfy-kitchen@7d86acf60c/comfy_kitchen/flash_attention.py (L17)When the
deviceargument is CPU and torch is built with cuda 13.0 or later, the following error is raised at the return statement:ValueError: Expected a cuda device, but got: cpuExample
When using the ACE-Step 1.5 workflow template in ComfyUI, executing the
TextEncodeAceStepAudio1.5node results in the error.This occurs because the text encoders are running on the CPU.
@chaObserv commented on GitHub (Sep 26, 2026):
f61028a7b0resolves it.