Skip to content

Commit

Permalink
Update libtpu/xla/jax pin (#8480)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsy323 authored Dec 11, 2024
1 parent 7dd2697 commit 7261c79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ new_local_repository(
# curl -L https://github.com/openxla/xla/archive/<git hash>.tar.gz | sha256sum
# and update the sha256 with the result.

xla_hash = '0020d6a56274c8893517adb22b46a3fcb5fa340a'
xla_hash = '30f22f4d6cb523e035c237f30aeac4e00ae34821'

http_archive(
name = "xla",
Expand Down
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,16 @@
base_dir = os.path.dirname(os.path.abspath(__file__))

USE_NIGHTLY = False # whether to use nightly or stable libtpu and jax
_date = '20241205'
_libtpu_version = f'0.0.5'
_jax_version = f'0.4.36'
_date = '20241209'
_libtpu_version = f'0.0.6'
_jax_version = f'0.4.37'
_jaxlib_version = f'0.4.36'
_libtpu_wheel_name = f'libtpu-{_libtpu_version}'

if USE_NIGHTLY:
_libtpu_version += f".dev{_date}"
_jax_version += f".dev{_date}"
_jaxlib_version += f".dev{_date}"
_libtpu_wheel_name += f".dev{_date}+nightly"

_libtpu_storage_path = f'https://storage.googleapis.com/libtpu-nightly-releases/wheels/libtpu/{_libtpu_wheel_name}-py3-none-linux_x86_64.whl'
Expand Down Expand Up @@ -329,7 +331,7 @@ def run(self):
"libtpu-nightly==0.1.dev20241010+nightly.cleanup"
],
# pip install torch_xla[pallas] -f https://storage.googleapis.com/jax-releases/jax_nightly_releases.html -f https://storage.googleapis.com/jax-releases/jaxlib_nightly_releases.html
'pallas': [f'jaxlib=={_jax_version}', f'jax=={_jax_version}'],
'pallas': [f'jaxlib=={_jaxlib_version}', f'jax=={_jax_version}'],
},
cmdclass={
'build_ext': BuildBazelExtension,
Expand Down

0 comments on commit 7261c79

Please sign in to comment.