Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions python/sglang/srt/arg_groups/model_overrides/inkling.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,18 @@ def _inkling_overrides(server_args: Any, hf_config: Any) -> dict:
# handle_mamba_radix_cache rejects extra_buffer on a model without it.
if not cfg.disable_radix_cache:
overrides["uses_mamba_radix_cache"] = True
# Inkling attention runs only on the fa4 (Blackwell) or triton backends --
# Inkling attention runs only on the fa4 (Hopper/Blackwell) or triton backends --
# models/inkling_common/attn.py asserts attention_backend in {fa4, triton}.
# The generic resolver would otherwise pick trtllm_mha (SM100) / fa3
# (Hopper), so a bare launch fails on the first attention forward. Pin a
# supported default when the user left every attention-backend flag unset
# (mirrors the MiniMax-M3 SM100 fa4-default above); an explicit
# --attention-backend / --prefill/decode-attention-backend still wins.
if is_attention_backend_not_set(cfg):
inkling_attn_backend = "fa4" if get_platform().is_sm100 else "triton"
if get_platform().is_sm90 or get_platform().is_sm100:
inkling_attn_backend = "fa4"
else:
inkling_attn_backend = "triton"
overrides["attention_backend"] = inkling_attn_backend
logger.info(
f"Use {inkling_attn_backend} as the attention backend for Inkling "
Expand Down
Loading