Support sliding window in triton backend (#6509)

This commit is contained in:
Jianan Ji authored and GitHub committed 2025-05-30 01:11:53 -07:00
1 parent d279d4990c
commit 22630ca242
6 files changed
+350 -13

No files matched your search

@@ -1025,10 +1025,6 @@ class ModelRunner:
return AiterAttnBackend(self)
elif self.server_args.attention_backend == "triton":
assert self.sliding_window_size is None, (
"Window attention is not supported in the triton attention backend. "
"Please use `--attention-backend flashinfer`."
)
assert not self.model_config.is_encoder_decoder, (
"Cross attention is not supported in the triton attention backend. "
"Please use `--attention-backend flashinfer`."