Open mfelice opened 3 years ago
From the fourth line of the readme:
ctxs = [mx.cpu()] # or, e.g., [mx.gpu(0), mx.gpu(1)]
Did you happen to try ctxs = [mx.gpu(0), mx.gpu(1), mx.gpu(2)]
?
As for finding things that are hard-coded, are you aware that you can search the repository?
Thanks! The values in ctxs
seem to be ignored. However, I've been able to circumvent the issue by setting CUDA_VISIBLE_DEVICES
. I believe the culprit is cuda:0
and/or device_ids=[0]
in the following block:
Maybe that should be set to whatever is specified by ctxs
?
Hi there,
I'm facing an issue with your PyTorch implementation and some input sentences. E.g.
gives the following error:
I'm working on a server with three GPUs and tried setting
ctxs = [mx.gpu(0)]
,ctxs = [mx.gpu(1)]
,ctxs = [mx.gpu(2)]
andctxs = [mx.cpu()]
but I always get the same error about GPU 0. I'm wondering if this is hardcoded somewhere in your code? Changing thectxs
variable seems to have no effect.Thanks.