Skip to content

Commit ea8c16d

Browse files
committed
Merge branch 'master' into aktech/linting-workflow
2 parents 5d9d45b + d1f407f commit ea8c16d

File tree

228 files changed

+3132
-2002
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+3132
-2002
lines changed

.bazelrc

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ build:cuda_clang --host_copt=-Wno-error=unused-command-line-argument
1515
build:cuda_clang --repo_env TF_NEED_TENSORRT=0
1616
build:cuda_clang --action_env=TF_CUDA_CLANG="1"
1717
build:cuda_clang --@local_config_cuda//:cuda_compiler=clang
18-
build:cuda_clang --repo_env=TF_CUDA_COMPUTE_CAPABILITIES="sm_50,sm_60,sm_70,sm_80,compute_90"
18+
build:cuda_clang --repo_env=TF_CUDA_COMPUTE_CAPABILITIES="sm_60,sm_70,sm_80,compute_90"
1919

2020
build:cuda_clang --repo_env=HERMETIC_CUDA_VERSION="12.2.0"
2121
build:cuda_clang --repo_env=HERMETIC_CUDNN_VERSION="8.9.4.25"
22-
build:cuda_clang --action_env=GCC_HOST_COMPILER_PATH="/dt9/usr/bin/gcc"
22+
build:cuda_clang --action_env=GCC_HOST_COMPILER_PATH="/usr/bin/gcc-10"
2323
build:cuda_clang --action_env=CLANG_CUDA_COMPILER_PATH="/usr/lib/llvm-17/bin/clang"
2424

25+
build:kokoro --repo_env=CC="/usr/bin/gcc-10"
26+
build:kokoro --action_env=CC="/usr/bin/gcc-10"
27+
2528
# Options used to build with TPU support.
2629
build:tpu --define=with_tpu_support=true --define=framework_shared_object=false
2730
build:tpu --copt=-DLIBTPU_ON_GCE
@@ -49,6 +52,7 @@ build:mkl_aarch64 --copt=-O3
4952

5053
build --define=build_with_onednn_v2=true
5154
build --define=xnn_enable_avxvnni=false
55+
build --define=xnn_enable_avxvnniint8=false
5256
build --define=xnn_enable_avx256vnnigfni=false
5357
build --define=xnn_enable_avx512amx=false
5458
build --define=xnn_enable_avx512fp16=false
@@ -90,10 +94,6 @@ build --experimental_cc_shared_library
9094
# uses TensorFlow for all IO operations.
9195
build --define=use_tensorflow_io=1
9296

93-
# TensorFlow Decision Forests need absl::anyInvocable support for new versions
94-
# of Tensorflow.
95-
build --define use_absl_anyinvocable=1
96-
9797
# TensorFlow Decision Forests does not use Absl concurrency primitives on MacOs.
9898
# Reason: TensorFlow/ABSL ODR violation (b/214189609) # copybara:strip
9999
build:macos --define std_synchronization_primitives=1
@@ -102,3 +102,12 @@ build:macos --define std_synchronization_primitives=1
102102
# We silence warnings for code in `external`.
103103
build --per_file_copt=external/.*@-w
104104
build --host_per_file_copt=external/.*@-w
105+
build --copt=-Wno-macro-redefined # absl vs tsl logging clash
106+
build --copt=-Wno-sign-compare # int as loop variable
107+
build --copt=-Wno-deprecated-declarations
108+
build --copt=-Wno-unused-but-set-variable # due to `ifdefs` in ml_dtypes
109+
110+
# Revert to the legacy WORKSPACE dependency resolution system
111+
# and disable Bzlmod.
112+
common --enable_bzlmod=false
113+
common --noincompatible_enable_cc_toolchain_resolution

