Transformers
multilingual

Run this model with HF Jobs

Run Unbabel/WMT24-QE-task2-baseline on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/Unbabel/WMT24-QE-task2-baseline. Ask me which dataset to train on, then push the fine-tuned model to a new private model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Unbabel/WMT24-QE-task2-baseline on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Example usage not working

#1
by n8rob - opened

Is the example usage wrong? I am told this is not a valid model ID, and I also don't understand why it's even there since it differs from this model's ID: "Unbabel/wmt22-cometkiwi-da"

When I replace model_path = download_model("Unbabel/wmt22-cometkiwi-da") with model_path = download_model("Unbabel/WMT24-QE-task2-baseline"), I get the following error. Is the usage correct, or is it just copied and pasted from another COMET model's usage? How might I use this model in Python?

The error I encounter is KeyError: 'unite_metric_multi_task', which is thrown when I run the line model = load_from_checkpoint(model_path).

Same problem here. It seems the code implementing this model is just not published? Neither in latest unbabel-comet==2.2.4 nor anywhere on github.
(git grep unite_metric_multi_task $(git rev-list --all) returns nothing.)
Was anyone able to run this model? That is, getting word labels/confidences as output.

Ah sorry, after applying RTFM ("Using this model requires installing an older fork of unbabel-comet") I got it to run. So, as described use https://github.com/ricardorei/wmt22-comet-legacy. Had some trouble installing it, what worked in the end was downgrading to python 3.7 via pyenv.
model.predict() in comet/cli/score.py will actually return the word-level OK/BAD tags (output.tags), but they are not written to the output, had to write some lines of code myself to do that.

Ah sorry, after applying RTFM ("Using this model requires installing an older fork of unbabel-comet") I got it to run. So, as described use https://github.com/ricardorei/wmt22-comet-legacy. Had some trouble installing it, what worked in the end was downgrading to python 3.7 via pyenv.
model.predict() in comet/cli/score.py will actually return the word-level OK/BAD tags (output.tags), but they are not written to the output, had to write some lines of code myself to do that.

Hi, can you describe the installation process more detail? I am facing the installation error and still have no idea how to use this model.

Sign up or log in to comment