sgl-deep-gemm
SGLang fork of DeepGemm
What it is and what it does
sgl-deep-gemm is an SGLang-optimized fork of DeepGemm that provides GPU-accelerated matrix multiplication kernels for neural network inference and training workloads. It wraps custom GEMM implementations via apache-tvm-ffi to enable ABI-compatible wheels that work across different Python versions without recompilation, simplifying deployment compared to building from source.
The package is designed for use within SGLang's inference framework and targets NVIDIA GPUs on Linux (x86_64 and aarch64). Installation is straightforward via pip, but it requires Python 3.10 or later and a CUDA-capable GPU. The underlying kernels are optimized for specific tensor operations common in large language model inference.
Use it for:
- Accelerate matrix multiplication operations in SGLang-based LLM inference pipelines.
- Deploy optimized GEMM kernels across multiple Python versions without rebuilding wheels.
- Improve throughput for batch matrix operations on NVIDIA GPUs in production systems.
- Integrate custom GPU kernels into neural network frameworks via TVM's FFI layer.
- Support both x86_64 and aarch64 GPU deployments with a single wheel distribution.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
sgl-deep-gemm provides optimized GEMM (matrix multiplication) kernels for GPU acceleration, packaged as a PyPI-installable wheel with ABI compatibility across Python versions via apache-tvm-ffi.
Yes, if you are using SGLang for LLM inference on NVIDIA GPUs and need optimized matrix multiplication. The active maintenance, permissive license, and ABI-compatible wheels make it low-friction to adopt. No, if you are not in the SGLang ecosystem or lack a compatible GPU and Linux platform (x86_64 or aarch64).
Install
sgl-deep-gemm on PyPI
pip
pip install sgl-deep-gemmuv
uv add sgl-deep-gemmpoetry
poetry add sgl-deep-gemmInstalling sgl-deep-gemm
Before you install
Medium install friction due to platform-specific wheels (manylinux2014 x86_64 and aarch64 only) and a compiled dependency on apache-tvm-ffi. Active maintenance with a recent release (9 days old) and steady repository activity.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most deployment scenarios.
Quickstart
pip install sgl-deep-gemm
import sgl_deep_gemm
# Use optimized GEMM kernels via apache-tvm-ffi bindings
Requires Python >=3.10 and NVIDIA CUDA-capable GPU; wheels available only for manylinux2014 x86_64 and aarch64 architectures.
Verify before relying
- What specific GEMM operations and tensor shapes the kernels optimize for.
- Performance benchmarks compared to standard CUDA GEMM implementations.
- Whether apache-tvm-ffi is automatically installed or requires separate setup.
- Compatibility with specific CUDA and cuDNN versions.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — apache-tvm-ffi |
| Maintenance | actively maintained — 9 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 692,839/month — #5,319 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: sgl_deep_gemm-0.1.5.post2-py3-none-manylinux2014_aarch64.whl; sgl_deep_gemm-0.1.5.post2-py3-none-manylinux2014_x86_64.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
gram-newton-schulzImplements a hardware-aware Gram Newton-Schulz…
permissive · top 15,000 on PyPI
sgl-kernelsgl-kernel provides optimized CUDA compute…
permissive · top 15,000 on PyPI
sglang-kernelsglang-kernel provides optimized CUDA compute…
permissive · top 15,000 on PyPI
tilelangTilelang is a domain-specific language for…
permissive · top 5,000 on PyPI
flashinfer-pythonFlashInfer provides optimized GPU kernels for…
permissive · top 5,000 on PyPI
humming-kernelsHumming is a JIT-compiled GEMM kernel library…
unclear · top 5,000 on PyPI
cpm-kernelsProvides CUDA kernels optimized for CPM,…
permissive · top 15,000 on PyPI
apache-tvm-ffiProvides a stable, minimal C ABI and FFI for…
permissive · top 5,000 on PyPI
nvidia-cublasProvides NVIDIA CUBLAS native runtime libraries…
unclear · top 1,000 on PyPI
nvidia-cudnn-frontendProvides Python and C++ APIs to NVIDIA's cuDNN…
permissive · top 5,000 on PyPI