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): leave prefill headroom on the Gemma 4 31B hi-res thinking profile (#681)
svonava7a225000b693
diff --git a/packages/sie_server/models/google__gemma-4-31B-it.yaml b/packages/sie_server/models/google__gemma-4-31B-it.yamlindex 1d9e73c18..9eabe74b2 100644--- a/packages/sie_server/models/google__gemma-4-31B-it.yaml+++ b/packages/sie_server/models/google__gemma-4-31B-it.yaml@@ -522,6 +522,12 @@ profiles:- "--constrained-json-disable-any-whitespace"# Repeat the full non-speculative launch because load-time overrides# replace the parent's block rather than merging it.+ # ``mem_fraction_static`` is 0.88 here, not the family's 0.90. Thinking+ # requests are long, so a lane runs many at once, and a burst of screenshot+ # prefills needs more activation memory than 0.90 leaves on an 80 GB H100.+ # With 32 image requests in flight at 0.90, SGLang hit CUDA OOM in the vision+ # path and failed requests; at 0.88 the same burst completed cleanly. The KV+ # pool shrinks from about 107.9K to 103.4K tokens.h100-96k-hires-thinking-no-spec:extends: h100-96k-hiresmax_output_tokens: 32768@@ -530,7 +536,7 @@ profiles:adapter_options:loadtime:max_seq_length: 98304- mem_fraction_static: 0.90+ mem_fraction_static: 0.88served_model_name: google/gemma-4-31B-itattention_backend: tritongrammar_backend: xgrammardiff --git a/packages/sie_server/tests/config/test_gemma_screenshot_profile.py b/packages/sie_server/tests/config/test_gemma_screenshot_profile.pyindex d0eeb30c9..ce5b9f2d9 100644--- a/packages/sie_server/tests/config/test_gemma_screenshot_profile.py+++ b/packages/sie_server/tests/config/test_gemma_screenshot_profile.py@@ -16,7 +16,13 @@ def test_hires_thinking_profile_preserves_the_non_speculative_document_launch()thinking = config.resolve_profile(PROFILE)answer_only = config.resolve_profile("h100-96k-hires-no-spec")- assert thinking.loadtime == answer_only.loadtime+ thinking_launch = dict(thinking.loadtime)+ answer_only_launch = dict(answer_only.loadtime)+ # Only the static memory fraction differs: the thinking profile leaves more+ # activation headroom for bursts of concurrent screenshot prefills.+ assert thinking_launch.pop("mem_fraction_static") == 0.88+ assert answer_only_launch.pop("mem_fraction_static") == 0.90+ assert thinking_launch == answer_only_launchassert thinking.runtime == answer_only.runtimeassert thinking.adapter_path == answer_only.adapter_pathassert thinking.compute_precision == answer_only.compute_precision == "bfloat16"