# facebookresearch/fairseq2

FAIR Sequence Modeling Toolkit 2

Repository: https://github.com/facebookresearch/fairseq2
Canonical: https://ross.abutalabs.com/products/fairseq2
Homepage: https://facebookresearch.github.io/fairseq2/
Language: Python
License: MIT
License Family: permissive
Topics: artificial-intelligence, deep-learning, machine-learning, python, pytorch
Last push: 2026-08-10T02:26:34+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 96, release rhythm 76, longevity 96
- inputs: {"age_days": 1350, "days_push": 24, "days_rel": 160, "gap_med": 7.5, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1143, forks 145 (observed 2026-08-28T04:03:44.966910+00:00)

## What it is
fairseq2 is a PyTorch-based sequence modeling toolkit from Meta FAIR for training custom models for content generation tasks such as language modeling and speech recognition. It is a clean, modular reboot of the original fairseq with recipes for instruction finetuning, preference optimization, and large-scale multi-GPU/multi-node training.

## Use cases
- finetune an LLM with instruction tuning
- run preference optimization like DPO on a language model
- train speech recognition models for many languages
- train a 70B parameter model across multiple GPUs and nodes
- generate sequences with beam search or sampling
- extend a training framework with custom models via a plugin mechanism

## When to choose
- you are a researcher training or finetuning large sequence models in PyTorch
- you need scalable distributed training (DDP, FSDP, tensor parallelism)
- you want first-party recipes for LLM finetuning and preference optimization
- you need multilingual ASR model training

## When to avoid
- you only need to run inference with an off-the-shelf model
- you want a simple high-level API without writing training code
- you need the original fairseq's legacy model zoo and checkpoints

## Facets
- artifact type: framework
- maturity: active
- function: machine-learning, llm-training, speech-recognition, deep-learning
- domain: machine-learning, deep-learning, speech-processing, artificial-intelligence
- platform: python, windows
- tags: pytorch, sequence-modeling, fine-tuning, preference-optimization, distributed-training, research, natural-language-processing, linux, macos, gpu

## Member repositories
- facebookresearch/fairseq2 (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:44.966910+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:34:55.349882+00:00, confidence not recorded.
  - readme: https://github.com/facebookresearch/fairseq2 (fetched 2026-08-28T04:03:44.966910+00:00, sha eacf62d35b1c)
  - homepage: https://facebookresearch.github.io/fairseq2/ (fetched 2026-08-29T12:40:04.688821+00:00, sha 855830710384)
  - registry_pypi: https://pypi.org/pypi/fairseq2/json (fetched 2026-08-29T12:40:04.691268+00:00, sha 355ff9632a25)
- Data as of 2026-08-30T08:39:29.467469+00:00.
