Unbabel / COMET

A Neural Framework for MT Evaluation
https://unbabel.github.io/COMET/html/index.html
Apache License 2.0
441 stars 72 forks source link

[QUESTION] predict multiple times with a model #222

Open dh-Kang opened 1 week ago

dh-Kang commented 1 week ago

❓ Questions and Help

Before asking:

  1. Search for similar issues.
  2. Search the docs.

What is your question?

When I tried to predict some data multiple times, there's problem. First dataset prediction is complete. While it try second dataset, this process is stucked and only GPU0 is occupied very long time. So, I have to kill the process and start from second dataset again. Below is final part of log of trying second dataset

GPU available: True (cuda), used: True TPU available: False, using: 0 TPU cores HPU available: False, using: 0 HPUs Killed

What should I do for fixing this problem?

Code

model_path = download_model("Unbabel/wmt22-cometkiwi-da") model = load_from_checkpoint(model_path) model.predict(data1, batch_size=256, gpus=8)["scores"] ... model.predict(data2, batch_size=256, gpus=8)["scores"]

What have you tried?

What's your environment?

python 3.11.9 pyenv Linux 22.04 torch==2.3.1 unbabel-comet==2.2.2