Enable Llama 4 + TRTLLM MHA (#12003)
This commit is contained in:
@@ -966,7 +966,13 @@ class ServerArgs:
|
|||||||
"fa3",
|
"fa3",
|
||||||
"aiter",
|
"aiter",
|
||||||
"triton",
|
"triton",
|
||||||
}, "fa3, aiter, or triton is required for Llama4 model"
|
"trtllm_mha",
|
||||||
|
}, "fa3, aiter, triton, or trtllm_mha is required for Llama4 model"
|
||||||
|
if is_sm100_supported() and self.attention_backend is None:
|
||||||
|
self.attention_backend = "trtllm_mha"
|
||||||
|
logger.warning(
|
||||||
|
"Use trtllm_mha as attention backend on sm100 for Llama4 model"
|
||||||
|
)
|
||||||
elif model_arch in [
|
elif model_arch in [
|
||||||
"Gemma2ForCausalLM",
|
"Gemma2ForCausalLM",
|
||||||
"Gemma3ForCausalLM",
|
"Gemma3ForCausalLM",
|
||||||
|
|||||||
Reference in New Issue
Block a user