jhu-clsp / kreyol-mt-scratch-pubtrain

huggingface.co
Total runs: 21
24-hour runs: -1
7-day runs: 4
30-day runs: 14
Model's Last Updated: June 02 2024
text-generation

Introduction of kreyol-mt-scratch-pubtrain

Model Details of kreyol-mt-scratch-pubtrain

Kreyòl-MT

Welcome to the repository for our from-scratch public-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, trained from scratch on public data.

from transformers import MBartForConditionalGeneration, AutoModelForSeq2SeqLM
from transformers import AlbertTokenizer, AutoTokenizer

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

# The tokenizer we use is based on the AlbertTokenizer class which is essentially sentencepiece. We train this sentencepeice model from scratch.
# Or use tokenizer = AlbertTokenizer.from_pretrained("jhu-clsp/kreyol-mt-scratch-pubtrain", do_lower_case=False, use_fast=False, keep_accents=True)

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

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

# Some initial mapping
bos_id = tokenizer._convert_token_to_id_with_added_voc("<s>")
eos_id = tokenizer._convert_token_to_id_with_added_voc("</s>")
pad_id = tokenizer._convert_token_to_id_with_added_voc("<pad>")

# First tokenize the input and outputs. The format below is how the model was trained so the input should be "Sentence </s> <2hwc>". Similarly, the output should be "<2eng> 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.
# The following language indicator tokens are usable: <2acf>, <2aoa>, <2ara>, <2aze>, <2bah>, <2brc>, <2bzj>, <2bzk>, <2cab>, <2ceb>, <2cri>, <2crs>, <2dcr>, <2deu>, <2djk>, <2eng>, <2fab>, <2fng>, <2fpe>, <2fra>, <2gcf>, <2gcr>, <2gpe>, <2gul>, <2gyn>, <2hat>, <2icr>, <2jam>, <2kea>, <2kri>, <2ktu>, <2lou>, <2mart1259>, <2mfe>, <2mue>, <2nep>, <2pap>, <2pcm>, <2por>, <2pov>, <2pre>, <2rcf>, <2sag>, <2spa>, <2srm>, <2srn>, <2svc>, <2tpi>, <2trf>, <2wes>, <2zho>
# For what language each language code corresponds to please look here: 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> <2jam>', 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("<2eng>"))

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-scratch-pubtrain on huggingface.co

21
Total runs
-1
24-hour runs
-1
3-day runs
4
7-day runs
14
30-day runs

More Information About kreyol-mt-scratch-pubtrain huggingface.co Model

More kreyol-mt-scratch-pubtrain license Visit here:

https://choosealicense.com/licenses/mit

kreyol-mt-scratch-pubtrain huggingface.co

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

kreyol-mt-scratch-pubtrain huggingface.co Url

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

jhu-clsp kreyol-mt-scratch-pubtrain online free

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

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

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

kreyol-mt-scratch-pubtrain install

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

kreyol-mt-scratch-pubtrain install url in huggingface.co:

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

Url of kreyol-mt-scratch-pubtrain

kreyol-mt-scratch-pubtrain huggingface.co Url

Provider of kreyol-mt-scratch-pubtrain huggingface.co

jhu-clsp
ORGANIZATIONS

Other API from jhu-clsp

huggingface.co

Total runs: 374.9K
Run Growth: -154.7K
Growth Rate: -41.26%
Updated:October 07 2025
huggingface.co

Total runs: 40.3K
Run Growth: -7.1K
Growth Rate: -17.58%
Updated:October 18 2025
huggingface.co

Total runs: 14.1K
Run Growth: 7.2K
Growth Rate: 51.10%
Updated:April 09 2025
huggingface.co

Total runs: 674
Run Growth: 138
Growth Rate: 20.47%
Updated:April 05 2023
huggingface.co

Total runs: 543
Run Growth: 141
Growth Rate: 25.27%
Updated:April 30 2024
huggingface.co

Total runs: 470
Run Growth: 326
Growth Rate: 69.36%
Updated:April 09 2025
huggingface.co

Total runs: 273
Run Growth: 141
Growth Rate: 51.65%
Updated:April 09 2025
huggingface.co

Total runs: 193
Run Growth: 109
Growth Rate: 56.48%
Updated:June 02 2024
huggingface.co

Total runs: 162
Run Growth: 156
Growth Rate: 96.30%
Updated:August 25 2022
huggingface.co

Total runs: 44
Run Growth: 11
Growth Rate: 25.00%
Updated:September 18 2023
huggingface.co

Total runs: 36
Run Growth: 7
Growth Rate: 19.44%
Updated:April 09 2025
huggingface.co

Total runs: 28
Run Growth: 12
Growth Rate: 42.86%
Updated:April 09 2025
huggingface.co

Total runs: 19
Run Growth: -9
Growth Rate: -47.37%
Updated:April 09 2025