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

Pip install gives error on TPU clustere #700

Open
abhinavg4 opened this issue Aug 22, 2024 · 1 comment
Open

Pip install gives error on TPU clustere #700

abhinavg4 opened this issue Aug 22, 2024 · 1 comment

Comments

@abhinavg4
Copy link
Contributor

The following setup commands:

pip install -U "jax[tpu]" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html
pip install levanter

Given the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ubuntu/.local/lib/python3.10/site-packages/levanter/__init__.py", line 4, in <module>
    import levanter.distributed as distributed
  File "/home/ubuntu/.local/lib/python3.10/site-packages/levanter/distributed.py", line 12, in <module>
    from jax._src.clusters import SlurmCluster, TpuCluster
ImportError: cannot import name 'TpuCluster' from 'jax._src.clusters' (/home/ubuntu/.local/lib/python3.10/site-packages/jax/_src/clusters/__init__.py)

Building from source works fine

@dlwh
Copy link
Member

dlwh commented Aug 22, 2024

the latest levanter release is super old. you need to use the git install

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