Ross ROSS = Recommend OSS · open-source software intelligence for agents

hao-ai-lab/LookaheadDecoding

[ICML 2024] Break the Sequential Dependency of LLM Inference Using Lookahead Decoding observed · 2026-08-28

github.com/hao-ai-lab/LookaheadDecoding · homepage · Python · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

31/100

  • Activity 10
  • Release rhythm 35
  • Longevity 72

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 1016
  • days_rel: n/a
  • days_push: 545
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1342 stars · 83 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A Python library implementing Lookahead Decoding, an exact parallel decoding algorithm that accelerates LLM inference without a draft model or data store. It uses Jacobi iteration with n-gram caching and verification branches to reduce decoding steps, integrating with FlashAttention and supporting multi-GPU scaling.

Use cases

  • speed up autoregressive LLM text generation
  • accelerate code completion with LLMs
  • reduce LLM decoding latency without a draft model
  • parallelize LLM inference across multiple GPUs
  • integrate faster decoding into my own sampling code
  • speed up LLaMA-2 chat generation

When to choose

  • you want speculative-decoding-like speedups without training or obtaining a draft model
  • you need exact decoding with no quality loss
  • you run inference on modern GPUs with FlashAttention support
  • you want to reduce decoding steps in code completion workloads

When to avoid

  • you need a production inference server with broad model support out of the box
  • your workload is memory-abundant and batch-heavy where parallel decoding gains are minimal
  • you require long-term maintenance guarantees or wide ecosystem integration

Facets

library · maturity active

llm-inference machine-learning gpu-computing large-language-models machine-learning deep-learning gpu-computing python lookahead-decoding jacobi-decoding speculative-decoding inference-acceleration flashattention icml-2024 gpu linux

6 sources

Member repositories

RepositoryRoleHealth v2
hao-ai-lab/LookaheadDecodingmain31

For agents

markdown · JSON · MCP: product_card(name="hao-ai-lab/LookaheadDecoding")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem