Source: https://seerepo.com/compare/Dao-AILab/flash-attention/vs/sgl-project/sglang
Markdown source: https://seerepo.com/compare/Dao-AILab/flash-attention/vs/sgl-project/sglang.md
Description: flash-attention and sglang share 6 technologies: apache-tvm-ffi, NVIDIA, quack-kernels, torch-c-dlpack-ext, torch, and einops. Both are written in Python.

# flash-attention vs sglang

flash-attention and sglang share 6 technologies: apache-tvm-ffi, NVIDIA, quack-kernels, torch-c-dlpack-ext, torch, and einops. Both are written in Python.

- [Dao-AILab/flash-attention](https://seerepo.com/r/Dao-AILab/flash-attention): Fast and memory-efficient exact attention
- [sgl-project/sglang](https://seerepo.com/r/sgl-project/sglang): SGLang is a high-performance serving framework for large language models and multimodal models.

## What they share and what sets them apart

- In common: apache-tvm-ffi, NVIDIA, quack-kernels, torch-c-dlpack-ext, torch, einops
- Only in flash-attention: triton-windows, triton
- Only in sglang: axum, FastAPI, uvicorn, pyzmq, blobfile, OpenAI, Anthropic, Tokio, tower, AIOHTTP, indicatif, tml-renderers, cuda-python, flashinfer-python, humming-kernels, nvshmem4py-cu13, openai-harmony, sgl-deep-ep, sgl-deep-gemm, sgl-flash-mla, sglang-kernel, transformers, torchvision, dynamo-renderer, dynamo-protocols, compressed-tensors, gguf, dynamo-tokenizers, tokenizers, xgrammar, dynamo-parsers, ModelScope, tch, torchaudio, dynamo-multimodal, deepseek-recipe, hf-hub, partial-json-parser, DeepSeek, mistral-common, sgl-fa3, tiktoken, decord2, kernels, llguidance, outlines, sentencepiece, timm, pillow, minijinja, av, torchcodec, image, msgspec, Pydantic, tracing, psutil, prometheus-client, tracing-subscriber, k8s-openapi, kube, tracing-appender

## Side by side

| | flash-attention | sglang |
|---|---|---|
| Size | 139,521 lines written, 150 code files | 3,493,138 lines written, 4,746 code files |
| Who writes it | 1.7% of its commits signed by AI. With Claude Code, Cursor, and GitHub Copilot | 9.5% of its commits signed by AI. With Claude Code, Gemini CLI, Cursor, GitHub Copilot, Codex, Devin, CodeRabbit, and OpenHands |
| Activity | Last push November 16, 2026, 1,613 commits, 25,304 stars | Last push November 19, 2026, 22,827 commits, 39,041 stars |
| Tests | 80 test files. 32% of its code files have a test that imports them | 4,429 test files. 62.5% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## Frequently asked questions

### Which is bigger, flash-attention or sglang?

sglang, with 3,493,138 lines written; flash-attention has 139,521.

The proof: [sgl-project/sglang's code at commit a3eae55](https://github.com/sgl-project/sglang/tree/a3eae555453777c3f4c5ab41e19ef1c9577e0785)

### Which has more GitHub stars, flash-attention or sglang?

sglang, with 39,041 stars; flash-attention has 25,304.

The proof: [sgl-project/sglang on GitHub](https://github.com/sgl-project/sglang)

### Which has more tests, flash-attention or sglang?

sglang, with 4,429 test files; flash-attention has 80.

The proof: [sgl-project/sglang's code at commit a3eae55](https://github.com/sgl-project/sglang/tree/a3eae555453777c3f4c5ab41e19ef1c9577e0785)

### Which was updated more recently, flash-attention or sglang?

sglang: its last push was on November 19, 2026, and flash-attention's on November 16, 2026.

The proof: [sgl-project/sglang's commits on GitHub](https://github.com/sgl-project/sglang/commits)

### Which has more commits signed by AI, flash-attention or sglang?

sglang: an AI signed 9.5% of its commits, with Claude Code, Gemini CLI, Cursor, GitHub Copilot, Codex, Devin, CodeRabbit, and OpenHands; in flash-attention, 1.7%.

The proof: [the commits each tool signed in sgl-project/sglang](https://seerepo.com/r/sgl-project/sglang/ai)

## Sources

- Dao-AILab/flash-attention: Read on November 16, 2026, at commit 328dd7b (https://github.com/Dao-AILab/flash-attention/tree/328dd7b5a6905c75500a9bce334ac012763409a9)
- sgl-project/sglang: Read on November 19, 2026, at commit a3eae55 (https://github.com/sgl-project/sglang/tree/a3eae555453777c3f4c5ab41e19ef1c9577e0785)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
