Downloads · 30 days
15
21% of all-time downloads
rewicks/baseline_en-de_64k_ep1
baseline_en-de_64k_ep1 is a translation model from rewicks. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as apache-2.0.
This model is a simple bilingual English-German machine translation trained with MarianNMT. They were converted to huggingface using scripts derived from the Helsinki-NLP group. We collected most datasets listed via m…
Downloads · 30 days
15
21% of all-time downloads
All-time downloads
70
Public
Parameters
343M
2.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.npz1.4 GB · 50%
From the Hugging Face model README
This model is a simple bilingual English-German machine translation trained with MarianNMT. They were converted to huggingface using scripts derived from the Helsinki-NLP group. We collected most datasets listed via mtdata and filtered. The processed data is also available on huggingface.
We trained these models in order to develop a new ensembling algorithm. Agreement-Based Ensembling is an inference-time-only algorithm that allows for ensembling models with different vocabularies, without the ned to learn additional parameters or alter the underlying models. Instead, the algorithm ensures that tokens generated by the ensembled models agree in their surface form. For more information, please check out our code available on GitHub, or read our paper on Arxiv.
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
The code below can be used to translate lines read from standard input (our baseline in our paper).
import sys
import torch
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model_id = sys.argv[1]
device = "cuda" if torch.cuda.is_available() else "cpu"
tokenizer = AutoTokenizer.from_pretrained(model_id, torch_dtype=torch.bfloat16)
model = AutoModelForSeq2SeqLM.from_pretrained(model_id).to(device)
model = model.eval()
for line in sys.stdin:
line = line.strip()
inputs = tokenizer(line, return_tensors="pt").to(device)
translated_tokens = model.generate(
**inputs, max_length=256,
num_beams = 5,
)
print(tokenizer.batch_decode(translated_tokens, skip_special_tokens=True)[0])
Data is available here.
We use sotastream to stream data over stdin.
We use MarianNMT to train.
The config is available in the repo as config.yml.
BLEU on WMT24 is XX.
RTX Titan (24GB)
BibTeX:
[More Information Needed]
APA: