[AMD] Fix DeepSeek-R1-MXFP4 accuracy with AITER FP8 (#37762)
This commit is contained in:
@@ -349,6 +349,7 @@ def _fused_rope_cat_and_cache(
|
|||||||
q_nope_out.dtype
|
q_nope_out.dtype
|
||||||
if attn.kv_cache_dtype == "fp8_e4m3"
|
if attn.kv_cache_dtype == "fp8_e4m3"
|
||||||
and attn.current_attention_backend == "aiter"
|
and attn.current_attention_backend == "aiter"
|
||||||
|
and q_nope_out.shape[-2] == 12
|
||||||
else kv_cache_dtype
|
else kv_cache_dtype
|
||||||
)
|
)
|
||||||
kv_pool = get_token_to_kv_pool()
|
kv_pool = get_token_to_kv_pool()
|
||||||
|
|||||||
Reference in New Issue
Block a user