RELEASE.md

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,180 @@
1+
<!-- disableFinding(HEADING_REPEAT_H1) -->
2+
3+
# Release 2.19.1
4+
5+
## Major Features and Improvements
6+
7+
* No major features or improvements.
8+
9+
## Breaking Changes
10+
11+
* No breaking changes.
12+
13+
## Bug Fixes and Other Changes
14+
15+
* This release is based on TF version 2.19.1.
16+
17+
# Release 2.19.0
18+
19+
## Major Features and Improvements
20+
21+
* No major features or improvements.
22+
23+
## Breaking Changes
24+
25+
* No breaking changes.
26+
27+
## Bug Fixes and Other Changes
28+
29+
* This release is based on TF version 2.19.0.
30+
31+
# Release 2.19.0-rc0
32+
33+
## Major Features and Improvements
34+
35+
* No major features or improvements.
36+
37+
## Breaking Changes
38+
39+
* No breaking changes.
40+
41+
## Bug Fixes and Other Changes
42+
43+
* Update release notes for 2.18.0-rc0 (commit: a2253e5cb54de2f726e0b7d1756deb354f0ef6b0)
44+
* cleanup: explicitly set use_java_stubby_library (commit: c22da48061f411b3387e4c3c995d710132a980de)
45+
* cleanup: explicitly set use_java_stubby_library (commit: 5f55e76fbcf192d6026ddb2f284bfb16a921ec81)
46+
* cleanup: explicitly set use_java_stubby_library (commit: b2be8a3ae3d868f8d3e00917a07aac5db5e0d5d1)
47+
* Fix invalid argument to proto_library (commit: 36aa4a60e4fdd833f304136677cb9f97792e7aec)
48+
* Enable serialization of predict response as tensor content. (commit: 1e165518394ca6461859a71284721eb1ca1b72e7)
49+
* Prepare code for breaking change in Protobuf C++ API. (commit: 9a38b3aca84f245986a902c8c8d3fd0b0aebaf51)
50+
* Add WaitResponses to PredictStreamedContext Method. (commit: a0cd2ee9834ad9c781309f3b12f45875dd624f05)
51+
* Update release notes for 2.17.1 (commit: 8bb2af5f484af23600b8752be308860b432103c2)
52+
* Add a new field in PredictRequest. (commit: 166dbe21f0c3ffe26920bb2fa16016f084ec97f3)
53+
* Update release notes for 2.18.0 (commit: 313413006655bcab8ef24af074456e4d68d1c32b)
54+
* Adds option to return stop tokens to PredictRequest. (commit: 2ece3e4c37401da13c710a989970d8536409e855)
55+
* Remove obsolete anyinvocable flag (commit: ffc679630f29c57c1a048adf83325cae76802134)
56+
* Move `tsl/platform/{cloud,default,windows}` to `xla/tsl/platform` (commit: 2c9e66b26e579258945bc3efe186a83e092485fd)
57+
* Use hermetic python version. (commit: d0a16ccb98167ab182a8d4d75640e8124ed8c223)
58+
* Allow HTTP Server to bind to a specific address, as opposed to listening on all addresses. (commit: 8d6cc18f16a68b2fbebcf021d601f3042d8f16af)
59+
* Add more tracer (commit: 51f1cf6d2f46fdda9d209e27d70d33ac79fffec0)
60+
* Add a note about net_http being open-sourced as a standalone library (github.com/google/net_http) (commit: 17186e6b91bc21a657ffd2ad62ba53676b15977f)
61+
* Updating TensorFlow to latest passing continuous build. (commit: 04b7d4edf02f6c0104b6b73c5728aabc728035c0)
62+
* Add aggregation key. (commit: 406764047d490dfd415296dbfd7979fa8cfb39fb)
63+
* Update users of TSL headers and targets to new location in XLA (commit: 3087ed97c7e7c1fc4cac15fc1b48fcfa97a980a6)
64+
* Remove usage of tensorflow::BlockingCounter. (commit: f86d984b0e744e16ed852b9a6b637430eee0000a)
65+
* Update users of TSL headers and targets to new location in XLA (commit: 1e25043c495bd41c3f7933a6e6689d041cc25088)
66+
* Force to call SavedMode::Run when output_filter is disabled. Note that the
67+
output filter will still be applied at
68+
`PostProcessPredictionResultWithoutOutputFilter`. We just don't prune the
69+
graph in such cases. (commit: 39e33a7271b237cafad40484ab1cf2eb6fa6e532)
70+
* Integrate BatchFunction op rewrite with serving stack (commit: 88ff3dd31ecde9ca8ba3dc21e194dce126202a48)
71+
* add missing error_callback when load is cancelled (commit: e6e78cee6f671455f529e05de5283e5a4b9212f5)
72+
* Add custom_logging_config so different loggers can introduce their own custom log processing logic. (commit: 4d5c006682f7373e6af9e3e8d0e0d092e5cbaf1a)
73+
* Update version for 2.19.0-rc0 release. (#4077) (commit: 9a8564a72ecb5eff2ba79adf459fb973b5c60822)
74+
* Added github.com/openxla/xla/pull/22572 into tensorflow.patch to resolve breakage. (commit: 72a33bd4befaf65a30104cd7574f48fbb9eaf6fc)
75+
* Fix for gcc10 breakage. (commit: 984448fc724adf326af538182dcfbc177d6b15fd)
76+
* Revert "Fix for gcc10 breakage." (commit: 69e5f6ba32fd612a331cffc034f64bfbde1d3083)
77+
* Mark Tensorflow compatible with Protobuf v30+. (commit: 8bd5eb8996960ca199147ca8c1f0bf55cce3b526)
78+
* Fix for gcc10 breakage, second attempt. (commit: 428fddee20009cf19e90431484736bd8ff6efd3f)
79+
* Additional fixes for gcc10. (commit: 021555e3f13828db037bf1a05741517ce50efea2)
80+
81+
# Release 2.18.1
82+
83+
## Major Features and Improvements
84+
85+
* No major features or improvements.
86+
87+
## Breaking Changes
88+
89+
* No breaking changes.
90+
91+
## Bug Fixes and Other Changes
92+
93+
* This release is based on TF version 2.18.1.
94+
95+
# Release 2.18.0
96+
97+
## Major Features and Improvements
98+
99+
* No major features or improvements.
100+
101+
## Breaking Changes
102+
103+
* No breaking changes.
104+
105+
## Bug Fixes and Other Changes
106+
107+
* Update version for 2.18.0 release. (#2264) (commit: 5815bfdd1d1bbd9d0d3557576c98f13afc4d9016)
108+
* This release is based on TF version 2.18.0.
109+
110+
# Release 2.18.0-rc0
111+
112+
## Major Features and Improvements
113+
114+
* No major features or improvements.
115+
116+
## Breaking Changes
117+
118+
* No breaking changes.
119+
120+
## Bug Fixes and Other Changes
121+
122+
* Extend GbmcChannel interface to implement redfish channel for TPUs (commit: 683cb64abb560324c9b1d391cdfe5b56ca1ee25a)
123+
* Add tests to validate monitoring states. (commit: fab5c054d5c4dd18b69e21326367f0c5acae2028)
124+
* Disable xnn_enable_avx256vnnigfni (commit: 19f9ccf9a3ddedc93812da7eac28554ebbc1f8dc)
125+
* Reduce duplicate code using a test class (commit: 51cf3a796d87ed8726bf5525be6481b28de0ef94)
126+
* Define an option to specify different IFRT client. (commit: aca5cfa285061815ab840274264fc6993cd620eb)
127+
* Add release notes for tf-serving 2.17.0 (commit: b72a86e5768017b1699b2c463953d9a5f7db1583)
128+
* avoid SetNumLoadThreads stall the server by forcing reset ThreadPool (commit: 6b9cf7c8777fd79868e73dc07663517993933be0)
129+
* Add max_enqueued_batches option for model servers (commit: 7c99259e82cfdc4f12dbd5715acd6d17fc936b5d)
130+
* Remove gpr_set_log_verbosity from grpc_client.cc (commit: 6e05a385d7f4591d46ae7b1d1a02244a5340a29b)
131+
* Add option to stop retrying on permanent loading errors. (commit: 9ba72fa8a5df6e320caf207bd88673ad4c88e12e)
132+
* Add the batch_padding_policy attribute the tensorflow serving api. (commit: ea02141a00089d77561db46aac0e2ca07bd44b2f)
133+
* Improve handling of large JSON objects. (commit: 6cb013167d13f2ed3930aabb86dbc2c8c53f5adf)
134+
* Silence warnings from external code (commit: 010d61a30f549423f61a3fa29ef0f2f0c8ed7f6c)
135+
* Migration of the histogram header and cc code for TSL. Move tsl/lib/histogram to compiler/tsl/lib/histogram and update users. (commit: ab33df407e103b746aec8e165e31f4bc92ed388c)
136+
* Add hermetic CUDA repository rule calls to TF serving project. (commit: 787c85f1a3f0268a243880418c97f37bed56762b)
137+
* Update users of `status_test_util` to use the new location in `xla/tsl` (commit: 22b2b1e21793c9f7c583a1ee51cf8d73657fb0d2)
138+
* Bump Bazel version from 6.4.0 to 6.5.0. (commit: 82e532fa3a3182560af6f23c38ddcb017c5e384f)
139+
* provide an option to customize the sort order among servable names (commit: 32a85a8b42e6892e380bd4d54cf10b0c5734da4b)
140+
* Remove cc_api_version stage 4: deletion where cc_api_version = 2 (commit: 7e0c1966627d9fa482acf1ef0ea983f4aa90f607)
141+
* Remove cc_api_version stage 4: deletion where cc_api_version = 2 (commit: 48e0f56b8f84310596de1c97037d8d02053a9d14)
142+
* This is a noop comment update for streaming inputs. (commit: cfac240ba956f29b0ae91008d1fe073f94c7ae84)
143+
* Add a resource kind for number of LoRA models. (commit: 6b7ba27fd9dfef8d03fab076ea236e296370a3fe)
144+
* Disable more warnings to make logs cleaner (commit: 4a830cadb604ed3d050b841e280a5b3486f86e4a)
145+
* Add `bool return_single_response` field to `PredictStreamedOptions`. (commit: 648c9ee6489a3cf820aa1fcab82b821209e82af5)
146+
* Use gcc-10 to avoid build issues while building XLA on CI (commit: 8bd1fda7e132a626921e458859db0e519deec451)
147+
* Create separate `kokoro` config (commit: dbc7681fb6b89ed184dc0b41ddcfd59df0bd55b4)
148+
* Remove top-level .bazelrc settings now that scripts use `--config=kokoro` (commit: f920b982ca7341eaf0b6456780d1268a3c8735be)
149+
* Update Dockerfile.devel to build with gcc-10 (commit: f9c0262ecff0425f4647e6d52ab8f346a812e456)
150+
* Move `tsl/lib/monitoring` to `xla/tsl/lib/monitoring` (commit: cb934df6ed2f1dd2b80e71611fe4db3f709dea4c)
151+
* Delete 'enable_lazy_split', since the flag is not used anywhere. The code paths for the above flag being false are retained and true are eliminated. This will ensure that improving batching will be easier. (commit: 873993f9f4c8506194e3a130b0185f71db10bdc6)
152+
* BUILD rule fix. (commit: d89b27235f94b245ae1822b5125f6c67e0b587db)
153+
* Automated Code Change (commit: 4decd0ab78bb3ffb205baeccc64340c2a180ed01)
154+
* Automated Code Change (commit: 0b05e865a05ca6a74344213ce74d0a43f1fbbc40)
155+
* Fix build error (commit: d341c3406f5c4e66525f06fb9232a2ce64d7989b)
156+
* Added capability to use XLA on a GPU. (commit: e5e795f518942a4c61b154a357bc4b16670d3f06)
157+
* Update version for 2.18.0-rc0 release. (#2258) (commit: d6d402263bb9c9dec0151e5aebfa81e5ec015e40)
158+
* Mark Tensorflow compatible with Protobuf v26+. (#2261) (commit: 424dba4101e3d28ac5cf9e65df5747676ef2a1e3)
159+
* Update version for 2.18.0-rc0 release. (#2262) (commit: 67f4ee85350fb48ddda0bd7d1c1ebfd4601ed3e1)
160+
* This release is based on TF version 2.18.0-rc2.
161+
162+
# Release 2.17.1
163+
164+
## Major Features and Improvements
165+
166+
* No major features or improvements.
167+
168+
## Breaking Changes
169+
170+
* No breaking changes.
171+
172+
## Bug Fixes and Other Changes
173+
174+
* Create separate `kokoro` config (commit: 3af106649212377ef845a9d53fccddb00c10293f)
175+
* Update version for 2.17.1 release. (#2266) (commit: 7b6021dd4cc6c1a815a84f160b77438c84818a66)
176+
* This release is based on TF version 2.17.1.
177+
1178
# Release 2.17.0
2179

3180
## Major Features and Improvements

WORKSPACE

Lines changed: 46 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ local_repository(
2424
load("//tensorflow_serving:repo.bzl", "tensorflow_http_archive")
2525
tensorflow_http_archive(
2626
name = "org_tensorflow",
27-
sha256 = "f37e5bc18ce59f68edfe1ce4e8a9243c726d3da26aa505cddc68c0acfd61a1d0",
28-
git_commit = "cb9444bad5ab359e288f545126ef895ca1232c43",
27+
sha256 = "e2dea5a1873f900a6af48ae16eccc20b275b5f3edd5b1a3b47da3feadfb513d9",
28+
git_commit = "5fb3b1fefda9320202da184752a3366fbeddfeac",
29+
patch = "//third_party/tensorflow:tensorflow.patch",
2930
)
3031

3132
# Import all of TensorFlow Serving's external dependencies.
@@ -37,7 +38,7 @@ tf_serving_workspace()
3738

3839
# Check bazel version requirement, which is stricter than TensorFlow's.
3940
load("@bazel_skylib//lib:versions.bzl", "versions")
40-
versions.check("6.5.0")
41+
versions.check("7.4.1")
4142

4243
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4344

@@ -50,6 +51,13 @@ http_archive(
5051
],
5152
)
5253

54+
http_archive(
55+
name = "rules_cc",
56+
sha256 = "b8b918a85f9144c01f6cfe0f45e4f2838c7413961a8ff23bc0c6cdf8bb07a3b6",
57+
strip_prefix = "rules_cc-0.1.5",
58+
url = "https://github.com/bazelbuild/rules_cc/releases/download/0.1.5/rules_cc-0.1.5.tar.gz",
59+
)
60+
5361
http_archive(
5462
name = "rules_python",
5563
sha256 = "84aec9e21cc56fbc7f1335035a71c850d1b9b5cc6ff497306f84cced9a769841",
@@ -59,21 +67,35 @@ http_archive(
5967

6068
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
6169

70+
load(
71+
"@rules_python//python:repositories.bzl",
72+
"py_repositories",
73+
"python_register_toolchains",
74+
)
75+
py_repositories()
76+
77+
load(
78+
"@org_tensorflow//tensorflow/tools/toolchains/python:python_repo.bzl",
79+
"python_repository",
80+
)
81+
python_repository(name = "python_version_repo")
82+
load("@python_version_repo//:py_version.bzl", "HERMETIC_PYTHON_VERSION")
83+
6284
python_register_toolchains(
6385
name = "python",
6486
ignore_root_user_error = True,
65-
python_version = "3.9",
87+
python_version = HERMETIC_PYTHON_VERSION,
6688
)
6789

6890
# Initialize TensorFlow's external dependencies.
69-
load("@org_tensorflow//tensorflow:workspace3.bzl", "workspace")
70-
workspace()
71-
load("@org_tensorflow//tensorflow:workspace2.bzl", "workspace")
72-
workspace()
73-
load("@org_tensorflow//tensorflow:workspace1.bzl", "workspace")
74-
workspace()
75-
load("@org_tensorflow//tensorflow:workspace0.bzl", "workspace")
76-
workspace()
91+
load("@org_tensorflow//tensorflow:workspace3.bzl", "tf_workspace3")
92+
tf_workspace3()
93+
load("@org_tensorflow//tensorflow:workspace2.bzl", "tf_workspace2")
94+
tf_workspace2()
95+
load("@org_tensorflow//tensorflow:workspace1.bzl", "tf_workspace1")
96+
tf_workspace1()
97+
load("@org_tensorflow//tensorflow:workspace0.bzl", "tf_workspace0")
98+
tf_workspace0()
7799

78100
# Initialize bazel package rules' external dependencies.
79101
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
@@ -85,7 +107,14 @@ rules_proto_dependencies()
85107
rules_proto_toolchains()
86108

87109
load(
88-
"@local_tsl//third_party/gpus/cuda/hermetic:cuda_json_init_repository.bzl",
110+
"@local_xla//third_party/py:python_wheel.bzl",
111+
"python_wheel_version_suffix_repository",
112+
)
113+
114+
python_wheel_version_suffix_repository(name = "tf_wheel_version_suffix")
115+
116+
load(
117+
"@local_xla//third_party/gpus/cuda/hermetic:cuda_json_init_repository.bzl",
89118
"cuda_json_init_repository",
90119
)
91120

@@ -97,7 +126,7 @@ load(
97126
"CUDNN_REDISTRIBUTIONS",
98127
)
99128
load(
100-
"@local_tsl//third_party/gpus/cuda/hermetic:cuda_redist_init_repositories.bzl",
129+
"@local_xla//third_party/gpus/cuda/hermetic:cuda_redist_init_repositories.bzl",
101130
"cuda_redist_init_repositories",
102131
"cudnn_redist_init_repository",
103132
)
@@ -111,21 +140,21 @@ cudnn_redist_init_repository(
111140
)
112141

113142
load(
114-
"@local_tsl//third_party/gpus/cuda/hermetic:cuda_configure.bzl",
143+
"@local_xla//third_party/gpus/cuda/hermetic:cuda_configure.bzl",
115144
"cuda_configure",
116145
)
117146

118147
cuda_configure(name = "local_config_cuda")
119148

120149
load(
121-
"@local_tsl//third_party/nccl/hermetic:nccl_redist_init_repository.bzl",
150+
"@local_xla//third_party/nccl/hermetic:nccl_redist_init_repository.bzl",
122151
"nccl_redist_init_repository",
123152
)
124153

125154
nccl_redist_init_repository()
126155

127156
load(
128-
"@local_tsl//third_party/nccl/hermetic:nccl_configure.bzl",
157+
"@local_xla//third_party/nccl/hermetic:nccl_configure.bzl",
129158
"nccl_configure",
130159
)
131160

tensorflow_serving/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ exports_files(["LICENSE"])
1010

1111
package_group(
1212
name = "internal",
13-
packages = ["//tensorflow_serving/..."],
13+
packages = [
14+
"//learning/gemini/deployment/disaggregation/...",
15+
"//tensorflow_serving/...",
16+
],
1417
)
1518

1619
filegroup(

tensorflow_serving/apis/BUILD

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22

33
# buildifier: disable=out-of-order-load
44

5+
# Placeholder: load java_proto_library
6+
7+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
8+
59
# Placeholder: load py_library
610
# Placeholder: load kt_jvm_proto_library
711
load("@org_tensorflow//tensorflow/core/platform:build_config.bzl", "tf_jspb_proto_library", "tf_pyclif_proto_library")
812
load("//tensorflow_serving:serving.bzl", "serving_go_grpc_library", "serving_proto_library", "serving_proto_library_py", "serving_tensorflow_proto_dep")
913

1014
# buildifier: enable=out-of-order-load
1115

16+
# Placeholder: load go_proto_library
17+
1218
package(
1319
default_visibility = ["//visibility:public"],
1420
features = ["layering_check"],

0 commit comments

Comments
 (0)