From https://huggingface.co/Unbabel/unite-mup, there's a model that comes from the UniTE: Unified Translation Evaluation paper. The usage was documented as such:
from comet import download_model, load_from_checkpoint
model_path = download_model("Unbabel/unite-mup")
model = load_from_checkpoint(model_path)
data = [
{
"src": "这是个句子。",
"mt": "This is a sentence.",
"ref": "It is a sentence."
},
{
"src": "这是另一个句子。",
"mt": "This is another sentence.",
"ref": "It is another sentence."
}
]
model_output = model.predict(data, batch_size=8, gpus=1)
Similar to How to load Unbabel Comet model without nested wrapper initialization?, there's a load_from_checkpoint
wrapper around the model and the actual class object that makes use of the model. Also, there's no clear instruction of how to use a locally saved Unbabel/unite-mup
model.
Is there some way to use locally saved United MUP model in Unbabel-Comet model for Machine Translation Evaluation?