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
perf(models): enable decode CUDA graphs on the Qwen3.8-27B-FP8 bare route and overlap the batch lane (#640)
svonava0f0d691beae9
diff --git a/packages/sie_server/models/Qwen__Qwen3.8-27B-FP8.yaml b/packages/sie_server/models/Qwen__Qwen3.8-27B-FP8.yamlindex 6074af201..6179e670c 100644--- a/packages/sie_server/models/Qwen__Qwen3.8-27B-FP8.yaml+++ b/packages/sie_server/models/Qwen__Qwen3.8-27B-FP8.yaml@@ -59,7 +59,11 @@ tasks:max_sequence_length: 8192profiles:# Correctness-first bare route: official FP8 weights, BF16 KV, FP32 GDN- # state, no speculation, CUDA graphs disabled, and an 8K admission window.+ # state, no speculation, and an 8K admission window. Decode runs on CUDA+ # graphs (SGLang's default; prefill graphs stay off on this engine). At one+ # request in flight the graphs replay the same kernels, so greedy replies+ # are byte-identical to the eager launch: 60 of 60 page extractions and+ # photo questions matched, while GPU-seconds per extraction fell 6.4x.default:max_batch_tokens: 16384compute_precision: bfloat16@@ -71,7 +75,6 @@ profiles:SIE_SGLANG_SINGLE_IMAGE_MAX_PIXELS: "3211264"mem_fraction_static: 0.85served_model_name: Qwen/Qwen3.8-27B-FP8- disable_cuda_graph: trueattention_backend: flashinfergrammar_backend: xgrammarjson_number_max_digits: 19@@ -208,13 +211,19 @@ profiles:- "1"# H100-80GB batch lane: the h100-256k launch shape without speculation,- # admitting up to 16 running requests with CUDA graphs captured for every- # decode batch size through 16. Speculation stays off so xgrammar enforces+ # admitting up to 32 running requests with CUDA graphs captured for every+ # decode batch size through 32. Speculation stays off so xgrammar enforces# every constrained token, which makes this the concurrent grammar-safe# native-window lane. Measured on one H100 80GB with a ~670-token json_schema# request: 72 tok/s decode at batch 1 against 11.6 on the bare route, and# 148 requests/min at 8 in flight against 44. Standalone so its grammar twin# inherits only this shape.+ # Unlike the single-admission native-window pairs it keeps SGLang's overlap+ # scheduler: those pairs disable it for the speculative-V2 overlap crash on+ # hybrid Mamba, which does not apply to a non-speculative launch. On 222+ # page-image json_schema extractions, overlap plus 32 admissions cut+ # GPU-seconds per request by 10% at 1 in flight, 12% at 8 and 25% at 32,+ # with the extraction score unchanged.h100-256k-batch:grammar_profile: h100-256k-batch-no-specmax_output_tokens: 32768@@ -246,7 +255,6 @@ profiles:- "bfloat16"- "--mamba-radix-cache-strategy"- "extra_buffer"- - "--disable-overlap-schedule"- "--page-size"- "64"- "--chunked-prefill-size"@@ -254,9 +262,9 @@ profiles:- "--max-prefill-tokens"- "32768"- "--max-running-requests"- - "16"+ - "32"- "--cuda-graph-max-bs-decode"- - "16"+ - "32"runtime:first_chunk_timeout_s: 900inter_chunk_timeout_s: 30diff --git a/packages/sie_server/tests/config/test_qwen38_generation_profiles.py b/packages/sie_server/tests/config/test_qwen38_generation_profiles.pyindex 74787acea..6af97e010 100644--- a/packages/sie_server/tests/config/test_qwen38_generation_profiles.py+++ b/packages/sie_server/tests/config/test_qwen38_generation_profiles.py@@ -73,7 +73,9 @@ def test_qwen38_default_is_a_conservative_non_speculative_route() -> None:assert default.max_batch_tokens == 16384assert default.kv_budget_tokens == 8192assert default.loadtime["mem_fraction_static"] == 0.85- assert default.loadtime["disable_cuda_graph"] is True+ # Decode CUDA graphs are on: at one request in flight they replay the+ # eager kernels, so greedy replies are unchanged while decode is ~6x faster.+ assert "disable_cuda_graph" not in default.loadtimeassert default.loadtime["speculative"] == {"enabled": False}assert default.loadtime["attention_backend"] == "flashinfer"assert default.loadtime["extra_env"] == {"SIE_SGLANG_SINGLE_IMAGE_MAX_PIXELS": "3211264"}@@ -221,7 +223,7 @@ class _ConfigRegistry:return self._configs[name]-def test_qwen38_h100_batch_profile_is_the_native_no_spec_launch_with_sixteen_graphed_requests() -> None:+def test_qwen38_h100_batch_profile_is_the_native_no_spec_launch_with_32_graphed_overlapped_requests() -> None:config = load_model_config(_MODEL_PATH)configs = expand_profile_variants([config])single = config.resolve_profile("h100-256k-no-spec")@@ -239,11 +241,15 @@ def test_qwen38_h100_batch_profile_is_the_native_no_spec_launch_with_sixteen_graassert batch.runtime == single.runtime# The only launch differences from the single-admission H100 lane: up to- # 16 running requests, with decode CUDA graphs captured through batch 16.+ # 32 running requests, decode CUDA graphs captured through batch 32, and+ # SGLang's overlap scheduler left on. The single-admission lane disables+ # overlap for its speculative twin; this lane never speculates.args = list(batch.loadtime["extra_launch_args"])- assert args[args.index("--max-running-requests") + 1] == "16"- assert args[args.index("--cuda-graph-max-bs-decode") + 1] == "16"+ assert args[args.index("--max-running-requests") + 1] == "32"+ assert args[args.index("--cuda-graph-max-bs-decode") + 1] == "32"+ assert "--disable-overlap-schedule" not in argssingle_args = list(single.loadtime["extra_launch_args"])+ single_args.remove("--disable-overlap-schedule")for flag in ("--max-running-requests", "--cuda-graph-max-bs-decode"):args[args.index(flag) + 1] = single_args[single_args.index(flag) + 1]assert args == single_args