jhu-clsp / kreyol-mt

huggingface.co
Total runs: 352
24-hour runs: 8
7-day runs: 59
30-day runs: 291
Model's Last Updated: June 02 2024
text-generation

Introduction of kreyol-mt

Model Details of kreyol-mt

Kreyòl-MT

Welcome to the repository for our mBART-based all-data model.

Please see our paper: 📄 "Kreyòl-MT: Building Machine Translation for Latin American, Caribbean, and Colonial African Creole Languages"

And our GitHub repository: 💻 Kreyòl-MT

And cite our work:

@article{robinson2024krey,
  title={Krey$\backslash$ol-MT: Building MT for Latin American, Caribbean and Colonial African Creole Languages},
  author={Robinson, Nathaniel R and Dabre, Raj and Shurtz, Ammon and Dent, Rasul and Onesi, Onenamiyi and Monroc, Claire Bizon and Grobol, Lo{\"\i}c and Muhammad, Hasan and Garg, Ashi and Etori, Naome A and others},
  journal={arXiv preprint arXiv:2405.05376},
  year={2024}
}
Model hosted here

This is a many-to-many model for translation into and out of Creole languages, fine-tuned on top of facebook/mbart-large-50-many-to-many-mmt , with all data.

Usage:

from transformers import MBartForConditionalGeneration, AutoModelForSeq2SeqLM
from transformers import MbartTokenizer, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("jhu-clsp/kreyol-mt", do_lower_case=False, use_fast=False, keep_accents=True)

# Or use tokenizer = MbartTokenizer.from_pretrained("jhu-clsp/kreyol-mt", use_fast=False)

model = AutoModelForSeq2SeqLM.from_pretrained("jhu-clsp/kreyol-mt")

# Or use model = MBartForConditionalGeneration.from_pretrained("jhu-clsp/kreyol-mt")

# First tokenize the input and outputs. The format below is how the model was trained so the input should be "Sentence </s> SRCCODE". Similarly, the output should be "TGTCODE Sentence </s>". 
# Example: For Saint Lucian Patois to English translation, we need to use language indicator tags: <2acf> and <2eng> where acf represents Saint Lucian Patois and eng represents English.
# For a mapping of the original language and language code (3 character) to mBART-50 compatible language tokens consider the following dictionary:
# dictmap = {'acf': 'ar_AR', 'ara': 'cs_CZ', 'aze': 'it_IT', 'bzj': 'hi_IN', 'cab': 'az_AZ', 'ceb': 'et_EE', 'crs': 'fi_FI', 'deu': 'de_DE', 'djk': 'gu_IN', 'eng': 'en_XX', 'fra': 'fr_XX', 'gcf': 'ja_XX', 'gul': 'kk_KZ', 'hat': 'ko_KR', 'icr': 'lt_LT', 'jam': 'lv_LV', 'kea': 'my_MM', 'kri': 'ne_NP', 'ktu': 'nl_XX', 'mart1259': 'ro_RO', 'mfe': 'ru_RU', 'nep': 'si_LK', 'pap': 'tr_TR', 'pcm': 'vi_VN', 'por': 'pt_XX', 'sag': 'af_ZA', 'spa': 'es_XX', 'srm': 'bn_IN', 'srn': 'fa_IR', 'tpi': 'he_IL', 'zho': 'hr_HR', 'wes': 'zh_CN', 'trf': 'id_ID', 'svc': 'ka_GE', 'rcf': 'km_KH', 'pre': 'mk_MK', 'pov': 'ml_IN', 'mue': 'mn_MN', 'lou': 'mr_IN', 'gyn': 'pl_PL', 'gpe': 'ps_AF', 'gcr': 'sv_SE', 'fpe': 'sw_KE', 'fng': 'ta_IN', 'fab': 'te_IN', 'dcr': 'th_TH', 'cri': 'tl_XX', 'bzk': 'uk_UA', 'brc': 'ur_PK', 'bah': 'xh_ZA', 'aoa': 'gl_ES'}
# Note: We mapped languages to their language tokens manually. For example, we used en_XX, fr_XX, es_XX for English, French and Spanish as in the original mBART-50 model. But then we repurposed other tokens for Creoles.

# As for what the language codes and their corresponding languages are, please refer to: https://github.com/JHU-CLSP/Kreyol-MT?tab=readme-ov-file#building-machine-translation-for-latin-american-caribbean-and-colonial-african-creole-languages

inp = tokenizer('Mi tingk se yu de tel mi lai. </s> lv_LV', add_special_tokens=False, return_tensors="pt", padding=True).input_ids

model.eval() # Set dropouts to zero

model_output=model.generate(inp, use_cache=True, num_beams=4, max_length=60, min_length=1, early_stopping=True, pad_token_id=pad_id, bos_token_id=bos_id, eos_token_id=eos_id, decoder_start_token_id=tokenizer._convert_token_to_id_with_added_voc("en_XX"))

decoded_output=tokenizer.decode(model_output[0], skip_special_tokens=True, clean_up_tokenization_spaces=False)

print(decoded_output)

results

Runs of jhu-clsp kreyol-mt on huggingface.co

352
Total runs
8
24-hour runs
17
3-day runs
59
7-day runs
291
30-day runs

More Information About kreyol-mt huggingface.co Model

More kreyol-mt license Visit here:

https://choosealicense.com/licenses/mit

kreyol-mt huggingface.co

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

jhu-clsp kreyol-mt online free

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

jhu-clsp kreyol-mt online free url in huggingface.co:

https://huggingface.co/jhu-clsp/kreyol-mt

kreyol-mt install

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

kreyol-mt install url in huggingface.co:

https://huggingface.co/jhu-clsp/kreyol-mt

Url of kreyol-mt

kreyol-mt huggingface.co Url

Provider of kreyol-mt huggingface.co

jhu-clsp
ORGANIZATIONS

Other API from jhu-clsp

huggingface.co

Total runs: 400.5K
Run Growth: 58.3K
Growth Rate: 14.55%
Updated:October 07 2025
huggingface.co

Total runs: 79.5K
Run Growth: 37.2K
Growth Rate: 46.72%
Updated:October 18 2025
huggingface.co

Total runs: 1.5K
Run Growth: -12.6K
Growth Rate: -854.32%
Updated:April 09 2025
huggingface.co

Total runs: 958
Run Growth: 343
Growth Rate: 35.80%
Updated:April 05 2023
huggingface.co

Total runs: 599
Run Growth: 71
Growth Rate: 11.79%
Updated:April 30 2024
huggingface.co

Total runs: 442
Run Growth: 176
Growth Rate: 39.82%
Updated:April 09 2025
huggingface.co

Total runs: 196
Run Growth: -202
Growth Rate: -103.06%
Updated:April 09 2025
huggingface.co

Total runs: 90
Run Growth: -32
Growth Rate: -35.56%
Updated:August 25 2022
huggingface.co

Total runs: 69
Run Growth: 51
Growth Rate: 73.91%
Updated:April 09 2025
huggingface.co

Total runs: 51
Run Growth: 17
Growth Rate: 32.69%
Updated:September 18 2023
huggingface.co

Total runs: 42
Run Growth: 11
Growth Rate: 26.19%
Updated:April 09 2025
huggingface.co

Total runs: 29
Run Growth: 3
Growth Rate: 10.34%
Updated:April 09 2025