Commit 6454bc9
feat: add SGLang local model serving to comparison framework (#190)
Add support for serving models via SGLang on remote GPU hosts, enabling
comparison of API models (GPT, Claude) against locally-served models
(e.g. Qwen3.5-9B) that vLLM cannot serve.
Key changes:
- New scripts/sglang_server.py: SGLangServerManager handles full lifecycle
(SSH install, server start, readiness polling, SSH tunnel, cleanup)
- Extended ModelConfig with provider="sglang", serve config, max_new_tokens
- New --gpu-host and --ssh-key CLI flags (optional; sglang models skipped
without --gpu-host)
- SGLang server auto-starts per model, tunneled as OpenAI-compatible API
- Environment variables (OPENAI_BASE_URL, OPENAI_API_KEY) saved/restored
between models so API models remain unaffected
- New example_comparisons/unified_agents.yaml demonstrating mixed config
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c877588 commit 6454bc9
3 files changed
Lines changed: 605 additions & 333 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
0 commit comments