-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from nod-ai/triton_and_f8_attention
Triton harness & FP8 Attention
- Loading branch information
Showing
534 changed files
with
6,508 additions
and
448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,4 @@ build | |
rocm_gemm_venv | ||
*venv | ||
__pycache__ | ||
*.hdf | ||
attention/mlir | ||
attention/vmfb | ||
*.hdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ1024_SKV1024_DH128_f16.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,1024,128],f16>, %298 : !torch.vtensor<[1,32,1024,128],f16>, %301 : !torch.vtensor<[1,32,1024,128],f16>) -> !torch.vtensor<[1,32,1024,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,1024,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ1024_SKV1024_DH128_f8.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,1024,128],f16>, %298 : !torch.vtensor<[1,32,1024,128],f16>, %301 : !torch.vtensor<[1,32,1024,128],f16>) -> !torch.vtensor<[1,32,1024,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,1024,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ1024_SKV1024_DH128_fp16.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,1024,128],f16>, %298 : !torch.vtensor<[1,32,1024,128],f16>, %301 : !torch.vtensor<[1,32,1024,128],f16>) -> !torch.vtensor<[1,32,1024,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,1024,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ1024_SKV1024_DH128_fp8.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,1024,128],f16>, %298 : !torch.vtensor<[1,32,1024,128],f16>, %301 : !torch.vtensor<[1,32,1024,128],f16>) -> !torch.vtensor<[1,32,1024,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,1024,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ1024_SKV2048_DH128_f16.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,1024,128],f16>, %298 : !torch.vtensor<[1,32,2048,128],f16>, %301 : !torch.vtensor<[1,32,2048,128],f16>) -> !torch.vtensor<[1,32,1024,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,1024,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ1024_SKV2048_DH128_f8.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,1024,128],f16>, %298 : !torch.vtensor<[1,32,2048,128],f16>, %301 : !torch.vtensor<[1,32,2048,128],f16>) -> !torch.vtensor<[1,32,1024,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,1024,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ1024_SKV2048_DH128_fp16.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,1024,128],f16>, %298 : !torch.vtensor<[1,32,2048,128],f16>, %301 : !torch.vtensor<[1,32,2048,128],f16>) -> !torch.vtensor<[1,32,1024,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,1024,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ1024_SKV2048_DH128_fp8.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,1024,128],f16>, %298 : !torch.vtensor<[1,32,2048,128],f16>, %301 : !torch.vtensor<[1,32,2048,128],f16>) -> !torch.vtensor<[1,32,1024,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,1024,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ1024_SKV4096_DH128_f16.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,1024,128],f16>, %298 : !torch.vtensor<[1,32,4096,128],f16>, %301 : !torch.vtensor<[1,32,4096,128],f16>) -> !torch.vtensor<[1,32,1024,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,4096,128],f16>, !torch.vtensor<[1,32,4096,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,1024,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ1024_SKV4096_DH128_f8.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,1024,128],f16>, %298 : !torch.vtensor<[1,32,4096,128],f16>, %301 : !torch.vtensor<[1,32,4096,128],f16>) -> !torch.vtensor<[1,32,1024,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,4096,128],f16>, !torch.vtensor<[1,32,4096,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,1024,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ1024_SKV4096_DH128_fp16.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,1024,128],f16>, %298 : !torch.vtensor<[1,32,4096,128],f16>, %301 : !torch.vtensor<[1,32,4096,128],f16>) -> !torch.vtensor<[1,32,1024,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,4096,128],f16>, !torch.vtensor<[1,32,4096,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,1024,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ1024_SKV4096_DH128_fp8.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,1024,128],f16>, %298 : !torch.vtensor<[1,32,4096,128],f16>, %301 : !torch.vtensor<[1,32,4096,128],f16>) -> !torch.vtensor<[1,32,1024,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,4096,128],f16>, !torch.vtensor<[1,32,4096,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,1024,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ2048_SKV1024_DH128_f16.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,2048,128],f16>, %298 : !torch.vtensor<[1,32,1024,128],f16>, %301 : !torch.vtensor<[1,32,1024,128],f16>) -> !torch.vtensor<[1,32,2048,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,2048,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ2048_SKV1024_DH128_f8.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,2048,128],f16>, %298 : !torch.vtensor<[1,32,1024,128],f16>, %301 : !torch.vtensor<[1,32,1024,128],f16>) -> !torch.vtensor<[1,32,2048,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,2048,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ2048_SKV1024_DH128_fp16.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,2048,128],f16>, %298 : !torch.vtensor<[1,32,1024,128],f16>, %301 : !torch.vtensor<[1,32,1024,128],f16>) -> !torch.vtensor<[1,32,2048,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,2048,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ2048_SKV1024_DH128_fp8.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,2048,128],f16>, %298 : !torch.vtensor<[1,32,1024,128],f16>, %301 : !torch.vtensor<[1,32,1024,128],f16>) -> !torch.vtensor<[1,32,2048,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,1024,128],f16>, !torch.vtensor<[1,32,1024,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,2048,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ2048_SKV2048_DH128_f16.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,2048,128],f16>, %298 : !torch.vtensor<[1,32,2048,128],f16>, %301 : !torch.vtensor<[1,32,2048,128],f16>) -> !torch.vtensor<[1,32,2048,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,2048,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ2048_SKV2048_DH128_f8.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,2048,128],f16>, %298 : !torch.vtensor<[1,32,2048,128],f16>, %301 : !torch.vtensor<[1,32,2048,128],f16>) -> !torch.vtensor<[1,32,2048,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,2048,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ2048_SKV2048_DH128_fp16.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,2048,128],f16>, %298 : !torch.vtensor<[1,32,2048,128],f16>, %301 : !torch.vtensor<[1,32,2048,128],f16>) -> !torch.vtensor<[1,32,2048,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,2048,128],f16> | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
attention/mlir/attention_B1_H32_SQ2048_SKV2048_DH128_fp8.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
module { | ||
func.func @main_0(%295 : !torch.vtensor<[1,32,2048,128],f16>, %298 : !torch.vtensor<[1,32,2048,128],f16>, %301 : !torch.vtensor<[1,32,2048,128],f16>) -> !torch.vtensor<[1,32,2048,128],f16> { | ||
%false_371 = torch.constant.bool false | ||
%float0.000000e00 = torch.constant.float 0.000000e+00 | ||
%none_372 = torch.constant.none | ||
%none_373 = torch.constant.none | ||
%282:2 = torch.operator "torch.aten._scaled_dot_product_flash_attention_for_cpu"(%295, %298, %301, %float0.000000e00, %false_371, %none_372, %none_373) : (!torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048,128],f16>, !torch.float, !torch.bool, !torch.none, !torch.none) -> (!torch.vtensor<[1,32,2048,128],f16>, !torch.vtensor<[1,32,2048], f32>) | ||
return %282#0 : !torch.vtensor<[1,32,2048,128],f16> | ||
} | ||
} |
Oops, something went wrong.