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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start 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