luminal-ai/luminal

Inference at the speed of light.

View on GitHub ↗Jump to charts ↓Open shareable report →

luminal-ai/luminal has 3k+ stars and 200+ forks on GitHub, is written in Rust, and was last pushed on Oct 18, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 1 hour ago
Added to GitGenius on September 27th, 2026
Created on July 18th, 2023
Open Issues & Pull Requests: 66 (+0)
GitHub issues: Enabled
Number of forks: 246
Total Stargazers: 3,027 (+0)
Total Subscribers: 20 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 44.3 hours
Mean response time: 62.7 days
90th percentile: 227.9 days
Tracked items: 59

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 15
New in 7 days: 0
Closed in 7 days: 1
Avg open age: 260 days
Stale 30+ days: 9
Stale 90+ days: 7

Recent activity

Opened in 7 days: 0
Closed in 7 days: 1
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • advanced (2)
  • testing (2)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

Luminal is a high-performance general-purpose inference compiler written in Rust that integrates directly with PyTorch as a backend.

The tool addresses the tension between developer ergonomics and machine performance in deep learning frameworks. Most frameworks are eager-first, executing operations immediately as developers write them, which aids debugging but hampers performance. Luminal takes a different approach by building a compiler that reasons about entire computation graphs rather than individual operations. It reduces all operations to fifteen primitive ops—unary functions like Log2 and Exp2, binary operations like Add and Mul, and others like SumReduce, Gather, and Scatter—that are sufficient to express transformers, convnets, and most popular models. Rather than relying on hand-written optimizations or heuristics, the compiler searches possible optimization decisions to automatically discover complex patterns like Flash Attention.

Luminal suits projects where inference performance is critical and where developers want to avoid ecosystem fragmentation. It works as a PyTorch compiler backend via `torch.compile`, allowing existing PyTorch models to be compiled without rewriting. The tool also offers a Rust tensor API for those building directly in Rust. Its native implementation in Rust with direct accelerator API access (CUDA, Metal) means no compatibility layers, Docker containers, or virtual environments—just a statically-linked crate. The project demonstrates that it can run quantized Llama 3 8B at approximately eighty percent of theoretical maximum performance on an H100.

Development activity shows a commitment to correctness through extensive testing against PyTorch implementations, though the maintainers acknowledge improvements are needed in test coverage. The codebase prioritizes simplicity, with the stated goal that the entire core library should be understandable in an afternoon. The project maintains a minimal surface area by design, relying on the search-based compiler approach rather than accumulating special-case optimizations, which allows it to remain small while scaling to new models and devices.