Open-source inference server and production cluster for all the models your agent needs.
Python bgecolbertdata-pipelinedeep-learningembeddingsinferenceinference-serverinformation-retrievalllmmlmlopsnatural-language-processingnlppythonrerankingretrievalretrieval-augmented-generationsemantic-searchspladevector-search
fix(models): name a tool-call parser for Qwen3-4B-Instruct-2507 (#957)
Shai Shmuel3925d4f24897
diff --git a/packages/sie_server/models/Qwen__Qwen3-4B-Instruct-2507.yaml b/packages/sie_server/models/Qwen__Qwen3-4B-Instruct-2507.yamlindex 694ac6e9d..c19a6aece 100644--- a/packages/sie_server/models/Qwen__Qwen3-4B-Instruct-2507.yaml+++ b/packages/sie_server/models/Qwen__Qwen3-4B-Instruct-2507.yaml@@ -111,6 +111,12 @@ profiles:# and serves json_schema + regex identically (GPU-verified on L4,# SGLang 0.5.10.post1). Same backend the Gemma-4 profiles pin.grammar_backend: xgrammar+ # The chat template writes Hermes-style JSON tool calls+ # (``<tool_call>{"name": ..., "arguments": ...}</tool_call>``).+ # Naming the parser gives the worker an explicit tool-call format,+ # which forced ``tool_choice`` (``required`` / a named function)+ # needs to build its grammar. Set on every profile.+ tool_call_parser: qwen25# speculative decoding (MTP/EAGLE/NGRAM) intentionally absent;# week-1 validation decides whether to promote a side-cell. See §4.9.runtime:@@ -148,6 +154,7 @@ profiles:# XGrammar, matching the default profile — Outlines crashes SGLang's# scheduler on anchored regexes (``^``/``$``). See the default profile.grammar_backend: xgrammar+ tool_call_parser: qwen25runtime:first_chunk_timeout_s: 30inter_chunk_timeout_s: 10@@ -176,6 +183,7 @@ profiles:# XGrammar, matching the default profile — Outlines crashes SGLang's# scheduler on anchored regexes (``^``/``$``). See the default profile.grammar_backend: xgrammar+ tool_call_parser: qwen25runtime:first_chunk_timeout_s: 30inter_chunk_timeout_s: 10diff --git a/packages/sie_server/tests/config/test_tool_call_parser_catalog.py b/packages/sie_server/tests/config/test_tool_call_parser_catalog.pyindex bbfedd0a7..68d0f04ff 100644--- a/packages/sie_server/tests/config/test_tool_call_parser_catalog.py+++ b/packages/sie_server/tests/config/test_tool_call_parser_catalog.py@@ -21,8 +21,6 @@ MODELS_DIR = Path(__file__).resolve().parents[2] / "models"# remove an entry once its model names a parser (the test fails if one is stale)._KNOWN_UNMAPPED = frozenset({- # No ``tool_call_parser`` in any profile.- "Qwen/Qwen3-4B-Instruct-2507",# The fake test model: a stub adapter with no on-wire tool-call format."sie-fake",}