Skip to content

Commit

Permalink
Merge pull request #63007 from tensorflow/r2.16-a0d7ace8e2f
Browse files Browse the repository at this point in the history
r2.16 cherry-pick: a0d7ace "Update libtpu index and release version"
  • Loading branch information
learning-to-play committed Feb 21, 2024
2 parents 7010802 + ca6afcc commit 1fe5c77
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ci/official/envs/linux_x86_tpu
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ TFCI_BUILD_PIP_PACKAGE_ARGS="--repo_env=WHEEL_NAME=tensorflow_tpu"
TFCI_LIB_SUFFIX="-tpu-linux-x86_64"
TFCI_WHL_BAZEL_TEST_ENABLE=0
TFCI_WHL_SIZE_LIMIT=580M
TFCI_PYTHON_VERIFY_PIP_INSTALL_ARGS="-f https://storage.googleapis.com/libtpu-releases/index.html"
TFCI_PYTHON_VERIFY_PIP_INSTALL_ARGS="-f https://storage.googleapis.com/libtpu-tf-releases/index.html"
9 changes: 6 additions & 3 deletions tensorflow/tools/pip_package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,19 +330,22 @@ def find_files(pattern, root):
# $ pip install <tf-tpu project> -f https://storage.googleapis.com/libtpu-releases/index.html
# libtpu is built and uploaded to this link every night (PST).
if '_tpu' in project_name:
# For tensorflow-tpu releases, use a set libtpu-nightly version;
# For tensorflow-tpu releases, use a set libtpu version;
# For tf-nightly-tpu, use the most recent libtpu-nightly. Because of the
# timing of these tests, the UTC date from eight hours ago is expected to be a
# valid version.
_libtpu_version = standard_or_nightly(
'0.1.dev20231018',
'2.16.0rc0',
'0.1.dev'
+ (
datetime.datetime.now(tz=datetime.timezone.utc)
- datetime.timedelta(hours=8)
).strftime('%Y%m%d'),
)
REQUIRED_PACKAGES.append([f'libtpu-nightly=={_libtpu_version}'])
if _libtpu_version.startswith('0.1'):
REQUIRED_PACKAGES.append([f'libtpu-nightly=={_libtpu_version}'])
else:
REQUIRED_PACKAGES.append([f'libtpu=={_libtpu_version}'])
CONSOLE_SCRIPTS.extend([
'start_grpc_tpu_worker = tensorflow.python.tools.grpc_tpu_worker:run',
('start_grpc_tpu_service = '
Expand Down
9 changes: 6 additions & 3 deletions tensorflow/tools/pip_package/v2/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,19 +317,22 @@ def find_files(pattern, root):
# https://storage.googleapis.com/libtpu-releases/index.html
# libtpu is built and uploaded to this link every night (PST).
if '_tpu' in project_name:
# For tensorflow-tpu releases, use a set libtpu-nightly version;
# For tensorflow-tpu releases, use a set libtpu version;
# For tf-nightly-tpu, use the most recent libtpu-nightly. Because of the
# timing of these tests, the UTC date from eight hours ago is expected to be a
# valid version.
_libtpu_version = standard_or_nightly(
'0.1.dev20231018',
'2.16.0rc0',
'0.1.dev'
+ (
datetime.datetime.now(tz=datetime.timezone.utc)
- datetime.timedelta(hours=8)
).strftime('%Y%m%d'),
)
REQUIRED_PACKAGES.append([f'libtpu-nightly=={_libtpu_version}'])
if _libtpu_version.startswith('0.1'):
REQUIRED_PACKAGES.append([f'libtpu-nightly=={_libtpu_version}'])
else:
REQUIRED_PACKAGES.append([f'libtpu=={_libtpu_version}'])
CONSOLE_SCRIPTS.extend([
'start_grpc_tpu_worker = tensorflow.python.tools.grpc_tpu_worker:run',
('start_grpc_tpu_service = '
Expand Down

0 comments on commit 1fe5c77

Please sign in to comment.