SAVRN
Search Contact SAVRN

Open-weight model · Translation

opus-mt-tc-big-en-bg

by Helsinki-NLP Research Group Helsinki-NLP/opus-mt-tc-big-en-bg

Neural machine translation model for translating from English (en) to Bulgarian (bg). This model is part of the OPUS-MT project, an effort to make neural machine translation models widely available and accessible for many languages in the world.

Parameters238M
Context1,024
Weights1.9 GB
Licensecc-by-4.0
AccessOpen weights
Monthly Downloads23.2k

Runs On

What it takes to serve opus-mt-tc-big-en-bg (238M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.5 GB 0.6 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.2 GB 0.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

Model Card

By Helsinki-NLP Research Group, published under cc-by-4.0, revision 558a7fa51deb.

Neural machine translation model for translating from English (en) to Bulgarian (bg). This model is part of the OPUS-MT project, an effort to make neural machine translation models widely available and accessible for many languages in the world. All models are originally trained using the amazing framework of Marian NMT, an efficient NMT implementation written in pure C++. The models have been converted to pyTorch using the transformers library by huggingface. Training data is taken from OPUS and training pipelines use the procedures of OPUS-MT-train. You can also use OPUS-MT models with the transformers pipelines, for example: The work is supported by the European Language Grid as pilot…

Read Helsinki-NLP Research Group's full model card

Neural machine translation model for translating from English (en) to Bulgarian (bg).

This model is part of the OPUS-MT project, an effort to make neural machine translation models widely available and accessible for many languages in the world. All models are originally trained using the amazing framework of Marian NMT, an efficient NMT implementation written in pure C++. The models have been converted to pyTorch using the transformers library by huggingface. Training data is taken from OPUS and training pipelines use the procedures of OPUS-MT-train.

@inproceedings{tiedemann-thottingal-2020-opus,
    title = "{OPUS}-{MT} {--} Building open translation services for the World",
    author = {Tiedemann, J{\"o}rg  and Thottingal, Santhosh},
    booktitle = "Proceedings of the 22nd Annual Conference of the European Association for Machine Translation",
    month = nov,
    year = "2020",
    address = "Lisboa, Portugal",
    publisher = "European Association for Machine Translation",
    url = "https://aclanthology.org/2020.eamt-1.61",
    pages = "479--480",
}

@inproceedings{tiedemann-2020-tatoeba,
    title = "The Tatoeba Translation Challenge {--} Realistic Data Sets for Low Resource and Multilingual {MT}",
    author = {Tiedemann, J{\"o}rg},
    booktitle = "Proceedings of the Fifth Conference on Machine Translation",
    month = nov,
    year = "2020",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2020.wmt-1.139",
    pages = "1174--1182",
}

Model info

Usage

A short example code:

from transformers import MarianMTModel, MarianTokenizer

src_text = [
    "2001 is the year when the 21st century begins.",
    "This is Copacabana!"
]

model_name = "pytorch-models/opus-mt-tc-big-en-bg"
tokenizer = MarianTokenizer.from_pretrained(model_name)
model = MarianMTModel.from_pretrained(model_name)
translated = model.generate(**tokenizer(src_text, return_tensors="pt", padding=True))

for t in translated:
    print( tokenizer.decode(t, skip_special_tokens=True) )

# expected output:
#     2001 е годината, в която започва 21-ви век.
#     Това е Копакабана!

You can also use OPUS-MT models with the transformers pipelines, for example:

from transformers import pipeline
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-tc-big-en-bg")
print(pipe("2001 is the year when the 21st century begins."))

# expected output: 2001 е годината, в която започва 21-ви век.

Benchmarks

langpair testset chr-F BLEU #sent #words
eng-bul tatoeba-test-v2021-08-07 0.68987 51.5 10000 69504
eng-bul flores101-devtest 0.69891 44.9 1012 24700

Acknowledgements

The work is supported by the European Language Grid as pilot project 2866, by the FoTran project, funded by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No 771113), and the MeMAD project, funded by the European Union’s Horizon 2020 Research and Innovation Programme under grant agreement No 780069. We are also grateful for the generous computational resources and IT infrastructure provided by CSC -- IT Center for Science, Finland.

Model conversion info

  • transformers version: 4.16.2
  • OPUS-MT git hash: 3405783
  • port time: Wed Apr 13 16:29:32 EEST 2022
  • port machine: LM0-400-22516.local

Configuration

Architecture
MarianMTModel
Context length (tokens)
1,024
Layers
6
Vocabulary size
60,427
Stored precision
float16
Model type
marian

Identity and Version

Repository
Helsinki-NLP/opus-mt-tc-big-en-bg
Publisher
Helsinki-NLP Research Group
Task
Translation
Modality
Text
Library
transformers
Parameters
238M parameters
Languages
bg, en
Revision
558a7fa51deb7da5a214174be73423ffee1807c6
First published
2022-04-13
Last updated
2023-10-10

Files and Weights

14 files, 1.9 GB in total. The weights are 3 files totalling 1.9 GB in bin, h5, safetensors.

Weights3 files · 1.9 GB
Configuration3 files · 1.4 KB
Tokenizer2 files · 2.5 MB
Documentation1 file · 6.0 KB
Other4 files · 3.3 MB
Repository1 file · 1.3 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights476.6 MB 1fd6b03e5baa
pytorch_model.binWeights476.7 MB 11dae07f6725
tf_model.h5Weights962.1 MB b5e4c5afafbc
config.jsonConfiguration1.1 KB
generation_config.jsonConfiguration301 B
special_tokens_map.jsonConfiguration65 B
README.mdDocumentation6.0 KB
benchmark_results.txtOther269 B
benchmark_translations.zipOther1.5 MB 1f68cf30a94e
source.spmOther804.4 KB 2aa5f560397d
target.spmOther1.0 MB 556cf31670b6
.gitattributesRepository1.3 KB
tokenizer_config.jsonTokenizer337 B
vocab.jsonTokenizer2.5 MB

License and Download

License
cc-by-4.0
Access
Open weights, no gate
Download size
1.9 GB
Download from Helsinki-NLP Research Group

Released by Helsinki-NLP Research Group through its official repository on Hugging Face. Read the license.

Evaluations

Each result is shown as reported, with the conditions its reporter stated. None is a SAVRN measurement. A comparison lines two results up only when their configuration, unit and setup are all stated and identical.

BenchmarkConditionsResultReported byRevisionDate
flores101-devtest Task Translation eng-bulMetric BLEUComparison conditions not established 44.9 Helsinki-NLP
Publisher reported
Evaluated revision not stated
tatoeba-test-v2021-08-07 Task Translation eng-bulMetric BLEUComparison conditions not established 51.5 Helsinki-NLP
Publisher reported
Evaluated revision not stated

Memory Requirements

PrecisionWeights in memory
As published1.9 GB
16-bit0.5 GB
8-bit0.2 GB
4-bit0.1 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About opus-mt-tc-big-en-bg

How much GPU memory does opus-mt-tc-big-en-bg need?

About 0.6 GB at 16-bit and 0.1 GB at 4-bit: the weights (238M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run opus-mt-tc-big-en-bg on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use opus-mt-tc-big-en-bg commercially?

Yes. opus-mt-tc-big-en-bg is released under Creative Commons Attribution 4.0. CC BY 4.0 permits sharing and adapting the work, including commercially, provided the creator is credited and changes are indicated.

What is opus-mt-tc-big-en-bg's context length?

1,024 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Neural machine translation model for translating from Turkish (tr) to English (en). This model is part of the OPUS-MT project, an effort to make neural machine translation models widely available and accessible for many languages in the world. All models are originally trained using the amazing framework of Marian NMT, an efficient NMT implementation written in pure C++. The models have been converted to pyTorch using the transformers library by huggingface. Training data is taken from OPUS and training pipelines use the procedures of OPUS-MT-train. You can also use OPUS-MT models with the transformers pipelines, for example: The work is supported by the European Language Grid as pilot…

Open weights cc-by-4.0 235M parameters 1,024 tokens transformers

Model · Translation

t5-base

T5 community

The developers of the Text-To-Text Transfer Transformer (T5) write: T5-Base is the checkpoint with 220 million parameters. The developers write in a blog post that the model: See the blog post and research paper for further details. The model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5. The model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.). Thereby, the following datasets were being used for (1.) and (2.): 1. Datasets used for Unsupervised denoising objective: 2. Datasets used for Supervised text-to-text language modeling objective - CoLA Warstadt et…

Open weights apache-2.0 223M parameters transformers

Neural machine translation model for translating from Korean (ko) to English (en). This model is part of the OPUS-MT project, an effort to make neural machine translation models widely available and accessible for many languages in the world. All models are originally trained using the amazing framework of Marian NMT, an efficient NMT implementation written in pure C++. The models have been converted to pyTorch using the transformers library by huggingface. Training data is taken from OPUS and training pipelines use the procedures of OPUS-MT-train. - More information about released models for this language pair: OPUS-MT kor-eng README - Tatoeba Translation…

Open weights cc-by-4.0 209M parameters 1,024 tokens transformers

This is the model card of IndicTrans2 En-Indic Distilled 200M variant. Please refer to section 7.6: Distilled Models in the TMLR submission for further details on model training, data and metrics. Please refer to the github repository for a detail description on how to use HF compatible IndicTrans2 models for inference. - New RoPE based IndicTrans2 models which are capable of handling sequence lengths upto 2048 tokens are available here - These models can be used by just changing the modelname parameter. Please read the model card of the RoPE-IT2 models for more information about the generation. - It is recommended to run these models with flashattention2 for efficient generation. If you…

Access requested at publisher mit 275M parameters transformers

source languages: fr; target languages: en; OPUS readme: fr-en; dataset: opus; model: transformer-align; pre-processing: normalization + SentencePiece.

Open weights apache-2.0 75M parameters 512 tokens transformers

Model · Translation

t5-small

T5 community

The developers of the Text-To-Text Transfer Transformer (T5) write: T5-Small is the checkpoint with 60 million parameters. The developers write in a blog post that the model: See the blog post and research paper for further details. The model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5. The model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.). Thereby, the following datasets were being used for (1.) and (2.): 1. Datasets used for Unsupervised denoising objective: 2. Datasets used for Supervised text-to-text language modeling objective - CoLA Warstadt et…

Open weights apache-2.0 61M parameters transformers