Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uneven GPU usage #11

Closed
Separius opened this issue Mar 24, 2023 · 1 comment
Closed

Uneven GPU usage #11

Separius opened this issue Mar 24, 2023 · 1 comment

Comments

@Separius
Copy link

Hi,
Thank you for providing your code. I'm super new to jax and I'm not sure if this is a common thing to jax or your codebase, but I'm seeing a strange GPU ram usage on my GPUs, I have a single node with 4 GPUs (each with 24GB of RAM). The first GPU is using 23895MiB (according to nvidia-smi), and the rest are using 1487MiB.
Is that expected or something is wrong with my environment? (BTW, I also sat XLA_PYTHON_CLIENT_PREALLOCATE to false and it didn't make a difference)

@hyunjik11
Copy link
Contributor

Hi, it looks like you're only using one of the four GPUs. Could you check whether jax.local_device_count() correctly returns a value of 4, or whether it gives 1? If it's 4, then the pmap in experiment_meta_learning.py should be using all 4 devices equally, so I'm not sure why you'd be seeing such asymmetric behaviour. But it it's 1 then this would be an issue with jax and not with the functa codebase. This link might help you: jax-ml/jax#5231

@Separius Separius closed this as completed Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants