Downloads · 30 days
0
zwhe99/wmt21-comet-qe-da
wmt21-comet-qe-da is a machine learning model from zwhe99. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Downloads · 30 days
0
Access
Public
Updated Nov 10, 2023
Repo size
4.6 GB
Likes
0
Public
Click a slice to open those files.
.ckpt2.3 GB · 100%
From the Hugging Face model README
Creator: Unbabel
The Hub was created to enable the direct usage of the wmt21-comet-qe-da model with Python from the Hub.
Code example:
pip install --upgrade pip # ensures that pip is current
pip install unbabel-comet
from comet import download_model, load_from_checkpoint
model_path = download_model("zwhe99/wmt21-comet-qe-da")
model = load_from_checkpoint(model_path)
data = [
{
"src": "Dem Feuer konnte Einhalt geboten werden",
"mt": "The fire could be stopped",
"ref": "They were able to control the fire."
},
{
"src": "Schulen und Kindergärten wurden eröffnet.",
"mt": "Schools and kindergartens were open",
"ref": "Schools and kindergartens opened"
}
]
model_output = model.predict(data, batch_size=8, gpus=1)
print (model_output)