fairseq2 is a modern, modular sequence modeling framework developed by Meta AI Research as a complete redesign of the original fairseq library. Built from the ground up for scalability, composability, and research flexibility, fairseq2 supports a broad range of language, speech, and multimodal content generation tasks, including instruction fine-tuning, reinforcement learning from human feedback (RLHF), and large-scale multilingual modeling. Unlike the original fairseq—which evolved into a large, monolithic codebase—fairseq2 introduces a clean, plugin-oriented architecture designed for long-term maintainability and rapid experimentation. It supports multi-GPU and multi-node distributed training using DDP, FSDP, and tensor parallelism, capable of scaling up to 70B+ parameter models. The framework integrates seamlessly with PyTorch 2.x features such as torch.compile, Fully Sharded Data Parallel (FSDP), and modern configuration management.

Features

  • Composable and deterministic configuration system
  • High-throughput C++ streaming data pipeline for text and speech
  • Recipes for instruction fine-tuning, preference optimization, and RLHF
  • Native vLLM integration for optimized generation and inference
  • Supports 70B+ parameter models with DDP, FSDP, and tensor parallelism
  • Modular, next-generation fairseq with a clean, extensible architecture

Project Samples

Project Activity

See All Activity >

Categories

AI Models

License

MIT License

Follow fairseq2

fairseq2 Web Site

Other Useful Business Software
Train ML Models With SQL You Already Know Icon
Train ML Models With SQL You Already Know

BigQuery automates data prep, analysis, and predictions with built-in AI assistance.

Build and deploy ML models using familiar SQL. Automate data prep with built-in Gemini. Query 1 TB and store 10 GB free monthly.
Try Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of fairseq2!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C, C++, Python, Unix Shell

Related Categories

Unix Shell AI Models, Python AI Models, C++ AI Models, C AI Models

Registered

2025-10-08