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

[Bug] Error in Evaluation #111

Open
LeoXinhaoLee opened this issue Mar 18, 2024 · 0 comments
Open

[Bug] Error in Evaluation #111

LeoXinhaoLee opened this issue Mar 18, 2024 · 0 comments

Comments

@LeoXinhaoLee
Copy link

Hi, when running llama_train.py distributedly on a v3-512 tpu pod, when I turn on evaluation (eval_steps > 0), I got this error:

RuntimeError: Running operations on `Array`s that are not fully addressable by this process (
i.e. `Array`s with data sharded across multiple devices and processes.) is dangerous. It’s ve
ry important that all processes run the same cross-process computations in the same order oth
erwise it can lead to hangs. If you’re not already familiar with JAX’s multi-process programm
ing model, please read https://jax.readthedocs.io/en/latest/multi_process.html. To fix this e
rror, run your `jitted` computation inside `with jax.spmd_mode('allow_all'):` context manager
.

This happens at this line in code :

average_metrics(eval_metric_list)

Could you please help me with this? Thank you very much!

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

1 participant