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
feat(models): add thinking profiles for Qwen3.8-27B-FP8 (#383)
svonavaad87d963f57a
diff --git a/packages/sie_server/models/Qwen__Qwen3.8-27B-FP8.yaml b/packages/sie_server/models/Qwen__Qwen3.8-27B-FP8.yamlindex 4801c454f..20aa6b1f3 100644--- a/packages/sie_server/models/Qwen__Qwen3.8-27B-FP8.yaml+++ b/packages/sie_server/models/Qwen__Qwen3.8-27B-FP8.yaml@@ -25,9 +25,9 @@ tasks:grammar: ["json_schema", "regex"]streaming: truetools: true- # Qwen3.8 defaults to thinking. The initial SIE contract is answer-only;- # reasoning profiles can be added after their parser/output behavior is- # tested independently.+ # Qwen3.8 defaults to thinking. The bare model and every non-thinking+ # profile are answer-only; reasoning is exposed only through the explicit+ # thinking profiles below.chat_template_kwargs:enable_thinking: falseprewarm_grammars:@@ -181,6 +181,74 @@ profiles:- "--cuda-graph-max-bs-decode"- "1"+ # H100-80GB thinking: the h100-256k launch shape without speculation, plus+ # the qwen3 reasoning parser and the strict-thinking lane so a premature EOS+ # cannot leave the answer inside the private reasoning channel. The chat+ # template's own default effort (xhigh) applies because the gateway does not+ # forward request-level reasoning_effort. Sampling is the model card's+ # thinking recipe. Standalone so its children inherit only this shape.+ h100-256k-thinking:+ grammar_profile: h100-256k-thinking-no-spec+ max_output_tokens: 32768+ max_batch_tokens: 262144+ compute_precision: bfloat16+ adapter_path: sie_server.adapters.sglang.cuda13:SGLangStrictThinkingAdapter+ kv_budget_tokens: 262144+ chat_template_kwargs:+ enable_thinking: true+ adapter_options:+ loadtime:+ max_seq_length: 262144+ mem_fraction_static: 0.85+ served_model_name: Qwen/Qwen3.8-27B-FP8+ attention_backend: fa3+ grammar_backend: xgrammar+ reasoning_parser: qwen3+ tool_call_parser: qwen3_coder+ extra_env:+ SGLANG_JIT_DEEPGEMM_FAST_WARMUP: "1"+ speculative:+ enabled: false+ extra_launch_args:+ - "--mm-process-config"+ - '{"image":{"min_pixels":65536,"max_pixels":1003520}}'+ - "--kv-cache-dtype"+ - "bfloat16"+ - "--mamba-ssm-dtype"+ - "bfloat16"+ - "--mamba-radix-cache-strategy"+ - "extra_buffer"+ - "--disable-overlap-schedule"+ - "--page-size"+ - "64"+ - "--chunked-prefill-size"+ - "32768"+ - "--max-prefill-tokens"+ - "32768"+ - "--max-running-requests"+ - "1"+ - "--cuda-graph-max-bs-decode"+ - "1"+ runtime:+ first_chunk_timeout_s: 900+ inter_chunk_timeout_s: 30+ overall_timeout_s: 1800+ default_sampling:+ temperature: 1.0+ top_p: 0.95+ top_k: 20+ presence_penalty: 0.0+ stop_tokens:+ - "<|im_end|>"+ # Constrained-decoding identity for the thinking launch; identical because+ # the parent is already non-speculative and grammar-safe.+ h100-256k-thinking-no-spec:+ extends: h100-256k-thinking+ # Hardware-neutral alias. Thinking needs the native window, so it resolves+ # to the H100 256K lane rather than the 8K bare route.+ thinking:+ extends: h100-256k-thinking+# H200-141GB: deliberately retain the measured H100 SM90 recipe and# one-admission launch shape; the larger card provides more memory headroom# without a second tuning surface.diff --git a/packages/sie_server/tests/config/test_generation_mode_profiles.py b/packages/sie_server/tests/config/test_generation_mode_profiles.pyindex 2418cfb00..9edb6e175 100644--- a/packages/sie_server/tests/config/test_generation_mode_profiles.py+++ b/packages/sie_server/tests/config/test_generation_mode_profiles.py@@ -13,6 +13,7 @@ _THINKING_MODELS = (("Qwen__Qwen3.5-4B.yaml", "Qwen/Qwen3.5-4B"),("Qwen__Qwen3.6-27B.yaml", "Qwen/Qwen3.6-27B"),("Qwen__Qwen3.6-35B-A3B.yaml", "Qwen/Qwen3.6-35B-A3B"),+ ("Qwen__Qwen3.8-27B-FP8.yaml", "Qwen/Qwen3.8-27B-FP8"),("google__gemma-4-E2B-it.yaml", "google/gemma-4-E2B-it"),("google__gemma-4-E4B-it.yaml", "google/gemma-4-E4B-it"),("google__gemma-4-26B-A4B-it.yaml", "google/gemma-4-26B-A4B-it"),@@ -42,6 +43,7 @@ _LONG_CONTEXT_THINKING_IDS = {model_id for _, model_id in _LONG_CONTEXT_THINKING_HARDWARE_THINKING_PROFILES = {"Qwen/Qwen3.6-27B": ("h100-256k-thinking", "long-context-thinking-no-spec"),"Qwen/Qwen3.6-35B-A3B": ("h100-256k-thinking",),+ "Qwen/Qwen3.8-27B-FP8": ("h100-256k-thinking", "h100-256k-thinking-no-spec"),"google/gemma-4-31B-it": ("h100-96k-thinking","h200-256k-thinking",diff --git a/packages/sie_server/tests/config/test_qwen38_generation_profiles.py b/packages/sie_server/tests/config/test_qwen38_generation_profiles.pyindex 86df47880..df8363928 100644--- a/packages/sie_server/tests/config/test_qwen38_generation_profiles.py+++ b/packages/sie_server/tests/config/test_qwen38_generation_profiles.py@@ -8,6 +8,8 @@ _MODEL_ID = "Qwen/Qwen3.8-27B-FP8"_MODEL_PATH = Path(__file__).resolve().parents[2] / "models" / "Qwen__Qwen3.8-27B-FP8.yaml"_REVISION = "017b9c7af6b5689d5dd426a76e0bc077eb5ca20a"_ADAPTER = "sie_server.adapters.sglang.cuda13:SGLangCuda13Adapter"+_THINKING_ADAPTER = "sie_server.adapters.sglang.cuda13:SGLangStrictThinkingAdapter"+_THINKING_PROFILES = ("h100-256k-thinking", "h100-256k-thinking-no-spec", "thinking")_NATIVE_CONTEXT = 262144_NATIVE_OUTPUT_CAP = 32768_SPECULATIVE = {@@ -49,6 +51,9 @@ def test_qwen38_uses_the_pinned_official_fp8_checkpoint() -> None:"h200-256k-no-spec","rtx-pro-6000-256k","rtx-pro-6000-256k-no-spec",+ "h100-256k-thinking",+ "h100-256k-thinking-no-spec",+ "thinking",}@@ -168,3 +173,31 @@ def test_qwen38_hardware_launches_keep_fp8_weights_with_tuned_state_precision()assert rtx_profile.loadtime["attention_backend"] == "flashinfer"assert rtx_args[rtx_args.index("--chunked-prefill-size") + 1] == "2048"assert "--max-prefill-tokens" not in rtx_args+++def test_qwen38_thinking_profiles_are_the_h100_native_shape_without_speculation() -> None:+ config = load_model_config(_MODEL_PATH)+ configs = expand_profile_variants([config])+ answer_only = config.resolve_profile("h100-256k-no-spec")+ thinking = config.resolve_profile("h100-256k-thinking")++ assert thinking.grammar_profile == "h100-256k-thinking-no-spec"+ for name in _THINKING_PROFILES:+ profile = config.resolve_profile(name)+ variant = configs[f"{_MODEL_ID}:{name}"]+ assert variant.tasks.generate is not None+ assert variant.tasks.generate.chat_template_kwargs == {"enable_thinking": True}+ assert variant.tasks.generate.context_length == _NATIVE_CONTEXT+ assert variant.tasks.generate.max_output_tokens == _NATIVE_OUTPUT_CAP+ assert profile.adapter_path == _THINKING_ADAPTER+ assert profile.loadtime["speculative"] == {"enabled": False}+ assert profile.loadtime["reasoning_parser"] == "qwen3"+ assert profile.loadtime | {"reasoning_parser": None} == answer_only.loadtime | {"reasoning_parser": None}+ assert profile.runtime["default_sampling"] == {+ "temperature": 1.0,+ "top_p": 0.95,+ "top_k": 20,+ "presence_penalty": 0.0,+ }+ assert profile.runtime | {"default_sampling": None} == answer_only.runtime | {"default_sampling": None}+ assert profile.kv_budget_tokens == profile.max_batch_tokens == _NATIVE_CONTEXT