explaingit

facebookresearch/fairseq-lua

Analysis updated 2026-07-03

3,727LuaAudience · researcherComplexity · 4/5Setup · hard

TLDR

Fairseq-lua is Facebook AI Research's archived machine translation toolkit written in Lua and Torch, offering convolutional neural network models for translating English to French, German, or Romanian, preserved for reference but no longer developed.

Mindmap

mindmap
  root((fairseq-lua))
    Purpose
      Machine translation
      Text to text
    Architecture
      Convolutional networks
      Sequence to sequence
    Language Pairs
      English to French
      English to German
      English to Romanian
    Tech Stack
      Lua
      Torch
      NVIDIA GPU
    Status
      Archived
      Use fairseq-py instead
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Reproduce results from Facebook's convolutional sequence-to-sequence translation papers using the original Lua codebase.

USE CASE 2

Translate English text to French, German, or Romanian using the included pre-trained convolutional models on a GPU machine.

USE CASE 3

Study the convolutional neural network architecture for sequence-to-sequence translation as described in the accompanying research papers.

What is it built with?

LuaTorchLuaRocksNVIDIA GPU

How does it compare?

facebookresearch/fairseq-luascipag/vulscannvim-orgmode/orgmode
Stars3,7273,7523,753
LanguageLuaLuaLua
Setup difficultyhardeasymoderate
Complexity4/52/52/5
Audienceresearcherops devopsdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1day+

Requires a CUDA-capable NVIDIA GPU for training, this Lua version is no longer maintained, use fairseq-py for new projects.

In plain English

Fairseq-lua is a machine translation toolkit from Facebook AI Research, written in Lua and built on top of the Torch framework. It was designed to train and run neural network models that translate text from one language to another. The toolkit implements specific model architectures based on convolutional neural networks rather than the attention-based designs that became more common later, and it comes with pre-trained models for translating English to French, German, and Romanian. Training a new model requires a computer with an NVIDIA GPU. Running inference (translating with an already trained model) works on CPU as well. The installation is done through LuaRocks, a Lua package manager, and the toolkit includes command-line tools for preprocessing text, training models, and generating translations. The README opens with a prominent note that this version is no longer actively developed. A newer Python and PyTorch version called fairseq-py became the focus of new work, and the Lua version is preserved for reference but is provided without support. Anyone starting a new translation project would likely use the newer Python version instead. The project was published alongside two academic papers describing the convolutional model architectures it implements, and it includes citation instructions for researchers who use the code.

Copy-paste prompts

Prompt 1
I want to use the fairseq-lua pre-trained model to translate English sentences to German. Show me the steps from preprocessing input text to running inference after installation.
Prompt 2
Explain the convolutional sequence-to-sequence architecture used in fairseq-lua and how it differs from the attention-based Transformer models that replaced it.
Prompt 3
I need to cite the fairseq-lua papers in my research. What are the two papers this toolkit is based on and what does each one contribute?
Prompt 4
Walk me through installing fairseq-lua using LuaRocks on a Linux machine with a CUDA-capable GPU, including any known dependency issues.

Frequently asked questions

What is fairseq-lua?

Fairseq-lua is Facebook AI Research's archived machine translation toolkit written in Lua and Torch, offering convolutional neural network models for translating English to French, German, or Romanian, preserved for reference but no longer developed.

What language is fairseq-lua written in?

Mainly Lua. The stack also includes Lua, Torch, LuaRocks.

How hard is fairseq-lua to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is fairseq-lua for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub facebookresearch on gitmyhub

Verify against the repo before relying on details.