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
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
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