RuntimeError 'from_dlpack received an invalid capsule.' trying to train on GPU/RunPod #13774
Unanswered
toadle
asked this question in
Help: Installation
Replies: 1 comment
-
I was facing an issue when using the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everybody,
I'm trying to traing a spaCy pipeline
["transformer","textcat_multilabel"]
on GPU. I've verified the config to be working by training it with CPU and yielding a working model. But training took ~3h and I would like to speed it up.I'm utilizing https://www.runpod.io/ to get a GPU and successfully installed my setup and the needed
cupy
. Since RunPod offers different PyTorch installation (pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04
andpytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04
) I installed the respective versions ofcupy-cuda11x
orcupy-cuda12x
.But when I then start my training with
poetry run spacy train config.cfg --paths.train "train.spacy" --paths.dev "dev.spacy" --paths.labels "textcat_multilabel.json" --output model_transformer --gpu-id 0
I ended up here in both of the above cases:I found this: explosion/thinc#741 hinting at that I need a specific
numpy
version.When I run
poetry show
I get:I somehow have the feeling that I need a numpy version
2.x
but I don't know which combination should work.Any hints would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions