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

testing #37

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from
15 changes: 15 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# coding=utf-8
# Copyright 2023 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Workspace file for Jax Tpu Embedding."""

load("//jax_tpu_embedding:build_defs.bzl", "jte_targets") # @unused
Expand Down
2 changes: 1 addition & 1 deletion jax_tpu_embedding/build_defs.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Starlark macros for Jax Embedding API users."""

load("//devtools/python/blaze:pytype.bzl", "pytype_binary")
load("//jax_tpu_embedding:jte.bzl", "pytype_binary", "pytype_strict_binary")

def _export_sources_impl(ctx):
files = []
Expand Down
15 changes: 15 additions & 0 deletions jax_tpu_embedding/jte.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# coding=utf-8
# Copyright 2022 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Implements custom rules for Jax Tpu Embedding."""

# Placeholder to use until bazel supports pytype_*.
Expand Down
1 change: 0 additions & 1 deletion jax_tpu_embedding/pip_package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ RUN pip3 install pip six numpy wheel setuptools mock 'future>=0.17.1'
RUN mv jax_tpu_embedding/jax_tpu_embedding/pip_package /jax_tpu_embedding/
RUN cd /jax_tpu_embedding && bash pip_package/build.sh


WORKDIR /

CMD ["/bin/bash"]
2 changes: 1 addition & 1 deletion jax_tpu_embedding/pip_package/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ bazel test --test_output=all --test_verbose_timeout_warnings -- jax_tpu_embe

chmod u+x pip_package/build_pip_pkg.sh
./pip_package/build_pip_pkg.sh "$DST_DIR" ${PYTHON_VERSION}
pip3 freeze > "${DST_DIR}/dependencies.txt"
pip3 freeze > "${DST_DIR}/dependencies.txt"
Empty file modified jax_tpu_embedding/pip_package/build_pip_pkg.sh
100644 → 100755
Empty file.