Dear Christian,
Thanks for contributing to the forum, and it is cool that you use the Transformer baseline as starting point!
I answer in English because I hope that this way, more people can benefit from the forum (I translated your initial question to English for the same reason).
I understand that training and prediction work on your machine if you use the Docker container we provide for the Transformer baseline. But if you install SimpleTransformers locally in a Conda environment, it hangs when more than ten instances are passed to the library.
The good thing is, that our Docker container also uses Conda. So you can compare both Conda environments to identify the difference. I think there might be some version mismatch that causes this behavior.
For instance, here I run which pip3
in the Baseline container:
docker run --rm -ti --entrypoint bash webis/pan-clickbait-spoiling-baselines:task1-transformer-0.0.2 -c 'which pip3'
It outputs /opt/conda/bin/pip3
(as the docker container uses Conda).
With this, you can now look at all versions of installed libraries and dependencies in the Conda environment to figure out what might cause the problem with a command like:
docker run --rm -ti --entrypoint bash webis/pan-clickbait-spoiling-baselines:task1-transformer-0.0.2 -c 'pip3 freeze'
If your problem persists, I would suggest that you prepare a minimal Notebook in Google Colab so that we can look at the problem in the exact same environment (because otherwise, I have problems reproducing your problem. I likely use a different Operating System, and also a different Conda version).
I hope that this helps you.
Best regards, (and happy spoiling :))
Maik