[Attention][FlashInfer] Enable FP8 FlashInfer (TRTLLM) MLA decode (#24705)
Signed-off-by: Matthew Bonanni <mbonanni001@gmail.com>
This commit is contained in:
@@ -179,6 +179,7 @@ class CudaPlatformBase(Platform):
|
||||
cache_config.block_size = 128
|
||||
logger.info("Forcing kv cache block size to 128 for "
|
||||
"CUTLASS_MLA backend.")
|
||||
|
||||
if use_flashinfer_mla and cache_config.block_size not in [32, 64]:
|
||||
cache_config.block_size = 64
|
||||
logger.info(
|
||||
@@ -541,7 +542,9 @@ class CudaPlatformBase(Platform):
|
||||
attention_backend = "FLASHMLA"
|
||||
|
||||
# Only FlashMLA and CUTLASS_MLA support fp8
|
||||
if attention_backend in ["FLASHMLA", "CUTLASS_MLA"]:
|
||||
if attention_backend in [
|
||||
"FLASHMLA", "CUTLASS_MLA", "FLASHINFER_MLA"
|
||||
]:
|
||||
supported = True
|
||||
else:
|
||||
supported = (not fp8_attention)
|
||||
|
||||
Reference in New Issue
Block a user