From 9003a4369dec434830df69502f0c1e473b75fc23 Mon Sep 17 00:00:00 2001 From: roikoren755 <26850796+roikoren755@users.noreply.github.com> Date: Mon, 15 Dec 2025 16:17:21 +0200 Subject: [PATCH] Add missing assertion in NemotronH path (#15193) Signed-off-by: Roi Koren --- python/sglang/srt/server_args.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/sglang/srt/server_args.py b/python/sglang/srt/server_args.py index a8b141477..b777ad3be 100644 --- a/python/sglang/srt/server_args.py +++ b/python/sglang/srt/server_args.py @@ -1266,6 +1266,9 @@ class ServerArgs: ) self.disable_radix_cache = True elif model_arch in ["NemotronHForCausalLM"]: + assert ( + not self.enable_mamba_extra_buffer() + ), f"mamba extra_buffer is not supported for {model_arch} model" model_config = self.get_model_config() if model_config.quantization in [ "modelopt",