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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

An uninformative error on TPU #20812

Open
sash-a opened this issue Apr 18, 2024 · 2 comments
Open

An uninformative error on TPU #20812

sash-a opened this issue Apr 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@sash-a
Copy link

sash-a commented Apr 18, 2024

Description

Hi there, getting a strange and uninformative error when running on TPU that I don't get when running locally, was hoping someone here could explain the error 馃

jaxlib.xla_extension.XlaRuntimeError: INVALID_ARGUMENT: layout minor_to_major field contains 0 elements, but shape is rank 4: {}; shape: element_type:
PRED dimensions: 10 dimensions: 64 dimensions: 5 dimensions: 5 layout { minor_to_major: 3 minor_to_major: 2 minor_to_major: 0 minor_to_major: 1 tail_padding_alignment_in_elements: 1 } is_dynamic_dimension: false is_dynamic_dimension: false is_dynamic_dimension: false is_dynamic_dimension: false

Any help with what this error could mean would be appreciated. I've restarted the TPU and tried different JAX versions, but all seem to give the same error

System info (python version, jaxlib version, accelerator, etc.)

TPU v4-8
python 3.10
JAX 0.4.24, 0.4.25 and 0.4.26

@sash-a sash-a added the bug Something isn't working label Apr 18, 2024
@superbobry
Copy link
Member

Is there a way for us to reproduce this error?

@sash-a
Copy link
Author

sash-a commented Apr 18, 2024

Unfortunately I don't have a minimal example, I've only encountered it in a large code base. Any idea what the error could be pointing me to? The traceback just ends where I call into a pmapped function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants