-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
42 lines (34 loc) · 948 Bytes
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sentiment_analysis"
version = "1.0.0"
dependencies = [
"flwr[simulation]>=1.12.0",
"flwr-datasets[vision]>=0.3.0",
"torch==2.2.1",
"transformers",
"matplotlib",
]
[tool.hatch.build.targets.wheel]
packages = ["."]
[tool.flwr.app]
publisher = "flwrlabs"
[tool.flwr.app.components]
serverapp = "sentiment_analysis.server_app:app"
clientapp = "sentiment_analysis.client_app:app"
[tool.flwr.app.config]
num-server-rounds = 3
fraction-fit = 0.25
fraction-evaluate = 0.5
[tool.flwr.federations]
default = "local-sim-gpu"
[tool.flwr.federations.local-sim]
options.num-supernodes = 4
options.backend.client-resources.num-cpus = 2
options.backend.client-resources.num-gpus = 0.0
[tool.flwr.federations.local-sim-gpu]
options.num-supernodes = 4
options.backend.client-resources.num-cpus = 2
options.backend.client-resources.num-gpus = 0.25