Skip to content

armgit / sie

Public Imported from GitHub
0

Open-source inference server and production cluster for all the models your agent needs.

quickstart: verified local-first install path

Filip Makradulibd60e5c916e1
diff --git a/README.md b/README.md
index 16f2f93ac..56d2f2c32 100644
--- a/README.md
+++ b/README.md
@@ -30,7 +30,7 @@
SIE is an open-source inference engine that runs the models behind every agent task through one API: search and retrieval, document-to-markdown conversion, structured output, content safety, and the agent loop itself. It replaces the patchwork of a separate model server per task with one system that serves 85+ models, loading each on demand.
- OpenAI-compatible API for drop-in migration: `/v1/embeddings`, `/v1/chat/completions`, `/v1/completions`, `/v1/responses`
-- Pre-configured model catalog: Stella, SPLADE, Qwen3, GLiNER, SigLIP, and more, all quality-verified against MTEB in CI
+- Pre-configured model catalog: Stella, SPLADE, Qwen3, GLiNER, SigLIP, and more, all quality-verified against MTEB
- Serves multiple models simultaneously with on-demand loading and LRU eviction
- Ships the full production stack: load-balancing gateway, KEDA autoscaling, Grafana dashboards, Terraform for GKE, EKS, and AKS
- Integrates with LangChain, LlamaIndex, Haystack, DSPy, CrewAI, Chroma, Qdrant, and Weaviate
@@ -52,14 +52,14 @@ One SIE cluster runs the inference behind a whole agent. Each task is a handful
**1. Start the engine**
```bash
+# macOS (Apple Silicon) or Linux, native (requires Python 3.12)
+pip install "sie-server[local]" && sie-server serve
+
# Linux, NVIDIA GPU
docker run --gpus all -p 8080:8080 -v sie-hf-cache:/app/.cache/huggingface ghcr.io/superlinked/sie-server:latest-cuda12-default
# Linux, CPU
docker run -p 8080:8080 -v sie-hf-cache:/app/.cache/huggingface ghcr.io/superlinked/sie-server:latest-cpu-default
-
-# macOS (Apple Silicon), native on Metal (requires Python 3.12)
-pip install "sie-server[local]" && sie-server serve
```
```bash
diff --git a/examples/quickstart.ipynb b/examples/quickstart.ipynb
index 46f14e259..294fd717b 100644
--- a/examples/quickstart.ipynb
+++ b/examples/quickstart.ipynb
@@ -3,12 +3,26 @@
{
"cell_type": "markdown",
"metadata": {},
- "source": "# SIE Quickstart\n\nThree functions - `encode`, `score`, `extract` - running on a free Colab GPU.\n\nThis notebook installs the SIE server, starts it in the background, and walks through the full API."
+ "source": [
+ "# SIE Quickstart\n",
+ "\n",
+ "Three functions - `encode`, `score`, `extract` - running on your laptop or a free Colab GPU.\n",
+ "\n",
+ "This notebook installs the SIE server, starts it in the background, and walks through the full API."
+ ]
},
{
"cell_type": "markdown",
"metadata": {},
- "source": "## 1. Install and start the server\n\nColab already has PyTorch, so this only installs the incremental dependencies (~1-2 min).\n\n> **Note:** SIE requires Python 3.12. If your Colab runtime uses an older version, go to Runtime > Change runtime type and select Python 3.12."
+ "source": [
+ "## 1. Install and start the server\n",
+ "\n",
+ "Works on your laptop (Mac or Linux, CPU is fine) or a free Colab GPU. The `[local]` extra pins the transformers version the embedding and reranking models need.\n",
+ "\n",
+ "On Colab, expect a few minutes: SIE pins torch 2.9, so pip replaces Colab's preinstalled PyTorch.\n",
+ "\n",
+ "> **Note:** SIE requires Python 3.12. Colab's current default runtime is Python 3.12, so no action is needed there. Locally, run this notebook on a Python 3.12 kernel."
+ ]
},
{
"cell_type": "code",
@@ -16,7 +30,7 @@
"metadata": {},
"outputs": [],
"source": [
- "!pip install -q sie-server sie-sdk"
+ "%pip install -q \"sie-server[local]\" sie-sdk"
]
},
{
@@ -24,12 +38,38 @@
"execution_count": null,
"metadata": {},
"outputs": [],
- "source": "import subprocess, time, urllib.request\n\n# Start the server in the background\nproc = subprocess.Popen(\n [\"sie-server\", \"serve\", \"--host\", \"0.0.0.0\", \"--port\", \"8080\"],\n stdout=open(\"/tmp/sie-server.log\", \"w\"),\n stderr=subprocess.STDOUT,\n)\n\n# Wait for the server to be ready\nfor i in range(60):\n try:\n urllib.request.urlopen(\"http://localhost:8080/healthz\")\n print(f\"Server ready (took ~{i}s)\")\n break\n except Exception:\n time.sleep(1)\nelse:\n print(\"Server did not start - check /tmp/sie-server.log\")"
+ "source": [
+ "import subprocess, time, urllib.request\n",
+ "\n",
+ "# Start the server in the background (defaults: host 0.0.0.0, port 8080)\n",
+ "proc = subprocess.Popen(\n",
+ " [\"sie-server\", \"serve\", \"--port\", \"8080\"],\n",
+ " stdout=open(\"/tmp/sie-server.log\", \"w\"),\n",
+ " stderr=subprocess.STDOUT,\n",
+ ")\n",
+ "\n",
+ "# Wait for the server to be ready (/healthz answers before any model loads)\n",
+ "for i in range(120):\n",
+ " try:\n",
+ " urllib.request.urlopen(\"http://localhost:8080/healthz\")\n",
+ " print(f\"Server ready (took ~{i}s)\")\n",
+ " break\n",
+ " except Exception:\n",
+ " time.sleep(1)\n",
+ "else:\n",
+ " print(\"Server did not start - check /tmp/sie-server.log\")"
+ ]
},
{
"cell_type": "markdown",
"metadata": {},
- "source": "## 2. Encode\n\nGenerate dense embeddings with a 400M-parameter model. The model downloads on first use (~1-2 min), then subsequent calls are fast."
+ "source": [
+ "## 2. Encode\n",
+ "\n",
+ "Generate dense embeddings with a 400M-parameter model. The model downloads on first use (a few minutes depending on bandwidth), then subsequent calls are fast.\n",
+ "\n",
+ "On machines without an NVIDIA GPU, SIE automatically falls back to a slower sentence-transformers execution path for this model."
+ ]
},
{
"cell_type": "code",