Skip to content

Commit

Permalink
refactor(framework) Update package versions in templates (#4878)
Browse files Browse the repository at this point in the history
  • Loading branch information
jafermarq authored Jan 30, 2025
1 parent 89b7959 commit d4a98bf
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 16 deletions.
5 changes: 3 additions & 2 deletions src/py/flwr/cli/new/templates/app/README.md.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ Refer to the [How to Run Simulations](https://flower.ai/docs/framework/how-to-ru

## Run with the Deployment Engine

> \[!NOTE\]
> An update to this example will show how to run this Flower application with the Deployment Engine and TLS certificates, or with Docker.
Follow this [how-to guide](https://flower.ai/docs/framework/how-to-run-flower-with-deployment-engine.html) to run the same app in this example but with Flower's Deployment Engine. After that, you might be intersted in setting up [secure TLS-enabled communications](https://flower.ai/docs/framework/how-to-enable-tls-connections.html) and [SuperNode authentication](https://flower.ai/docs/framework/how-to-authenticate-supernodes.html) in your federation.

You can run Flower on Docker too! Check out the [Flower with Docker](https://flower.ai/docs/framework/docker/index.html) documentation.

## Resources

Expand Down
6 changes: 3 additions & 3 deletions src/py/flwr/cli/new/templates/app/pyproject.baseline.toml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ description = ""
license = "Apache-2.0"
dependencies = [
"flwr[simulation]>=1.14.0",
"flwr-datasets[vision]>=0.3.0",
"torch==2.2.1",
"torchvision==0.17.1",
"flwr-datasets[vision]>=0.5.0",
"torch==2.5.1",
"torchvision==0.20.1",
]

[tool.hatch.metadata]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = ""
license = "Apache-2.0"
dependencies = [
"flwr[simulation]>=1.14.0",
"flwr-datasets>=0.3.0",
"flwr-datasets>=0.5.0",
"torch==2.3.1",
"trl==0.8.1",
"bitsandbytes==0.45.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ description = ""
license = "Apache-2.0"
dependencies = [
"flwr[simulation]>=1.14.0",
"flwr-datasets>=0.3.0",
"torch==2.2.1",
"flwr-datasets>=0.5.0",
"torch==2.5.1",
"transformers>=4.30.0,<5.0",
"evaluate>=0.4.0,<1.0",
"datasets>=2.0.0, <3.0",
"scikit-learn>=1.3.1, <2.0",
"scikit-learn>=1.6.1, <2.0",
]
[tool.hatch.build.targets.wheel]
Expand Down
2 changes: 1 addition & 1 deletion src/py/flwr/cli/new/templates/app/pyproject.jax.toml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies = [
"flwr[simulation]>=1.14.0",
"jax==0.4.30",
"jaxlib==0.4.30",
"scikit-learn==1.3.2",
"scikit-learn==1.6.1",
]

[tool.hatch.build.targets.wheel]
Expand Down
2 changes: 1 addition & 1 deletion src/py/flwr/cli/new/templates/app/pyproject.mlx.toml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = ""
license = "Apache-2.0"
dependencies = [
"flwr[simulation]>=1.14.0",
"flwr-datasets[vision]>=0.3.0",
"flwr-datasets[vision]>=0.5.0",
"mlx==0.21.1",
]

Expand Down
2 changes: 1 addition & 1 deletion src/py/flwr/cli/new/templates/app/pyproject.numpy.toml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = ""
license = "Apache-2.0"
dependencies = [
"flwr[simulation]>=1.14.0",
"numpy>=1.21.0",
"numpy>=2.0.2",
]

[tool.hatch.build.targets.wheel]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = ""
license = "Apache-2.0"
dependencies = [
"flwr[simulation]>=1.14.0",
"flwr-datasets[vision]>=0.3.0",
"flwr-datasets[vision]>=0.5.0",
"torch==2.5.1",
"torchvision==0.20.1",
]
Expand Down
4 changes: 2 additions & 2 deletions src/py/flwr/cli/new/templates/app/pyproject.sklearn.toml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ description = ""
license = "Apache-2.0"
dependencies = [
"flwr[simulation]>=1.14.0",
"flwr-datasets[vision]>=0.3.0",
"scikit-learn>=1.1.1",
"flwr-datasets[vision]>=0.5.0",
"scikit-learn>=1.6.1",
]

[tool.hatch.build.targets.wheel]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = ""
license = "Apache-2.0"
dependencies = [
"flwr[simulation]>=1.14.0",
"flwr-datasets[vision]>=0.3.0",
"flwr-datasets[vision]>=0.5.0",
"tensorflow>=2.11.1,<2.18.0",
]
Expand Down

0 comments on commit d4a98bf

Please sign in to comment.