Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/guides/fairseq.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ CTranslate2 supports some Transformer models trained with [Fairseq](https://gith
The conversion minimally requires the PyTorch model path and the Fairseq data directory which contains the vocabulary files:

```bash
pip install fairseq
python3.10 -m venv venv
source venv/bin/activate
pip install --force pip==24.0
pip install git+https://github.com/pytorch/fairseq
pip uninstall torch torchaudio numpy
pip install torch==1.13 numpy==1.26 ctranslate2

ct2-fairseq-converter --model_path model.pt --data_dir data-bin/ --output_dir ct2_model
```

Expand Down
Loading