Skip to content

Commit 5acf951

Browse files
committed
musa: support flash attention (#9)
Signed-off-by: Xiaodong Ye <[email protected]>
1 parent 10f4677 commit 5acf951

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

discover/types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ func (l GpuInfoList) FlashAttentionSupported() bool {
183183
supportsFA := gpu.Library == "cpu" ||
184184
gpu.Library == "metal" ||
185185
(gpu.Library == "cuda" && gpu.DriverMajor >= 7) ||
186-
gpu.Library == "rocm"
186+
gpu.Library == "rocm" ||
187+
gpu.Library == "musa"
187188

188189
if !supportsFA {
189190
return false

0 commit comments

Comments
 (0)