← all repositories
facebookresearch/fairseq

Meta’s sequence-modeling toolkit that swallowed speech and video

It turns sequence modeling research papers into reproducible, trainable PyTorch code for translation, speech, and beyond.

32.2k stars Python Language ModelsML Frameworks
fairseq
Not currently ranked — collecting fresh signals.
star history

What it does

Fairseq is Meta’s PyTorch toolkit for training sequence models. It bundles reference implementations for a sprawling catalog of papers—transformers, CNNs, LSTMs, and non-autoregressive architectures—covering text generation, neural machine translation, and speech recognition. Instead of reimplementing attention from scratch, researchers can extend existing checkpoints or train their own on multi-GPU setups.

The interesting bit

The project began as a text-generation helper but quietly swallowed entire subfields; it now hosts code for speech-to-speech translation, video-language pretraining, and scaling speech technology to over 1,000 languages. That breadth makes it less a single product and more a living museum of how sequence modeling evolved from RNNs to self-supervised wav2vec encoders.

Key highlights

  • Ships reference code for dozens of specific papers, including RoBERTa, BART, mBART, XLM-R, and wav2vec 2.0.
  • Supports multi-GPU and model-parallel training, gradient accumulation, mixed precision, and full parameter sharding with CPU offloading.
  • Generation stack includes beam search, diverse beam search, top-k/top-p sampling, and lexically constrained decoding.
  • Extensible registry lets you plug in new models, criterions, tasks, optimizers, and learning-rate schedulers.
  • Uses the Hydra configuration framework, allowing a mix of code, command-line, and file-based configuration.

Verdict

Researchers reproducing paper results or building on established sequence architectures will find a ready-made laboratory; developers looking for a lightweight, single-purpose inference library will likely drown in the scope.

Frequently asked

What is facebookresearch/fairseq?
It turns sequence modeling research papers into reproducible, trainable PyTorch code for translation, speech, and beyond.
Is fairseq open source?
Yes — facebookresearch/fairseq is open source, released under the MIT license.
What language is fairseq written in?
facebookresearch/fairseq is primarily written in Python.
How popular is fairseq?
facebookresearch/fairseq has 32.2k stars on GitHub.
Where can I find fairseq?
facebookresearch/fairseq is on GitHub at https://github.com/facebookresearch/fairseq.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.