Releases: google-parfait/tensorflow-federated
Releases · google-parfait/tensorflow-federated
TensorFlow Federated 0.47.0
Release 0.47.0
Major Features and Improvements
- Added a
LayoutMap
message in the computation proto for TensorFlow
DTensor
based execution.
Breaking Changes
- Removed the
compiler_fn
parameter from the high level
*_mergeable_execution_context
functions.
Bug Fixes
- Aligned the context types allowed by the
tff.program.NativeFederatedContext
and the
tff.program.PrefetchingDataSource
. - Updated
build_functional_model_delta_update
to useReduceDataset
ops to
rely on MLIR Bridge for XLA compilation and TPU usage.
TensorFlow Federated 0.46.0
Release 0.46.0
Major Features and Improvements
- Added parameter and implementation for C++ remote executor to stream the
values in a structure across the gRPC interface. - Added
tff.backends.native.desugar_and_transform_to_native
to the public
API. - Replaced
GroupNorm
implementation with implementation from Keras. - Added
tff.simulations.datasets.flair
APIs for the FLAIR dataset.
Breaking Changes
- Removed file extension for
model_output_manager
used in
tff.learning.programs
Bug Fixes
- Enabled and fixed python type annotations in some modules.
- Changed
tff.learning.algorithms.build_weighted_fed_prox
parameter
validation to allowproximal_strength = 0.0
, matching the pydoc.
TensorFlow Federated 0.45.0
Release 0.45.0
Major Features and Improvements
- Integrated the
CppToPythonExecutorBridge
into theCPPExecutorFactory
. - Changed Python Remote Executor to decompose and stream structures in Compute
and CreateValue when _stream_structs is true. Added a bool parameter
stream_structs
to
tff.backends.native.set_localhost_cpp_execution_context()
API.
Breaking Changes
- Renamed
tff.backends.native.set_localhost_cpp_execution_context()
to
backends.native.set_sync_local_cpp_execution_context()
. - Renamed
tff.framework.ExecutionContext
to
tff.framework.SyncExecutionContext
to be consistent with
tff.framework.AsyncExecutionContext
. - Removed the
SyncSerializeAndExecuteCPPContext
and
AsyncSerializeAndExecuteCPPContext
classes.
Bug Fixes
- Fixed usage of
typing.Generic
in the learning package. - Enabled pytype analysis for some modules.
- Fixed lint and formatting issues for some modules.
TensorFlow Federated 0.44.0
Release 0.44.0
Major Features and Improvements
- Improved the Python type annotations for
tff.program
API. - Extended the metrics interface on FunctionalModel to accept the entire
BatchOutput
structure from the modelforward_pass
(not just the predictions). - Introduced a DTensor Executor.
Bug Fixes
- Fixed async RuntimeWarning in the
tff.program.NativeFederatedContext
.
TensorFlow Federated 0.43.0
Release 0.43.0
Major Features and Improvements
- Improve serialization method to allow structures larger than 2 GiB (~500
million model parameters):tff.learning.models.FunctionalModel
tff.programs.FileProgramStateManager
Bug Fixes
- Fix a bug using
copy.deepcopy
for structures of awaitables (non-pickable)
intff.learning.programs
. - Fix a bug when resuming an evaluation in
tff.learning.programs.EvaluationManager
where the restarted evaluation
would overwrite released metrics.
v0.42.0: Increment the version and add release notes.
Release 0.42.0
Major Features and Improvements
- Reduced memory usage for entropy compression.
- Updated
com_google_protobuf
version tov3.19.0
. - Removed dependency on
six
.
Breaking Changes
- Removed default value for the key parameter from the abstract base class
tff.program.ReleaseManager
.
Bug Fixes
- Fixed a whitespace syntax issue with shutting down a process when using the
localhost C++ execution context. - Modified
tff.simulation.build_uniform_sampling_fn
so that the output
raises on non-integer inputs. - Only wait a subprocess instance if it is not None.
TensorFlow Federated v0.41.0
Release 0.41.0
Major Features and Improvements
- TFF-C++ runtime now installed by default. Note that this release will have a
significantly larger PIP package size. - Introduce
tff.learning.programs
for federated program-logic using the
tff.program
APIs. - Updated
tensorflow
to version2.11.0
. - Updated
tensorflow_compression
to version2.11.0
. - Updated
bazel_skylib
to version1.3.0
.
TensorFlow Federated 0.40.0
Release 0.40.0
Major Features and Improvements
- Skip model updates that are non-finite in
tff.learning.templates.build_apply_optimizer_finalizer
.
Breaking Changes
- Removed deprecated APIs in
tff.learning.framework
- Update the Python package scripts to use Python 3.10 by default.
- Remove module wildcard imports from init.py files in TFF.
- Update the Python package scripts to use Python 3.10 by default.
Bug Fixes
- Remove
functools.wraps
withintff.tf_computation
. - Fix typo in iNaturalist dataset docstring.
TensorFlow Federated 0.39.0
Release 0.39.0
Major Features and Improvements
- Added
tff.learning.models.FunctionModel
support to all methods in
tff.learning.algorithms
. - Added support for
tf.data.DataSpec
totff.types.infer_unplaced_type
. - Use a
tensorflow::ThreadPool
for parallelism inside the C++
TensorFlowExecutor
. - Introduced a new
tff.experimental_tf_fn_computation
tracing decorator that
usesFunctionDef
instead ofGraphDef
tracing, providingtf.function
auto-control-dependencies. - Renamed
number_of_clients
tonum_clients
in the federated program API. - Replaced the following API with composers API in
tff.learning.templates
.tff.learning.framework.build_model_delta_optimizer_process
tff.learning.framework.ClientDeltaFn
Bug Fixes
- Fixed a bug in the “Client-efficient large-model federated learning”
tutorial to use the correct dense shape.
TensorFlow Federated 0.38.0
Release 0.38.0
Major Features and Improvements
- Added
tff.learning.models.FunctionalModel
support to
tff.learning.algorithms.build_mime_lite
. - Updated
tensorflow-privacy
to version0.8.6
. - Added an abstract interface describing an asynchronous context
- Removed references to
tff.framework.Context
. - Added
tff.simulation.datasets.gldv2.get_synthetic
. - Added prefetching data source in
tff.program.PrefetchingDataSource
.
Breaking Changes
- Deleted deprecated
tff.learning.framework.build_encoded_broadcast_process_from_model
. - Deprecated
tff.learning.ModelWeights
and alias
tff.learning.framework.ModelWeights
, has now moved to
tff.learning.models.ModelWeights
. Code should be updated before the next
release.
Bug Fixes
- Fixed a bug with variable creation order of metrics in
tff.learning.models.functional_model_from_keras
. - Improved
tff.tf_computation
tracing to also tracefunctools.partial
objects.
Known Bugs
- Colab compatibility: TFF requires Python 3.9 while Colab runtime uses Python
3.7.