Skip to content

M2M100 Translation Channel

What is it?

M2M100 is an open-source multilingual machine translation model from Meta (Facebook) that supports direct translation between 100 languages without requiring an intermediate language. pyVideoTrans supports M2M100 as a local offline translation channel starting from v3.94completely free with no internet required.

Prerequisites

  • pyVideoTrans v3.94 or higher
  • M2M100 model files downloaded (~5 GB)
  • Recommended: NVIDIA GPU (CUDA acceleration); can also run on CPU (slower)

Model Download and Setup

Step 1: Download the model

Download the model archive from ModelScope: https://modelscope.cn/models/himyworld/videotrans/resolve/master/m2m100_12b_model.zip

The file is large (~5 GB), so please be patient.

Step 2: Extract the archive

After downloading, extract the archive to get a folder named m2m100_12b.

Step 3: Place the model

Copy the m2m100_12b folder into pyVideoTrans's models directory. The path should be:

pyVideoTrans/
├── sp.py (or sp.exe)
├── models/
│   └── m2m100_12b/    ← Place the model here
│       ├── model.bin
│       ├── sentencepiece.model
│       └── ...

The folder should be inside models/, at the same level as sp.py (or sp.exe).

Step 4: Launch the software

Once the model is placed correctly, start pyVideoTrans and select M2M100 as the translation channel.

The software automatically detects whether the model has been downloaded. If not found, it will download it automatically.

SettingRecommended Value
Translation ChannelM2M100
Model Pathmodels/m2m100_12b (auto-detected)

Supported Languages

M2M100 supports translation between the following languages:

LanguageCodeLanguageCode
EnglishenChinesezh
FrenchfrGermande
JapanesejaKoreanko
RussianruSpanishes
ThaithItalianit
PortugueseptVietnamesevi
ArabicarHindihi
TurkishtrIndonesianid
MalaymsPolishpl
DutchnlSwedishsv
HebrewheBengalibn
UkrainianukCzechcs

Troubleshooting

IssueCauseSolution
Model not foundModel folder not in the correct locationConfirm m2m100_12b is inside the models/ directory
Very slow translationRunning in CPU modeInstall CUDA-enabled PyTorch for GPU acceleration
Insufficient memoryModel is large (~5 GB)Ensure your system has enough memory (16 GB+ recommended)
Certain languages not supportedLanguage not in the supported listCheck the supported languages list above
GPU unavailableCUDA drivers not installedInstall NVIDIA CUDA drivers, or use CPU mode