ArthurZ / fairseq-nllb-moe

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: March 13 2023

Introduction of fairseq-nllb-moe

Model Details of fairseq-nllb-moe

This repo shows how to convert a fairseq NLLB-MoE model to transformers and run a forward pass

As the fairseq repository is not really optimised to run inference out-of-the-box, make sure you have a very very big CPU/GPU RAM. Around 600 GB are required to run an inference with the fairseq model, as you need to load the checkpoints (~300GB) then build the model (~300GB again), then finally you can load the checkpoints in the model.

0. Download the original checkpoints:

The checkpoints in this repository were obtained using the following command (ased on the instructions given on the fairseq repository):

wget --trust-remote-name path_to_nllb
tar -cf model.tar.zf

The NLLB checkpoints should noz

1. Install PyTorch

Use the following command:

pip3 install torch==1.10.1+cu113 torchvision==0.11.2+cu113 torchaudio==0.10.1+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
2. Install fairseq
git clone https://github.com/facebookresearch/fairseq.git
cd fairscale
git checkout prefetch_fsdp_params_simple
pip3 install -e .
3. Clone this repo (click top right on "How to clone")
4. Run the inference script:

Convert the checkpoints on the fly using the conversion script. transformers is required to do this:

cd <path/to/cloned/repo>
python3 /home/arthur_huggingface_co/fairseq/weights/checkpoints/convert_nllb_moe_sharded_original_checkpoint_to_pytorch.py --pytorch_dump_folder_path <dump_folder> --nllb_moe_checkpoint_path <nllb_checkpoint_path>
4. Run the inference script:
cd <path/to/cloned/repo>
bash run.sh

Runs of ArthurZ fairseq-nllb-moe on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About fairseq-nllb-moe huggingface.co Model

fairseq-nllb-moe huggingface.co

fairseq-nllb-moe huggingface.co is an AI model on huggingface.co that provides fairseq-nllb-moe's model effect (), which can be used instantly with this ArthurZ fairseq-nllb-moe model. huggingface.co supports a free trial of the fairseq-nllb-moe model, and also provides paid use of the fairseq-nllb-moe. Support call fairseq-nllb-moe model through api, including Node.js, Python, http.

fairseq-nllb-moe huggingface.co Url

https://huggingface.co/ArthurZ/fairseq-nllb-moe

ArthurZ fairseq-nllb-moe online free

fairseq-nllb-moe huggingface.co is an online trial and call api platform, which integrates fairseq-nllb-moe's modeling effects, including api services, and provides a free online trial of fairseq-nllb-moe, you can try fairseq-nllb-moe online for free by clicking the link below.

ArthurZ fairseq-nllb-moe online free url in huggingface.co:

https://huggingface.co/ArthurZ/fairseq-nllb-moe

fairseq-nllb-moe install

fairseq-nllb-moe is an open source model from GitHub that offers a free installation service, and any user can find fairseq-nllb-moe on GitHub to install. At the same time, huggingface.co provides the effect of fairseq-nllb-moe install, users can directly use fairseq-nllb-moe installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

fairseq-nllb-moe install url in huggingface.co:

https://huggingface.co/ArthurZ/fairseq-nllb-moe

Url of fairseq-nllb-moe

fairseq-nllb-moe huggingface.co Url

Provider of fairseq-nllb-moe huggingface.co

ArthurZ
ORGANIZATIONS

Other API from ArthurZ

huggingface.co

Total runs: 4.7K
Run Growth: 1.9K
Growth Rate: 40.79%
Updated:February 19 2024
huggingface.co

Total runs: 356
Run Growth: -67
Growth Rate: -18.82%
Updated:January 28 2025
huggingface.co

Total runs: 251
Run Growth: 0
Growth Rate: 0.00%
Updated:May 08 2025
huggingface.co

Total runs: 23
Run Growth: -8
Growth Rate: -34.78%
Updated:March 04 2024
huggingface.co

Total runs: 18
Run Growth: -14
Growth Rate: -77.78%
Updated:February 29 2024
huggingface.co

Total runs: 18
Run Growth: -10
Growth Rate: -55.56%
Updated:February 19 2024
huggingface.co

Total runs: 16
Run Growth: -10
Growth Rate: -62.50%
Updated:February 29 2024
huggingface.co

Total runs: 15
Run Growth: 4
Growth Rate: 26.67%
Updated:June 22 2022
huggingface.co

Total runs: 13
Run Growth: 6
Growth Rate: 46.15%
Updated:October 10 2023
huggingface.co

Total runs: 12
Run Growth: -14
Growth Rate: -116.67%
Updated:June 22 2022
huggingface.co

Total runs: 8
Run Growth: 4
Growth Rate: 50.00%
Updated:February 15 2024
huggingface.co

Total runs: 7
Run Growth: 1
Growth Rate: 14.29%
Updated:June 21 2022
huggingface.co

Total runs: 7
Run Growth: 6
Growth Rate: 85.71%
Updated:October 26 2023
huggingface.co

Total runs: 6
Run Growth: 1
Growth Rate: 16.67%
Updated:June 22 2022
huggingface.co

Total runs: 5
Run Growth: 2
Growth Rate: 40.00%
Updated:September 13 2024
huggingface.co

Total runs: 5
Run Growth: 1
Growth Rate: 20.00%
Updated:March 06 2023
huggingface.co

Total runs: 4
Run Growth: -3
Growth Rate: -75.00%
Updated:June 21 2022
huggingface.co

Total runs: 4
Run Growth: 2
Growth Rate: 50.00%
Updated:February 27 2023
huggingface.co

Total runs: 3
Run Growth: 1
Growth Rate: 33.33%
Updated:June 27 2023
huggingface.co

Total runs: 2
Run Growth: 2
Growth Rate: 100.00%
Updated:October 10 2023
huggingface.co

Total runs: 2
Run Growth: -19
Growth Rate: -950.00%
Updated:June 30 2023
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:June 27 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 08 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 27 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 16 2024
huggingface.co

Total runs: 0
Run Growth: -2
Growth Rate: 0.00%
Updated:January 17 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 13 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 17 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 24 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 09 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 13 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 07 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 19 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 13 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 03 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 12 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 13 2026
huggingface.co

Total runs: 0
Run Growth: -2
Growth Rate: 0.00%
Updated:October 21 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 27 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 30 2024