yuzhimanhua / Multi-BioNER

Cross-type Biomedical Named Entity Recognition with Deep Multi-task Learning (Bioinformatics'19)
https://arxiv.org/abs/1801.09851
Apache License 2.0
132 stars 28 forks source link

Is there any way to run it on MacOS without Nvidia GPU? #9

Closed YuliaInn closed 4 years ago

YuliaInn commented 4 years ago

I installed PyTorch for MacOS. When I run ./run_lm-lstm-crf5.sh I get this: AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'

Does this mean that if I do not have Nvidia there is no way to run your tool?

yuzhimanhua commented 4 years ago

Could you try the following?

torch._C._cuda_setDevice(-1)

Also, even if you can run the code with CPU, it will be extremely slow.

YuliaInn commented 4 years ago

torch._C._cuda_setDevice(-1) did not work for me.

But I found a server with GPU server, thank you