CICD-447 · SGLang deployment
Encyclopedia · GPU and inference infrastructure · All snippets
Previous · CICD-446 · Next · CICD-448
1. Where it fits
- Placement CI run step or authorized lab terminal.
- Prerequisites dedicated GPU lab, approved images and model revision, fixed benchmark profile.
- Platforms local-linux, github-actions, gitea-actions.
- Parameters
MODEL_DIR.
2. Copy the snippet
bash
python -m sglang.launch_server --model-path "${MODEL_DIR:?}" --served-model-name lab --host 127.0.0.1 --port 300003. How it works
The launcher loads the approved model directory and starts SGLang on a loopback endpoint under a known model name. Probe readiness before measuring serving behavior.
4. Verify the result
Install a pinned SGLang version compatible with the host GPU. Wait for readiness before benchmarking.
Validation version-dependent (Bash parse). Status definitions.