CoolFace
Modelpublic

cartesinus/iva_mt_wslot-m2m100_418M-en-pl-lora_adapter

sourceHugging Facemitupdated 3y agoView on Hugging Face
0likes7downloads
Model Card

(WIP!) ivamtwslot-m2m100418M-en-pl-loraadapter

Notice: Although training results are good for some reason inference results are rather poor. I'm leaving this model here as a PoC that PERF LORA adaptation for M2M100 is possible.

This model is a LORA adapted version of facebook/m2m100_418M on the ivamtwslot dataset. It achieves the following results on the test set (measured with sacrebleu):

  • —Bleu: 9.33

Using

The model can be used as follows:

First, clone the repository and navigate to the project directory:

bash
git clone https://github.com/cartesinus/multiverb_iva_mt
cd multiverb_iva_mt

Then:

python
import csv
from iva_mt.iva_mt import IVAMT
import pandas as pd

lang = "es"
translator = IVAMT(lang, peft_model_id="cartesinus/iva_mt_wslot-m2m100_418M-en-es-lora_adapter", device="cuda:0", batch_size=128)
trans = translator.translate("here your example")[0]

Training results

EpochTraining LossValidation LossBleuGen Len
17.86217.687024.906319.3322
27.63407.531229.795619.7533
37.55827.459534.818420.1269
47.50477.426436.187420.5621
57.48887.416736.228720.4417
67.45607.401336.635520.2241
77.44777.390737.055420.0945
87.44227.374337.754920.1589
97.43117.374837.570519.9370
107.42947.367937.534320.2241
117.41147.369738.187220.3836
127.42247.362038.175920.1785
137.43347.360838.089520.2996
147.41337.362138.236520.2948
157.41587.359938.105620.2010

Framework versions

  • —PEFT 0.5.0