Closed radka-j closed 4 months ago
I get the following error when trying to load the model from HuggingFace:
RuntimeError: Error(s) in loading state_dict for UnifiedMetric: Missing key(s) in state_dict: "encoder.model.embeddings.position_ids".
I am following the example on the HuggingFace page:
from comet import download_model, load_from_checkpoint model_path = download_model("Unbabel/wmt23-cometkiwi-da-xl") model = load_from_checkpoint(model_path)
OS: MacOS
Dependencies:
huggingface_hub = "0.12.1" python = ">=3.9,<4.0.0" unbabel-comet= "2.0.1" torch = "2.0.1" pytorch-lightning = "1.9.5"
Issue resolved by updating unbabel-comet package to latest version.
unbabel-comet
🐛 Bug
I get the following error when trying to load the model from HuggingFace:
To Reproduce
I am following the example on the HuggingFace page:
Environment
OS: MacOS
Dependencies: