Hey all. Has anyone been able to get gpu support i...
# ask-metaflow
s
Hey all. Has anyone been able to get gpu support in aws batch working? I’m trying to use Jax and it’s not working (various errors or it just doesn’t find the gpu)
1
c
First thing I'd make sure of is that there are GPUs available in your AWS batch compute environment. Can you see the instance types available to the compute env on AWS Batch dashboard?
s
Yeah it’s a gpu instance
That was my first thought too
c
apologies if you have already gone through this basic routine. if you can share stack trace and/or the metaflow step code, I can try to run a test that reproduces what you are seeing..
👍 1
s
That’s a good point. I’ve been checking the platform but I should see if it’s even seeing the gpus at all
I’ll see if i can create a minimal example to share
👍 1
Before I go down this route, do you know of any working examples that already exist that I can try to replicate?
c
Not for jax off top of my head. I'll put together a hello world to verify. Message back here within the hour
s
No kidding? Man that would be awesome
The latest attempt only sees the cpu. I’m using the nvidia cuda12 runtime image, with jax[cuda12_local] installed
c
very helpful, will try with this image
s
I’m not married to that image, it’s just the latest one I’ve been trying lol
I’m just trying to get something that’ll work
c
nice, even more helpful haha out of the box it seems that conda + jax don't play too well together, might need to get creative here.
s
Yeah I noticed that
They have some workarounds, but they’re not too great so far
Let me ask you… what is metaflow doing under the hood regarding environments?
c
metaflow is making a docker image to run on batch, we can also pass a custom image to batch decorator (described in this metaflow/docker 101 post) if we want more control. lets see if we can use an Nvidia image and then pip install jax on the fly, since using
@conda
sounds like it might be a pain in the jax case.
👍 1
s
I found one bug. They changed their install instructions last week. Testing to see if that’s a fix
It worked!
woohoo 1
It was the new install instructions that did it
c
how are you installing it now?
s
I can’t copy paste (my job blocks slack, so I’m using my phone), but I’m letting Jax install cuda and cudnn
The example in their GitHub readme
c
nice! thanks. glad you got it sorted out 🙂
s
Jax[cuda11_pip]
Thanks for your help!
c
Anytime