Downloads · 30 days
0
0% of all-time downloads
myyycroft/XCOMET-lite
XCOMET-lite is a machine learning model from myyycroft. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Links: EMNLP 2024 | Arxiv | Github repository
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
6
Public
Repo size
3.4 GB
Likes
9
Public
Click a slice to open those files.
.bin1.1 GB · 100%
From the Hugging Face model README
Links: EMNLP 2024 | Arxiv | Github repository
XCOMET-lite is a distilled version of Unbabel/XCOMET-XXL — a machine translation evaluation model trained to provide an overall quality score between 0 and 1, where 1 represents a perfect translation.
This model uses microsoft/mdeberta-v3-base as its backbone and has 278 million parameters, making it approximately 38 times smaller than the 10.7 billion-parameter XCOMET-XXL.
Then, run the following code:
from xcomet.deberta_encoder import XCOMETLite
model = XCOMETLite().from_pretrained("myyycroft/XCOMET-lite")
data = [
{
"src": "Elon Musk has acquired Twitter and plans significant changes.",
"mt": "Илон Маск приобрел Twitter и планировал значительные искажения.",
"ref": "Илон Маск приобрел Twitter и планирует значительные изменения."
},
{
"src": "Elon Musk has acquired Twitter and plans significant changes.",
"mt": "Илон Маск приобрел Twitter.",
"ref": "Илон Маск приобрел Twitter и планирует значительные изменения."
}
]
model_output = model.predict(data, batch_size=2, gpus=1)
print("Segment-level scores:", model_output.scores)