# What is Mamba? Definition and meaning

A sequence model whose state-space parameters depend on the input, giving linear-time processing of long sequences.

## Definition

**Mamba**: A sequence model whose state-space parameters depend on the input, giving linear-time processing of long sequences.

In short: Selective state-space sequence model.

## When it is used

Long-context modelling as an alternative or complement to attention.

## Learn more

The full guide to **[Mamba](/tools/mamba)** explains how it works, when to use it and how it compares with the alternatives, with examples. The [glossary](/glossary) lists every term on the site from A to Z.

Previous term: [MAE](/glossary/mae) · Next term: [Mask R-CNN](/glossary/mask-r-cnn)
