Translation

Error when using the sample code using unbabel-comet v1

#2
by alvations - opened

When loading the model, it is throwing this error:

---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
<ipython-input-3-d02e562f82c2> in <module>
      1 from comet import download_model, load_from_checkpoint
      2 
----> 3 model_path = download_model("Unbabel/unite-mup")
      4 model = load_from_checkpoint(model_path)
      5 data = [

~/Library/Python/3.8/lib/python/site-packages/comet/download_utils.py in download_model(model, saving_directory)
    201 
    202     elif model not in available_metrics.keys():
--> 203         raise Exception(
    204             f"{model} is not in the `availale_metrics` or is a valid checkpoint folder."
    205         )

Exception: Unbabel/unite-mup is not in the `availale_metrics` or is a valid checkpoint folder.

My comet version is:

unbabel-comet==1.0.1

It works with pip install unbabel-comet==2.0.2 though, perhaps the markdown instruction should be updated to:

pip install unbabel-comet>=2.0.2

Thanks! I'll update README with that info!

Thanks Ricardo!

alvations changed discussion title from Error when using the sample code to Error when using the sample code using unbabel-comet v1

Sign up or log in to comment