Skip to content

Commit

Permalink
docs(framework:skip) Update the changelog for 1.10 release (#3895)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel J. Beutel <[email protected]>
Co-authored-by: Javier <[email protected]>
  • Loading branch information
3 people authored Jul 24, 2024
1 parent c704ae3 commit 3b2c471
Showing 1 changed file with 98 additions and 0 deletions.
98 changes: 98 additions & 0 deletions doc/source/ref-changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,103 @@
# Changelog

## v1.10.0 (2024-07-24)

### Thanks to our contributors

We would like to give our special thanks to all the contributors who made the new version of Flower possible (in `git shortlog` order):

`Adam Narozniak`, `Charles Beauville`, `Chong Shen Ng`, `Daniel J. Beutel`, `Daniel Nata Nugraha`, `Danny`, `Gustavo Bertoli`, `Heng Pan`, `Ikko Eltociear Ashimine`, `Javier`, `Jiahao Tan`, `Mohammad Naseri`, `Robert Steiner`, `Sebastian van der Voort`, `Taner Topal`, `Yan Gao` <!---TOKEN_v1.10.0-->

### What's new?

- **Introduce** `flwr run` **(beta)** ([#3810](https:/adap/flower/pull/3810), [#3826](https:/adap/flower/pull/3826), [#3880](https:/adap/flower/pull/3880), [#3807](https:/adap/flower/pull/3807), [#3800](https:/adap/flower/pull/3800), [#3814](https:/adap/flower/pull/3814), [#3811](https:/adap/flower/pull/3811), [#3809](https:/adap/flower/pull/3809), [#3819](https:/adap/flower/pull/3819))

Flower 1.10 ships the first beta release of the new `flwr run` command. `flwr run` can run different projects using `flwr run path/to/project`, it enables you to easily switch between different federations using `flwr run . federation` and it runs your Flower project using either local simulation or the new (experimental) SuperExec service. This allows Flower to scale federatated learning from fast local simulation to large-scale production deployment, seamlessly. All projects generated with `flwr new` are immediately runnable using `flwr run`. Give it a try: use `flwr new` to generate a project and then run it using `flwr run`.

- **Introduce run config** ([#3751](https:/adap/flower/pull/3751), [#3750](https:/adap/flower/pull/3750), [#3845](https:/adap/flower/pull/3845), [#3824](https:/adap/flower/pull/3824), [#3746](https:/adap/flower/pull/3746), [#3728](https:/adap/flower/pull/3728), [#3730](https:/adap/flower/pull/3730), [#3725](https:/adap/flower/pull/3725), [#3729](https:/adap/flower/pull/3729), [#3580](https:/adap/flower/pull/3580), [#3578](https:/adap/flower/pull/3578), [#3576](https:/adap/flower/pull/3576), [#3798](https:/adap/flower/pull/3798), [#3732](https:/adap/flower/pull/3732), [#3815](https:/adap/flower/pull/3815))

The new run config feature allows you to run your Flower project in different configurations without having to change a single line of code. You can now build a configurable `ServerApp` and `ClientApp` that read configuration values at runtime. This enables you to specify config values like `learning-rate=0.01` in `pyproject.toml` (under the `[tool.flwr.app.config]` key). These config values can then be easily overridden via `flwr run --run-config learning-rate=0.02`, and read from `Context` using `lr = context.run_config["learning-rate"]`. Create a new project using `flwr new` to see run config in action.

- **Generalize** `client_fn` **signature to** `client_fn(context: Context) -> Client` ([#3779](https:/adap/flower/pull/3779), [#3697](https:/adap/flower/pull/3697), [#3694](https:/adap/flower/pull/3694), [#3696](https:/adap/flower/pull/3696))

The `client_fn` signature has been generalized to `client_fn(context: Context) -> Client`. It now receives a `Context` object instead of the (now depreacated) `cid: str`. `Context` allows accessing `node_id`, `node_config` and `run_config`, among other things. This enables you to build a configurable `ClientApp` that leverages the new run config system.

The previous signature `client_fn(cid: str)` is now deprecated and support for it will be removed in a future release. Use `client_fn(context: Context) -> Client` everywhere.

- **Introduce new** `server_fn(context)` ([#3773](https:/adap/flower/pull/3773), [#3796](https:/adap/flower/pull/3796), [#3771](https:/adap/flower/pull/3771))

In addition to the new `client_fn(context:Context)`, a new `server_fn(context: Context) -> ServerAppComponents` can now be passed to `ServerApp` (instead of passing, for example, `Strategy`, directly). This enables you to leverage the full `Context` on the server-side to build a configurable `ServerApp`.

- **Relaunch all** `flwr new` **templates** ([#3877](https:/adap/flower/pull/3877), [#3821](https:/adap/flower/pull/3821), [#3587](https:/adap/flower/pull/3587), [#3795](https:/adap/flower/pull/3795), [#3875](https:/adap/flower/pull/3875), [#3859](https:/adap/flower/pull/3859), [#3760](https:/adap/flower/pull/3760))

All `flwr new` templates have been significantly updated to showcase new Flower features and best practices. This includes using `flwr run` and the new run config feature. You can now easily create a new project using `flwr new` and, after following the instructions to install it, `flwr run` it.

- **Introduce** `flower-supernode` **(preview)** ([#3353](https:/adap/flower/pull/3353))

The new `flower-supernode` CLI is here to replace `flower-client-app`. `flower-supernode` brings full multi-app support to the Flower client-side. It also allows to pass `--node-config` to the SuperNode, which is accessible in your `ClientApp` via `Context` (using the new `client_fn(context: Context)` signature).

- **Introduce node config** ([#3782](https:/adap/flower/pull/3782), [#3780](https:/adap/flower/pull/3780), [#3695](https:/adap/flower/pull/3695), [#3886](https:/adap/flower/pull/3886))

A new node config feature allows you to pass a static configuration to the SuperNode. This configuration is read-only and available to every `ClientApp` running on that SuperNode. A `ClientApp` can access the node config via `Context` (`context.node_config`).

- **Introduce SuperExec (experimental)** ([#3605](https:/adap/flower/pull/3605), [#3723](https:/adap/flower/pull/3723), [#3731](https:/adap/flower/pull/3731), [#3589](https:/adap/flower/pull/3589), [#3604](https:/adap/flower/pull/3604), [#3622](https:/adap/flower/pull/3622), [#3838](https:/adap/flower/pull/3838), [#3720](https:/adap/flower/pull/3720), [#3606](https:/adap/flower/pull/3606), [#3602](https:/adap/flower/pull/3602), [#3603](https:/adap/flower/pull/3603), [#3555](https:/adap/flower/pull/3555), [#3808](https:/adap/flower/pull/3808), [#3724](https:/adap/flower/pull/3724), [#3658](https:/adap/flower/pull/3658), [#3629](https:/adap/flower/pull/3629))

This is the first experimental release of Flower SuperExec, a new service that executes your runs. It's not ready for production deployment just yet, but don't hesitate to give it a try if you're interested.

- **Add new federated learning with tabular data example** ([#3568](https:/adap/flower/pull/3568))

A new code example exemplifies a federated learning setup using the Flower framework on the Adult Census Income tabular dataset.

- **Create generic adapter layer (preview)** ([#3538](https:/adap/flower/pull/3538), [#3536](https:/adap/flower/pull/3536), [#3540](https:/adap/flower/pull/3540))

A new generic gRPC adapter layer allows 3rd-party frameworks to integrate with Flower in a transparent way. This makes Flower more modular and allows for integration into other federated learning solutions and platforms.

- **Refactor Flower Simulation Engine** ([#3581](https:/adap/flower/pull/3581), [#3471](https:/adap/flower/pull/3471), [#3804](https:/adap/flower/pull/3804), [#3468](https:/adap/flower/pull/3468), [#3839](https:/adap/flower/pull/3839), [#3806](https:/adap/flower/pull/3806), [#3861](https:/adap/flower/pull/3861), [#3543](https:/adap/flower/pull/3543), [#3472](https:/adap/flower/pull/3472), [#3829](https:/adap/flower/pull/3829), [#3469](https:/adap/flower/pull/3469))

The Simulation Engine was significantly refactored. This results in faster and more stable simulations. It is also the foundation for upcoming changes that aim to provide the next level of performance and configurability in federated learning simulations.

- **Optimize Docker containers** ([#3591](https:/adap/flower/pull/3591))

Flower Docker containers were optimized and updated to use that latest Flower framework features.

- **Improve logging** ([#3776](https:/adap/flower/pull/3776), [#3789](https:/adap/flower/pull/3789))

Improved logging aims to be more concise and helpful to show you the details you actually care about.

- **Refactor framework internals** ([#3621](https:/adap/flower/pull/3621), [#3792](https:/adap/flower/pull/3792), [#3772](https:/adap/flower/pull/3772), [#3805](https:/adap/flower/pull/3805), [#3583](https:/adap/flower/pull/3583), [#3825](https:/adap/flower/pull/3825), [#3597](https:/adap/flower/pull/3597), [#3802](https:/adap/flower/pull/3802), [#3569](https:/adap/flower/pull/3569))

As always, many parts of the Flower framework and quality infrastructure were improved and updated.

### Documentation improvements

- **Add 🇰🇷 Korean translations** ([#3680](https:/adap/flower/pull/3680))

- **Update translations** ([#3586](https:/adap/flower/pull/3586), [#3679](https:/adap/flower/pull/3679), [#3570](https:/adap/flower/pull/3570), [#3681](https:/adap/flower/pull/3681), [#3617](https:/adap/flower/pull/3617), [#3674](https:/adap/flower/pull/3674), [#3671](https:/adap/flower/pull/3671), [#3572](https:/adap/flower/pull/3572), [#3631](https:/adap/flower/pull/3631))

- **Update documentation** ([#3864](https:/adap/flower/pull/3864), [#3688](https:/adap/flower/pull/3688), [#3562](https:/adap/flower/pull/3562), [#3641](https:/adap/flower/pull/3641), [#3384](https:/adap/flower/pull/3384), [#3634](https:/adap/flower/pull/3634), [#3823](https:/adap/flower/pull/3823), [#3793](https:/adap/flower/pull/3793), [#3707](https:/adap/flower/pull/3707))

Updated documentation includes new install instructions for different shells, a new Flower Code Examples documentation landing page, new `flwr` CLI docs and an updated federated XGBoost code example.

### Deprecations

- **Deprecate** `client_fn(cid: str)`

`client_fn` used to have a signature `client_fn(cid: str) -> Client`. This signature is now deprecated. Use the new signature `client_fn(context: Context) -> Client` instead. The new argument `context` allows accessing `node_id`, `node_config`, `run_config` and other `Context` features. When running using the simulation engine (or using `flower-supernode` with a custom `--node-config partition-id=...`), `context.node_config["partition-id"]` will return an `int` partition ID that can be used with Flower Datasets to load a different partition of the dataset on each simulated or deployed SuperNode.

- **Deprecate passing** `Server/ServerConfig/Strategy/ClientManager` **to** `ServerApp` **directly**

Creating `ServerApp` using `ServerApp(config=config, strategy=strategy)` is now deprecated. Instead of passing `Server/ServerConfig/Strategy/ClientManager` to `ServerApp` directly, pass them wrapped in a `server_fn(context: Context) -> ServerAppComponents` function, like this: `ServerApp(server_fn=server_fn)`. `ServerAppComponents` can hold references to `Server/ServerConfig/Strategy/ClientManager`. In addition to that, `server_fn` allows you to access `Context` (for example, to read the `run_config`).

### Incompatible changes

- **Remove support for `client_ids` in `start_simulation`** ([#3699](https:/adap/flower/pull/3699))

The (rarely used) feature that allowed passing custom `client_ids` to the `start_simulation` function was removed. This removal is part of a bigger effort to refactor the simulation engine and unify how the Flower internals work in simulation and deployment.

- **Remove `flower-driver-api` and `flower-fleet-api`** ([#3418](https:/adap/flower/pull/3418))

The two deprecated CLI commands `flower-driver-api` and `flower-fleet-api` were removed in an effort to streamline the SuperLink developer experience. Use `flower-superlink` instead.

## v1.9.0 (2024-06-10)

### Thanks to our contributors
Expand Down

0 comments on commit 3b2c471

Please sign in to comment.