RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase

#6
by TiBri - opened

I have just tried using the Comet framework for the first time. I have integrated it via the Python sample code and installed all packages beforehand.

But I' ve got the error:

"RuntimeError:
An attempt was made to start a new process before the current process has finished its bootstrapping phase.

This probably means that you cannot use fork to start your child processes and you have forgotten to use the correct idiom in the main module:
if name == 'main':
freeze_support()
...
The line "freeze_support()" can be omitted if the program should not be frozen to create an executable file."

There's also the information:
"Found keys that are not in the model state dict but in the checkpoint: ['encoder.model.embeddings.position_ids']
GPU available: False, used: False
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs"

The error stack trace starts at the line "model_output = model.predict(data, batch_size=8, gpus=1"

I don't have a GPU on my Laptop (graphics card: Intel Iris Xe Graphics). Is it possible that the error is caused by this? And can I somehow fix the problem or is it necessary to have a GPU on my Laptop?

Sign up or log in to comment