You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to use the mode 'Unbabel/wmt22-cometkiwi-da' it pops the following error
Traceback (most recent call last):
File "/COMETKIWI/main.py", line 19, in
model_output = model.predict(data, batch_size=8, gpus=1)
File "Anaconda3/envs/comet/lib/python3.9/site-packages/comet/models/base.py", line 652, in predict
scores = torch.cat([pred.scores for pred in predictions], dim=0).tolist()
File "Anaconda3/envs/comet/lib/python3.9/site-packages/comet/models/base.py", line 652, in
scores = torch.cat([pred.scores for pred in predictions], dim=0).tolist()
AttributeError: 'dict' object has no attribute 'scores'
I can see the error is corrected in the repo, but when using the model directly(from huggingface) with the following command, it still shows the error. I think the model needs to be updated too.
The issue is within the COMET code, not on huggingface. The PR to fix this has been merged on main - but the package on PyPI has not been yet updated to include this fix. The only option rn is to download the repo and use the newest code.
馃悰 Bug
When I try to use the mode 'Unbabel/wmt22-cometkiwi-da' it pops the following error
Traceback (most recent call last):
File "/COMETKIWI/main.py", line 19, in
model_output = model.predict(data, batch_size=8, gpus=1)
File "Anaconda3/envs/comet/lib/python3.9/site-packages/comet/models/base.py", line 652, in predict
scores = torch.cat([pred.scores for pred in predictions], dim=0).tolist()
File "Anaconda3/envs/comet/lib/python3.9/site-packages/comet/models/base.py", line 652, in
scores = torch.cat([pred.scores for pred in predictions], dim=0).tolist()
AttributeError: 'dict' object has no attribute 'scores'
I can see the error is corrected in the repo, but when using the model directly(from huggingface) with the following command, it still shows the error. I think the model needs to be updated too.
comet-score -s src.txt -t hyp1.txt --model Unbabel/wmt22-cometkiwi-da
Environment
OS: [ Linux]
Packaging [conda]
The text was updated successfully, but these errors were encountered: