sglang-skill

Navigate SGLang source code and documentation for development and optimization.

154|18|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/slowlyC/agent-gpu-skills --skill sglang-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sglang-skill
Source: https://github.com/slowlyC/agent-gpu-skills/tree/main/sglang_skill
Command: npx skills add https://github.com/slowlyC/agent-gpu-skills --skill sglang-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the hassle of manually navigating scattered SGLang source code and documentation to develop, debug, or optimize LLM serving systems, reducing time spent searching for implementation details of core components like attention backends, KV cache, and MoE routing.

Core Features & Use Cases

  • Structured Source Navigation: Provides clear paths to SGLang's core runtime (SRT), JIT Triton kernels, custom CUDA kernels (sgl-kernel), and frontend DSL for fast code lookup.
  • Development Workflow Guidance: Includes step-by-step instructions for common tasks like adding new attention backends, implementing custom model support, adding quantization methods, and configuring distributed serving (TP/PP/EP).
  • Use Case Example: If you need to add FlashInfer MLA support for DeepSeek V3 models, this Skill directs you to the correct backend implementation files and registration points to complete the task efficiently.

Quick Start

Use the sglang-skill to add a custom FP8 quantization module to the SGLang serving engine and register it for use with LLaMA 3 models.

Frequently Asked Questions about sglang-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a custom attention backend to SGLang for LLM serving?

To add a custom attention backend to SGLang, navigate to the core runtime (SRT) implementation files and follow the structured registration points to integrate your specific backend. This workflow provides step-by-step guidance for efficiently completing backend implementation and registration.

Where can I find SGLang source code for optimizing KV cache and MoE routing performance?

SGLang source code for optimizing KV cache and MoE routing is accessible via structured paths to the core runtime, JIT Triton kernels, and custom CUDA kernels (sgl-kernel). This structured navigation eliminates manual searching across scattered documentation to locate performance optimization interfaces.

What is the best way to implement custom model support in an SGLang serving system?

The best way to implement custom model support in an SGLang serving system is by following its standard development workflows for adding new model architectures. This Skill directs you to the correct implementation files and registration points to efficiently integrate and deploy custom models.

Does SGLang support configuring distributed inference with tensor parallelism and expert parallelism?

Yes, SGLang supports configuring distributed inference including tensor parallelism, pipeline parallelism, and expert parallelism. Development workflow guidance provides structured steps for setting up these distributed serving configurations to optimize production deployment.

How do I add a new quantization method like FP8 to the SGLang serving engine?

To add a new quantization method like FP8 to the SGLang serving engine, use the provided development workflow guidance to locate the correct module implementation files. You can then register the custom quantization module for use with target models like LLaMA 3.

Can I use SGLang to troubleshoot LLM serving latency and throughput issues?

Yes, you can use SGLang to troubleshoot LLM serving latency and throughput issues by leveraging structured access to its source code and implementation patterns. This allows developers to efficiently debug performance bottlenecks within the serving engine's core components.