LayerLens: Open-Source Profiler Breaks Down LLM Inference Timing by Token and Layer

Dry_Mixture130 · reddit · 2026-09-11

A developer released LayerLens (github.com/coconinja2/layerlens), an open-source LLM inference profiler presenting timing as a token x transformer-layer view, with prefill/decode separation and per-layer visualization. Planned additions include KV-cache events, scheduler/batching state, request IDs, GPU kernel correlation, and speculative decoding; the author seeks feedback on whether this abstraction is useful to inference practitioners.

Original post →

More from Infra

Infra channel →