Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
8ae929fb
Commit
8ae929fb
authored
Aug 15, 2024
by
zhuwenwen
Browse files
update triton fa config for head_dim>128
parent
6172b158
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
cmake/utils.cmake
cmake/utils.cmake
+1
-1
vllm/attention/ops/flash_attn_triton_mqa_gqa.py
vllm/attention/ops/flash_attn_triton_mqa_gqa.py
+1
-0
No files found.
cmake/utils.cmake
View file @
8ae929fb
...
...
@@ -128,7 +128,7 @@ function (get_torch_gpu_compiler_flags OUT_GPU_FLAGS GPU_LANG)
"-U__HIP_NO_HALF_OPERATORS__"
"-fno-gpu-rdc"
"--gpu-max-threads-per-block=1024"
)
message
(
STATUS
"
${
GPU_FLAGS
}
"
)
endif
()
set
(
${
OUT_GPU_FLAGS
}
${
GPU_FLAGS
}
PARENT_SCOPE
)
endfunction
()
...
...
vllm/attention/ops/flash_attn_triton_mqa_gqa.py
View file @
8ae929fb
...
...
@@ -306,6 +306,7 @@ def _attn_fwd_inner(
triton
.
Config
({
'BLOCK_M'
:
128
,
'BLOCK_N'
:
64
,
'waves_per_eu'
:
0
,
'PRE_LOAD_V'
:
False
},
num_stages
=
1
,
num_warps
=
4
),
triton
.
Config
({
'BLOCK_M'
:
128
,
'BLOCK_N'
:
32
,
'waves_per_eu'
:
0
,
'PRE_LOAD_V'
:
True
},
num_stages
=
2
,
num_warps
=
4
),
triton
.
Config
({
'BLOCK_M'
:
128
,
'BLOCK_N'
:
32
,
'waves_per_eu'
:
0
,
'PRE_LOAD_V'
:
False
},
num_stages
=
2
,
num_warps
=
4
),
triton
.
Config
({
'BLOCK_M'
:
128
,
'BLOCK_N'
:
16
,
'waves_per_eu'
:
0
,
'PRE_LOAD_V'
:
False
},
num_stages
=
1
,
num_warps
=
8
),
triton
.
Config
({
'BLOCK_M'
:
64
,
'BLOCK_N'
:
64
,
'waves_per_eu'
:
0
,
'PRE_LOAD_V'
:
False
},
num_stages
=
1
,
num_warps
=
8
),
triton
.
Config
({
'BLOCK_M'
:
64
,
'BLOCK_N'
:
64
,
'waves_per_eu'
:
0
,
'PRE_LOAD_V'
:
True
},
num_stages
=
1
,
num_warps
=
4
),
triton
.
Config
({
'BLOCK_M'
:
32
,
'BLOCK_N'
:
32
,
'waves_per_eu'
:
0
,
'PRE_LOAD_V'
:
False
},
num_stages
=
1
,
num_warps
=
8
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment