sglang
Use SGLang for high-throughput LLM and VLM serving, OpenAI-compatible APIs, frontend language programs, runtime/server arguments, benchmarking, profiling, model/kernel extension, and SGLang repository development.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- sglang
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use SGLang for high-throughput LLM and VLM serving, OpenAI-compatible APIs, frontend language programs, runtime/server arguments, benchmarking, profiling, model/kernel extension, and SGLang repository development.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/repo-provenance.md655 B
- 参考文档references/repo-routing-metadata.json523 B
- 参考文档references/troubleshooting.md1.5 KB
- 参考文档references/workflow-map.md946 B
03 SKILL.md 正文
SGLang
Use this skill when the task names SGLang, sglang, sglang serve, SRT, OpenAI-compatible serving, ServerArgs, radix cache, tensor/expert parallel serving, speculative decoding, SGLang frontend programs, benchmarking, profiling, custom model support, CUDA/JIT kernels, or development inside the SGLang repository.
Route By Task
- Serving runtime: use
sub-skills/serving-runtime/SKILL.mdfor server launch, CLI flags,ServerArgs, tokenizer/engine settings, OpenAI-compatible endpoints, cache/scheduling, parallelism, disaggregation, and runtime troubleshooting. - Frontend programming: use
sub-skills/frontend-programming/SKILL.mdfor@sgl.function,gen,select, chat roles, backend/runtime endpoints, structured generation, multimodal inputs, and provider-backed frontend execution. - Benchmarking and profiling: use
sub-skills/benchmarking-profiling/SKILL.mdforbench_serving,bench_one_batch,auto_benchmark, profiler scripts, latency/throughput metrics, dataset choices, and reproducible performance triage. - Models and kernels: use
sub-skills/model-kernel-extension/SKILL.mdfor adding model configs, extending serving backends, custom kernels, JIT kernels, CUDA attention work, quantization-related kernels, and cookbook/model support workflows. - Repository development: use
sub-skills/repo-development/SKILL.mdfor source checkout work, test selection, CI conventions, docs/cookbook changes, dependency caveats, and existing.claude/skillsguidance.
Environment Notes
SGLang is a heavyweight serving stack. Full runtime installs can require pinned torch, CUDA/GPU packages, flashinfer, kernels, and other large wheels. Start with source/config inspection and help-only checks when a full serving environment is not already available. Do not promise that CPU-only or partial installs can run the production server.
References
references/workflow-map.mdmaps common serving, frontend, benchmark, model, and repository tasks to sub-skills.references/troubleshooting.mdcovers dependency, CUDA, server, OpenAI API, frontend, benchmark, and repo-development failure modes.references/repo-provenance.mdrecords the source revision and extraction evidence.scripts/sglang_source_smoke.pyperforms source-tree checks without importing the full heavyweight runtime.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.