Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
a37c4ef
feat(why_sie): add the why_sie folder and a cold-start and burst recipe
rparundekar Nov 16, 2026
6510acb
feat(why_sie): add the two-SGLang-models-on-one-GPU recipe
rparundekar Nov 16, 2026
6ef6d52
docs(why_sie): note the published-image limit for the SGLang pair
rparundekar Nov 16, 2026
3cef53e
feat(why_sie): add the GPU break-even recipe for bge-m3
rparundekar Nov 16, 2026
ff0bf51
feat(why_sie): add the more-models-than-fit recipe
rparundekar Nov 16, 2026
360fb9c
feat(why_sie): add the five-models-on-fewer-GPUs recipe
rparundekar Nov 16, 2026
53e8cbd
chore: merge feat/why-sie-r3
rparundekar Nov 16, 2026
f01088c
chore: merge feat/why-sie-r2
rparundekar Nov 16, 2026
f1e54e0
docs(why_sie): index the GPU break-even, packing and more-models-than…
rparundekar Nov 16, 2026
b444fed
feat(why_sie): add the kill-a-worker-under-load recipe
rparundekar Nov 16, 2026
bd5ac0e
chore: merge feat/why-sie-r4r8
rparundekar Nov 16, 2026
4786855
docs(why_sie): index the worker-kill recipe
rparundekar Nov 16, 2026
559cf52
fix(why_sie): bind the worker-kill stack to loopback and report every…
rparundekar Nov 16, 2026
a80f1d7
fix(why_sie): count failed turns and report skipped setups in the pac…
rparundekar Nov 16, 2026
ddf9d18
fix(why_sie): make the more-models-than-fit verdicts fail on failed r…
rparundekar Nov 16, 2026
5af1c64
fix(why_sie): require an out-of-memory error for the SGLang defaults …
rparundekar Nov 16, 2026
e69c164
fix(why_sie): compute the break-even verdicts in code and skip bad cells
rparundekar Nov 16, 2026
70f0e9b
fix(why_sie): report a warm model as no cold start measured
rparundekar Nov 16, 2026
aa15bde
docs(why_sie): quote each recipe's own run and state what it compares…
rparundekar Nov 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ The first call can wait minutes while SIE Serverless starts a cold model.
asserts on its own parsing and rule functions, using hand-written strings,
the committed `data/` and hand-written stand-in model replies. It never calls
SIE and never replays a recorded response. CI runs it.
- Recipes in `why_sie/` measure SIE itself: each runs one serving job on SIE and
compares it with the same job built by hand where that's practical to run, or
with a baseline its README states (one server per model, an earlier
measurement, a GPU rented all month). They report latency, errors and
throughput, and they are the one place numbers like these belong. They still
run live (no recorded numbers stand in for a run), and their README names the
hardware each run used. Recipes there that start their own servers may need
local GPUs and Docker instead of only `uv` and an SIE API key, and call SIE
through their own servers' URLs instead of `make_client()`.
- All data is synthetic or from a public dataset that allows redistribution.
Name the source, revision and license in the recipe README. No real people,
customers, credentials or live URLs.
Expand Down
20 changes: 19 additions & 1 deletion MODELS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ it's called through the Anthropic API with your own key, not served by SIE, so i
| [`knowledgator/gliclass-edge-v3.0`](https://huggingface.co/knowledgator/gliclass-edge-v3.0) | Pick one of your labels for a text, zero-shot, and as the base you fine-tune on your own labelled rows | `extract` | Apache 2.0 | `cuda12-default` | [fine_tune_a_decision_model](fine_tuning/fine_tune_a_decision_model) |
| [`knowledgator/gliclass-instruct-edge-v1.0`](https://huggingface.co/knowledgator/gliclass-instruct-edge-v1.0) | Pick one of your labels for a text, with labelled examples in the request (few-shot) | `extract` | Apache 2.0 | `cuda12-default` | [fine_tune_a_decision_model](fine_tuning/fine_tune_a_decision_model) |
| `superlinked/pii-redact` | Find personal data to redact. SIE composes [`urchade/gliner_multi_pii-v1`](https://huggingface.co/urchade/gliner_multi_pii-v1) and [`numind/NuNER_Zero`](https://huggingface.co/numind/NuNER_Zero) on the server | `extract` | Apache 2.0 and MIT | `cuda12-default` | [summarize_case_with_sources](finance/summarize_case_with_sources), [pseudonymize_clinical_notes](healthcare/pseudonymize_clinical_notes), [summarize_claim_for_handover](insurance/summarize_claim_for_handover), [redact_documents_with_log](legal/redact_documents_with_log), [redact_logs_before_sharing](sre/redact_logs_before_sharing), [diagnose_high_bill_complaints](agentic/diagnose_high_bill_complaints), [flag_unusual_logs_and_investigate](agentic/flag_unusual_logs_and_investigate), [fix_laptop_compliance_with_guarded_agent](agentic/fix_laptop_compliance_with_guarded_agent), [screen_applicants_through_mcp_server](agentic/screen_applicants_through_mcp_server) |
| [`Qwen/Qwen3-Embedding-4B`](https://huggingface.co/Qwen/Qwen3-Embedding-4B) | Embed text for similarity search, with an instruction | `encode` | Apache 2.0 | `cuda12-sglang-embedding` (new in v0.11.1, not yet smoke-tested), or self-host `Qwen/Qwen3-Embedding-8B` on `cuda12-default` | [categorize_products_into_taxonomy](ecommerce/categorize_products_into_taxonomy), [match_products_to_catalog](ecommerce/match_products_to_catalog), [draft_internal_paper_from_outline](healthcare/draft_internal_paper_from_outline), [keep_facts_current_from_notes](personal/keep_facts_current_from_notes), [match_alerts_to_runbooks](sre/match_alerts_to_runbooks), [diagnose_high_bill_complaints](agentic/diagnose_high_bill_complaints), [flag_unusual_logs_and_investigate](agentic/flag_unusual_logs_and_investigate) |
| [`Qwen/Qwen3-Embedding-4B`](https://huggingface.co/Qwen/Qwen3-Embedding-4B) | Embed text for similarity search, with an instruction | `encode` | Apache 2.0 | the `sglang-embedding` bundle, which has no published image in v0.11.1 ([superlinked/sie#969](https://github.com/superlinked/sie/issues/969)), or self-host `Qwen/Qwen3-Embedding-8B` on `cuda12-default` | [categorize_products_into_taxonomy](ecommerce/categorize_products_into_taxonomy), [match_products_to_catalog](ecommerce/match_products_to_catalog), [draft_internal_paper_from_outline](healthcare/draft_internal_paper_from_outline), [keep_facts_current_from_notes](personal/keep_facts_current_from_notes), [match_alerts_to_runbooks](sre/match_alerts_to_runbooks), [diagnose_high_bill_complaints](agentic/diagnose_high_bill_complaints), [flag_unusual_logs_and_investigate](agentic/flag_unusual_logs_and_investigate), [share_one_gpu_between_two_sglang_models](why_sie/share_one_gpu_between_two_sglang_models) |
| [`docling`](https://github.com/docling-project/docling) | Turn a PDF into text and tables, page by page | `extract` | MIT (the library; its layout and table models have their own cards) | `cuda12-default` | [map_financial_statements_to_template](finance/map_financial_statements_to_template), [check_contracts_for_required_clauses](legal/check_contracts_for_required_clauses), [index_and_check_received_documents](legal/index_and_check_received_documents), [review_contract_against_playbook](legal/review_contract_against_playbook) |
| [`google/siglip-so400m-patch14-384`](https://huggingface.co/google/siglip-so400m-patch14-384) | Embed photos and text labels in one space | `encode` | Apache 2.0 | `cuda12-default` | [match_products_to_catalog](ecommerce/match_products_to_catalog), [search_products_by_photo_and_text](ecommerce/search_products_by_photo_and_text) |
| [`nvidia/parakeet-tdt-0.6b-v3`](https://huggingface.co/nvidia/parakeet-tdt-0.6b-v3) | Transcribe speech | `extract` | CC BY 4.0 | `cuda12-transformers5` | [check_call_against_claim_record](insurance/check_call_against_claim_record), [keep_facts_current_from_notes](personal/keep_facts_current_from_notes), [turn_messages_into_actions](personal/turn_messages_into_actions) |
Expand All @@ -28,6 +28,24 @@ it's called through the Anthropic API with your own key, not served by SIE, so i
| [`IDEA-Research/grounding-dino-base`](https://huggingface.co/IDEA-Research/grounding-dino-base) | Draw boxes around objects named in text | `extract` | Apache 2.0 | `cuda12-default` | [check_shelf_from_photo](retail/check_shelf_from_photo) |
| [`Qwen/Qwen3Guard-Gen-4B`](https://huggingface.co/Qwen/Qwen3Guard-Gen-4B) | Give a safety verdict and categories for a prompt | `chat_completions` | Apache 2.0 | `cuda12-sglang` | [screen_assistant_prompts](security/screen_assistant_prompts) |
| [`knowledgator/gliner-relex-large-v1.0`](https://huggingface.co/knowledgator/gliner-relex-large-v1.0) | Find entities and the relations between them | `extract` | Apache 2.0 | `cuda12-default` | [find_detection_gaps](security/find_detection_gaps) |
| [`BAAI/bge-m3`](https://huggingface.co/BAAI/bge-m3) | Embed text for search | `encode` | MIT | `cuda12-default` | [measure_cold_starts_and_bursts](why_sie/measure_cold_starts_and_bursts), [pack_five_models_on_one_gpu](why_sie/pack_five_models_on_one_gpu), [serve_more_models_than_fit](why_sie/serve_more_models_than_fit), [find_when_a_gpu_pays_off](why_sie/find_when_a_gpu_pays_off), [kill_a_worker_under_load](why_sie/kill_a_worker_under_load) |
| [`Qwen/Qwen3-VL-Reranker-2B`](https://huggingface.co/Qwen/Qwen3-VL-Reranker-2B) | Score passages against a query; the cold start in the cold-start recipe | `score` | Apache 2.0 | `cuda12-default` | [measure_cold_starts_and_bursts](why_sie/measure_cold_starts_and_bursts) |
| [`Qwen/Qwen3Guard-Gen-0.6B`](https://huggingface.co/Qwen/Qwen3Guard-Gen-0.6B) | Check a chat message against a safety policy | `chat_completions` | Apache 2.0 | `cuda12-sglang` | [share_one_gpu_between_two_sglang_models](why_sie/share_one_gpu_between_two_sglang_models), [pack_five_models_on_one_gpu](why_sie/pack_five_models_on_one_gpu), [kill_a_worker_under_load](why_sie/kill_a_worker_under_load) |
| [`BAAI/bge-reranker-v2-m3`](https://huggingface.co/BAAI/bge-reranker-v2-m3) | Score passages against a query | `score` | Apache 2.0 | `cuda12-default` | [pack_five_models_on_one_gpu](why_sie/pack_five_models_on_one_gpu), [serve_more_models_than_fit](why_sie/serve_more_models_than_fit) |
| [`MoritzLaurer/deberta-v3-base-zeroshot-v2.0`](https://huggingface.co/MoritzLaurer/deberta-v3-base-zeroshot-v2.0) | Pick labels for a text, zero-shot | `extract` | MIT | `cuda12-default` | [pack_five_models_on_one_gpu](why_sie/pack_five_models_on_one_gpu), [serve_more_models_than_fit](why_sie/serve_more_models_than_fit) |
| [`urchade/gliner_multi_pii-v1`](https://huggingface.co/urchade/gliner_multi_pii-v1) | Find personal details in text | `extract` | Apache 2.0 | `cuda12-default` | [pack_five_models_on_one_gpu](why_sie/pack_five_models_on_one_gpu), [serve_more_models_than_fit](why_sie/serve_more_models_than_fit) |
| [`intfloat/e5-large-v2`](https://huggingface.co/intfloat/e5-large-v2) | Embed text for search | `encode` | MIT | `cuda12-default` | [serve_more_models_than_fit](why_sie/serve_more_models_than_fit) |
| [`intfloat/e5-base-v2`](https://huggingface.co/intfloat/e5-base-v2) | Embed text for search | `encode` | MIT | `cuda12-default` | [serve_more_models_than_fit](why_sie/serve_more_models_than_fit) |
| [`intfloat/multilingual-e5-large`](https://huggingface.co/intfloat/multilingual-e5-large) | Embed text in many languages | `encode` | MIT | `cuda12-default` | [serve_more_models_than_fit](why_sie/serve_more_models_than_fit) |
| [`intfloat/multilingual-e5-large-instruct`](https://huggingface.co/intfloat/multilingual-e5-large-instruct) | Embed text in many languages, with an instruction | `encode` | MIT | `cuda12-default` | [serve_more_models_than_fit](why_sie/serve_more_models_than_fit) |
| [`mixedbread-ai/mxbai-embed-large-v1`](https://huggingface.co/mixedbread-ai/mxbai-embed-large-v1) | Embed text for search | `encode` | Apache 2.0 | `cuda12-default` | [serve_more_models_than_fit](why_sie/serve_more_models_than_fit) |
| [`Snowflake/snowflake-arctic-embed-l-v2.0`](https://huggingface.co/Snowflake/snowflake-arctic-embed-l-v2.0) | Embed text for search | `encode` | Apache 2.0 | `cuda12-default` | [serve_more_models_than_fit](why_sie/serve_more_models_than_fit) |
| [`BAAI/bge-reranker-large`](https://huggingface.co/BAAI/bge-reranker-large) | Score passages against a query | `score` | MIT | `cuda12-default` | [serve_more_models_than_fit](why_sie/serve_more_models_than_fit) |
| [`MoritzLaurer/deberta-v3-large-zeroshot-v2.0`](https://huggingface.co/MoritzLaurer/deberta-v3-large-zeroshot-v2.0) | Pick labels for a text, zero-shot | `extract` | MIT | `cuda12-default` | [serve_more_models_than_fit](why_sie/serve_more_models_than_fit) |
| [`gliner-community/gliner_large-v2.5`](https://huggingface.co/gliner-community/gliner_large-v2.5) | Find named entities in text | `extract` | Apache 2.0 | `cuda12-default` | [serve_more_models_than_fit](why_sie/serve_more_models_than_fit) |
| [`gliner-community/gliner_medium-v2.5`](https://huggingface.co/gliner-community/gliner_medium-v2.5) | Find named entities in text | `extract` | Apache 2.0 | `cuda12-default` | [serve_more_models_than_fit](why_sie/serve_more_models_than_fit) |
| [`urchade/gliner_multi-v2.1`](https://huggingface.co/urchade/gliner_multi-v2.1) | Find named entities in text, many languages | `extract` | Apache 2.0 | `cuda12-default` | [serve_more_models_than_fit](why_sie/serve_more_models_than_fit) |
| [`urchade/gliner_large-v2.1`](https://huggingface.co/urchade/gliner_large-v2.1) | Find named entities in text | `extract` | Apache 2.0 | `cuda12-default` | [serve_more_models_than_fit](why_sie/serve_more_models_than_fit) |

## Swaps we ran

Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,21 @@ model it started from. Serve the result with SIE Local or SIE Cluster.
| [Turn messages into calendar holds, payments, replies and to-dos](personal/turn_messages_into_actions) | parakeet-tdt-0.6b-v3, LightOnOCR-3-4B, GLiNER2.5-Decide, gliner2-large-v1 | 30 | 11 s |
| [Keep a fact sheet current from your notes, voice memos and scans](personal/keep_facts_current_from_notes) | parakeet-tdt-0.6b-v3, LightOnOCR-3-4B, Qwen3-Embedding-4B, Qwen3-Reranker-4B, Qwen3.8-27B-FP8 | 38 | 26 s |

### Why SIE

These recipes measure SIE itself. Each one does a serving job the way you'd build it by hand, then
does the same job on SIE, and prints the numbers. [why_sie/](why_sie) says what each one found,
including where SIE doesn't win.

| Recipe | Models | SIE calls | Run time |
| --- | --- | --- | --- |
| [Measure what a request sees when its model is cold, and how a burst comes back](why_sie/measure_cold_starts_and_bursts) | Qwen3-VL-Reranker-2B, bge-m3 | 2,002 | 30 s warm; about 2 min with the reranker cold |
| [Put two SGLang models on one GPU, by hand and with SIE](why_sie/share_one_gpu_between_two_sglang_models) | Qwen3-Embedding-4B, Qwen3Guard-Gen-0.6B | run on your own GPU, no SIE Serverless calls | about 40 min on one L4 |
| [Pack an agent's five models onto fewer GPUs, and measure what a turn costs](why_sie/pack_five_models_on_one_gpu) | Qwen3Guard-Gen-0.6B, bge-m3, bge-reranker-v2-m3, deberta-v3-base-zeroshot-v2.0, gliner_multi_pii-v1 | run on your own GPUs, no SIE Serverless calls | about 45 min on four 24 GB GPUs |
| [Serve more small models than fit on one GPU, and see what packing costs](why_sie/serve_more_models_than_fit) | 16 small encoders, rerankers and extractors (bge-m3 pinned) | run on your own GPU, no SIE Serverless calls | about 30 min on one 24 GB GPU |
| [Find when renting a GPU beats paying per call](why_sie/find_when_a_gpu_pays_off) | bge-m3 | run on your own GPU, no SIE Serverless calls | about 15 min on one L4 |
| [Kill a GPU worker under load, behind SIE's queue and behind a round-robin](why_sie/kill_a_worker_under_load) | bge-m3, Qwen3Guard-Gen-0.6B | run on your own GPUs, no SIE Serverless calls | about 50 min on two 24 GB GPUs |

## Contributing a recipe

See [CONTRIBUTING.md](CONTRIBUTING.md). In short: a new folder under its industry with
Expand Down
1 change: 1 addition & 0 deletions tools/check_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"retail",
"security",
"sre",
"why_sie",
)
REQUIRED = (
"recipe.py",
Expand Down
29 changes: 29 additions & 0 deletions why_sie/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Why SIE: the serving jobs you'd otherwise build yourself

Picking a small open model for a job is the part that gets the attention. Running five or ten of them
on GPUs you can afford, through traffic spikes and crashed workers, is a separate problem, and it's
the one SIE (the Superlinked Inference Engine) exists to solve. You can solve it yourself, with one
vLLM or SGLang server per model, a load balancer and some scripts. Plenty of teams do.

The recipes in this folder are how we check whether SIE does it better. Each one takes one serving
job and compares SIE with what you'd do without it: the same job built by hand where that's practical
to run (plain SGLang, a round-robin in front of the servers), or else a stated baseline (one server per
model, a cluster we measured before, a GPU rented all month). It runs live and prints the numbers. Not
every comparison comes out in SIE's favour, and the README for each one says so. If you run one on your
own GPUs and get a different answer, we'd like to hear about it.

All but the cold-start recipe start their own servers, so they need one to four 24 GB GPUs and Docker
(or an environment with SIE installed). Only the cold-start recipe uses SIE Serverless.

| Job | Compared with | With SIE | What we found |
| --- | --- | --- | --- |
| [Measure cold starts and bursts](measure_cold_starts_and_bursts) | Our own Kubernetes cluster, measured in May 2026: 5 to 9 minutes to start a model on a new GPU node | SIE Serverless: a cold reranker answered after 81.5 s; 2,000 calls from 32 callers had no errors, 95% within 1.4 s | SIE wins for spiky traffic. Large models still take 2 to 3 minutes to start. |
| [Two SGLang models on one GPU](share_one_gpu_between_two_sglang_models) | Plain SGLang: at its defaults the second server runs out of memory; with memory set by hand the embedder kept 64% of its throughput and the guard 47% | Both started on the first try, memory sized from the model files; they kept 66% and 64% | SIE wins on effort. Neither setup kept the 80% we hoped for, because the two models share the GPU's compute. |
| [Five models on fewer GPUs](pack_five_models_on_one_gpu) | One SIE server per model, one GPU each | All five on two GPUs, or on one | Packing missed the 1.25 bar at every load in this run. At medium load the slowest 5% of turns took 2.1 times as long on two GPUs and 3.2 times on one; the reranker slows the models that share its card. |
| [More models than fit](serve_more_models_than_fit) | Ten models that fit, on the same server | Sixteen models on one GPU, with unloading and one model pinned | Shows SIE's limits: about 1,740 unloads an hour once the models don't fit, and a median 10.5 s wait when a request's model had to load. The pinned model never reloaded, but its slowest 1% of requests went from 34 ms to 2.1 s. |
| [Kill a worker under load](kill_a_worker_under_load) | A round-robin with health checks: 26 failed requests over three worker kills | SIE's queue: 0 lost of 38,440 | SIE wins on lost requests. It costs about 8% of capacity, and the slowest request waited 30 s after a kill. |
| [Find when a GPU pays off](find_when_a_gpu_pays_off) | An L4 rented all month | Paying per call on SIE Serverless | It depends: paying per call is cheaper below about 11% busy. |

Unless a row says otherwise, the numbers come from each recipe's own run in November 2026. Each
recipe's README says what hardware it ran on, how it compares with our longer runs, and how to run it
yourself.
3 changes: 3 additions & 0 deletions why_sie/find_when_a_gpu_pays_off/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Nothing to fill in. The recipe starts its own local SIE server on your GPU and sends its requests
# to http://127.0.0.1:<port> from rules.yaml, so it needs no API key and reads neither SIE_API_KEY
# nor SIE_BASE_URL. With `--launcher none`, pass your server's address as `--url`.
1 change: 1 addition & 0 deletions why_sie/find_when_a_gpu_pays_off/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
Loading