COMET icon indicating copy to clipboard operation
COMET copied to clipboard

[QUESTION] predict multiple times with a model

Open dh-Kang opened this issue 1 year ago • 1 comments

❓ 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

  • OS: [e.g. iOS, Linux, Win]
  • Packaging [e.g. pip, conda]
  • Version [e.g. 0.5.2.1]

dh-Kang avatar Jun 30 '24 13:06 dh-Kang

I've encountered the same issue. Have you resolved it?

Sleepyhead1111 avatar Feb 24 '25 05:02 Sleepyhead1111