flwr 1.24.0__py3-none-any.whl → 1.25.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. flwr/cli/app_cmd/review.py +13 -3
  2. flwr/cli/federation/show.py +4 -3
  3. flwr/cli/ls.py +44 -3
  4. flwr/cli/new/new.py +106 -297
  5. flwr/cli/run/run.py +12 -17
  6. flwr/cli/run_utils.py +23 -5
  7. flwr/cli/stop.py +1 -1
  8. flwr/cli/supernode/ls.py +10 -5
  9. flwr/cli/utils.py +0 -137
  10. flwr/client/grpc_adapter_client/connection.py +2 -2
  11. flwr/client/grpc_rere_client/connection.py +6 -3
  12. flwr/client/rest_client/connection.py +6 -4
  13. flwr/common/serde.py +6 -0
  14. flwr/common/typing.py +6 -0
  15. flwr/proto/fleet_pb2.py +10 -10
  16. flwr/proto/fleet_pb2.pyi +5 -1
  17. flwr/proto/run_pb2.py +24 -24
  18. flwr/proto/run_pb2.pyi +10 -1
  19. flwr/server/app.py +1 -0
  20. flwr/server/superlink/fleet/message_handler/message_handler.py +41 -2
  21. flwr/server/superlink/linkstate/in_memory_linkstate.py +34 -0
  22. flwr/server/superlink/linkstate/linkstate.py +32 -0
  23. flwr/server/superlink/linkstate/sqlite_linkstate.py +60 -3
  24. flwr/supercore/constant.py +3 -0
  25. flwr/supercore/utils.py +190 -0
  26. flwr/superlink/servicer/control/control_grpc.py +2 -0
  27. flwr/superlink/servicer/control/control_servicer.py +88 -5
  28. flwr/supernode/nodestate/in_memory_nodestate.py +62 -1
  29. flwr/supernode/nodestate/nodestate.py +45 -0
  30. flwr/supernode/servicer/clientappio/clientappio_servicer.py +7 -1
  31. flwr/supernode/start_client_internal.py +7 -4
  32. {flwr-1.24.0.dist-info → flwr-1.25.0.dist-info}/METADATA +2 -4
  33. {flwr-1.24.0.dist-info → flwr-1.25.0.dist-info}/RECORD +35 -96
  34. flwr/cli/new/templates/__init__.py +0 -15
  35. flwr/cli/new/templates/app/.gitignore.tpl +0 -163
  36. flwr/cli/new/templates/app/LICENSE.tpl +0 -202
  37. flwr/cli/new/templates/app/README.baseline.md.tpl +0 -127
  38. flwr/cli/new/templates/app/README.flowertune.md.tpl +0 -68
  39. flwr/cli/new/templates/app/README.md.tpl +0 -37
  40. flwr/cli/new/templates/app/__init__.py +0 -15
  41. flwr/cli/new/templates/app/code/__init__.baseline.py.tpl +0 -1
  42. flwr/cli/new/templates/app/code/__init__.py +0 -15
  43. flwr/cli/new/templates/app/code/__init__.py.tpl +0 -1
  44. flwr/cli/new/templates/app/code/__init__.pytorch_legacy_api.py.tpl +0 -1
  45. flwr/cli/new/templates/app/code/client.baseline.py.tpl +0 -75
  46. flwr/cli/new/templates/app/code/client.huggingface.py.tpl +0 -93
  47. flwr/cli/new/templates/app/code/client.jax.py.tpl +0 -71
  48. flwr/cli/new/templates/app/code/client.mlx.py.tpl +0 -102
  49. flwr/cli/new/templates/app/code/client.numpy.py.tpl +0 -46
  50. flwr/cli/new/templates/app/code/client.pytorch.py.tpl +0 -80
  51. flwr/cli/new/templates/app/code/client.pytorch_legacy_api.py.tpl +0 -55
  52. flwr/cli/new/templates/app/code/client.sklearn.py.tpl +0 -108
  53. flwr/cli/new/templates/app/code/client.tensorflow.py.tpl +0 -82
  54. flwr/cli/new/templates/app/code/client.xgboost.py.tpl +0 -110
  55. flwr/cli/new/templates/app/code/dataset.baseline.py.tpl +0 -36
  56. flwr/cli/new/templates/app/code/flwr_tune/__init__.py +0 -15
  57. flwr/cli/new/templates/app/code/flwr_tune/client_app.py.tpl +0 -92
  58. flwr/cli/new/templates/app/code/flwr_tune/dataset.py.tpl +0 -87
  59. flwr/cli/new/templates/app/code/flwr_tune/models.py.tpl +0 -56
  60. flwr/cli/new/templates/app/code/flwr_tune/server_app.py.tpl +0 -73
  61. flwr/cli/new/templates/app/code/flwr_tune/strategy.py.tpl +0 -78
  62. flwr/cli/new/templates/app/code/model.baseline.py.tpl +0 -66
  63. flwr/cli/new/templates/app/code/server.baseline.py.tpl +0 -43
  64. flwr/cli/new/templates/app/code/server.huggingface.py.tpl +0 -42
  65. flwr/cli/new/templates/app/code/server.jax.py.tpl +0 -39
  66. flwr/cli/new/templates/app/code/server.mlx.py.tpl +0 -41
  67. flwr/cli/new/templates/app/code/server.numpy.py.tpl +0 -38
  68. flwr/cli/new/templates/app/code/server.pytorch.py.tpl +0 -41
  69. flwr/cli/new/templates/app/code/server.pytorch_legacy_api.py.tpl +0 -31
  70. flwr/cli/new/templates/app/code/server.sklearn.py.tpl +0 -44
  71. flwr/cli/new/templates/app/code/server.tensorflow.py.tpl +0 -38
  72. flwr/cli/new/templates/app/code/server.xgboost.py.tpl +0 -56
  73. flwr/cli/new/templates/app/code/strategy.baseline.py.tpl +0 -1
  74. flwr/cli/new/templates/app/code/task.huggingface.py.tpl +0 -98
  75. flwr/cli/new/templates/app/code/task.jax.py.tpl +0 -57
  76. flwr/cli/new/templates/app/code/task.mlx.py.tpl +0 -102
  77. flwr/cli/new/templates/app/code/task.numpy.py.tpl +0 -7
  78. flwr/cli/new/templates/app/code/task.pytorch.py.tpl +0 -99
  79. flwr/cli/new/templates/app/code/task.pytorch_legacy_api.py.tpl +0 -111
  80. flwr/cli/new/templates/app/code/task.sklearn.py.tpl +0 -67
  81. flwr/cli/new/templates/app/code/task.tensorflow.py.tpl +0 -52
  82. flwr/cli/new/templates/app/code/task.xgboost.py.tpl +0 -67
  83. flwr/cli/new/templates/app/code/utils.baseline.py.tpl +0 -1
  84. flwr/cli/new/templates/app/pyproject.baseline.toml.tpl +0 -146
  85. flwr/cli/new/templates/app/pyproject.flowertune.toml.tpl +0 -80
  86. flwr/cli/new/templates/app/pyproject.huggingface.toml.tpl +0 -65
  87. flwr/cli/new/templates/app/pyproject.jax.toml.tpl +0 -52
  88. flwr/cli/new/templates/app/pyproject.mlx.toml.tpl +0 -56
  89. flwr/cli/new/templates/app/pyproject.numpy.toml.tpl +0 -49
  90. flwr/cli/new/templates/app/pyproject.pytorch.toml.tpl +0 -53
  91. flwr/cli/new/templates/app/pyproject.pytorch_legacy_api.toml.tpl +0 -53
  92. flwr/cli/new/templates/app/pyproject.sklearn.toml.tpl +0 -52
  93. flwr/cli/new/templates/app/pyproject.tensorflow.toml.tpl +0 -53
  94. flwr/cli/new/templates/app/pyproject.xgboost.toml.tpl +0 -61
  95. {flwr-1.24.0.dist-info → flwr-1.25.0.dist-info}/WHEEL +0 -0
  96. {flwr-1.24.0.dist-info → flwr-1.25.0.dist-info}/entry_points.txt +0 -0
@@ -1,80 +0,0 @@
1
- # =====================================================================
2
- # For a full TOML configuration guide, check the Flower docs:
3
- # https://flower.ai/docs/framework/how-to-configure-pyproject-toml.html
4
- # =====================================================================
5
-
6
- [build-system]
7
- requires = ["hatchling"]
8
- build-backend = "hatchling.build"
9
-
10
- [project]
11
- name = "$package_name"
12
- version = "1.0.0"
13
- description = ""
14
- license = "Apache-2.0"
15
- # Dependencies for your Flower App
16
- dependencies = [
17
- "flwr[simulation]>=1.24.0",
18
- "flwr-datasets>=0.5.0",
19
- "torch==2.4.0",
20
- "trl==0.8.1",
21
- "bitsandbytes==0.45.4",
22
- "scipy==1.13.0",
23
- "peft==0.6.2",
24
- "transformers==4.50.3",
25
- "sentencepiece==0.2.0",
26
- "omegaconf==2.3.0",
27
- "hf_transfer==0.1.8",
28
- ]
29
-
30
- [tool.hatch.build.targets.wheel]
31
- packages = ["."]
32
-
33
- [tool.flwr.app]
34
- publisher = "$username"
35
-
36
- # Point to your ServerApp and ClientApp objects
37
- # Format: "<module>:<object>"
38
- [tool.flwr.app.components]
39
- serverapp = "$import_name.server_app:app"
40
- clientapp = "$import_name.client_app:app"
41
-
42
- # Custom config values accessible via `context.run_config`
43
- [tool.flwr.app.config]
44
- model.name = "mistralai/Mistral-7B-v0.3"
45
- model.quantization = 4
46
- model.gradient-checkpointing = true
47
- model.lora.peft-lora-r = 32
48
- model.lora.peft-lora-alpha = 64
49
- train.save-every-round = 5
50
- train.learning-rate-max = 5e-5
51
- train.learning-rate-min = 1e-6
52
- train.seq-length = 512
53
- train.training-arguments.output-dir = ""
54
- train.training-arguments.learning-rate = ""
55
- train.training-arguments.per-device-train-batch-size = 16
56
- train.training-arguments.gradient-accumulation-steps = 1
57
- train.training-arguments.logging-steps = 10
58
- train.training-arguments.num-train-epochs = 3
59
- train.training-arguments.max-steps = 10
60
- train.training-arguments.save-steps = 1000
61
- train.training-arguments.save-total-limit = 10
62
- train.training-arguments.gradient-checkpointing = true
63
- train.training-arguments.lr-scheduler-type = "constant"
64
- strategy.fraction-train = $fraction_train
65
- strategy.fraction-evaluate = 0.0
66
- num-server-rounds = 200
67
-
68
- # Dataset config (static for FlowerTune LLM Leaderboard)
69
- [tool.flwr.app.config.static]
70
- dataset.name = "$dataset_name"
71
-
72
- # Default federation to use when running the app
73
- [tool.flwr.federations]
74
- default = "local-simulation"
75
-
76
- # Local simulation federation with $num_clients virtual SuperNodes
77
- [tool.flwr.federations.local-simulation]
78
- options.num-supernodes = $num_clients
79
- options.backend.client-resources.num-cpus = 6
80
- options.backend.client-resources.num-gpus = 1.0
@@ -1,65 +0,0 @@
1
- # =====================================================================
2
- # For a full TOML configuration guide, check the Flower docs:
3
- # https://flower.ai/docs/framework/how-to-configure-pyproject-toml.html
4
- # =====================================================================
5
-
6
- [build-system]
7
- requires = ["hatchling"]
8
- build-backend = "hatchling.build"
9
-
10
- [project]
11
- name = "$package_name"
12
- version = "1.0.0"
13
- description = ""
14
- license = "Apache-2.0"
15
- # Dependencies for your Flower App
16
- dependencies = [
17
- "flwr[simulation]>=1.24.0",
18
- "flwr-datasets>=0.5.0",
19
- "torch>=2.7.1",
20
- "transformers>=4.30.0,<5.0",
21
- "evaluate>=0.4.0,<1.0",
22
- "datasets>=2.0.0, <3.0",
23
- "scikit-learn>=1.6.1, <2.0",
24
- ]
25
-
26
- [tool.hatch.build.targets.wheel]
27
- packages = ["."]
28
-
29
- [tool.flwr.app]
30
- publisher = "$username"
31
-
32
- # Point to your ServerApp and ClientApp objects
33
- # Format: "<module>:<object>"
34
- [tool.flwr.app.components]
35
- serverapp = "$import_name.server_app:app"
36
- clientapp = "$import_name.client_app:app"
37
-
38
- # Custom config values accessible via `context.run_config`
39
- [tool.flwr.app.config]
40
- num-server-rounds = 3
41
- fraction-train = 0.5
42
- local-steps = 5
43
- model-name = "prajjwal1/bert-tiny" # Set a larger model if you have access to more GPU resources
44
- num-labels = 2
45
-
46
- # Default federation to use when running the app
47
- [tool.flwr.federations]
48
- default = "localhost"
49
-
50
- # Local simulation federation with 10 virtual SuperNodes
51
- [tool.flwr.federations.localhost]
52
- options.num-supernodes = 10
53
-
54
- # Local simulation federation with 10 virtual SuperNodes
55
- # making use of GPUs
56
- [tool.flwr.federations.localhost-gpu]
57
- options.num-supernodes = 10
58
- options.backend.client-resources.num-cpus = 4 # each ClientApp assumes to use 4CPUs
59
- options.backend.client-resources.num-gpus = 0.25 # at most 4 ClientApps will run in a given GPU
60
-
61
- # Remote federation example for use with SuperLink
62
- [tool.flwr.federations.remote-federation]
63
- address = "<SUPERLINK-ADDRESS>:<PORT>"
64
- insecure = true # Remove this line to enable TLS
65
- # root-certificates = "<PATH/TO/ca.crt>" # For TLS setup
@@ -1,52 +0,0 @@
1
- # =====================================================================
2
- # For a full TOML configuration guide, check the Flower docs:
3
- # https://flower.ai/docs/framework/how-to-configure-pyproject-toml.html
4
- # =====================================================================
5
-
6
- [build-system]
7
- requires = ["hatchling"]
8
- build-backend = "hatchling.build"
9
-
10
- [project]
11
- name = "$package_name"
12
- version = "1.0.0"
13
- description = ""
14
- license = "Apache-2.0"
15
- # Dependencies for your Flower App
16
- dependencies = [
17
- "flwr[simulation]>=1.24.0",
18
- "jax==0.4.30",
19
- "jaxlib==0.4.30",
20
- "scikit-learn==1.6.1",
21
- ]
22
-
23
- [tool.hatch.build.targets.wheel]
24
- packages = ["."]
25
-
26
- [tool.flwr.app]
27
- publisher = "$username"
28
-
29
- # Point to your ServerApp and ClientApp objects
30
- # Format: "<module>:<object>"
31
- [tool.flwr.app.components]
32
- serverapp = "$import_name.server_app:app"
33
- clientapp = "$import_name.client_app:app"
34
-
35
- # Custom config values accessible via `context.run_config`
36
- [tool.flwr.app.config]
37
- num-server-rounds = 3
38
- input-dim = 3
39
-
40
- # Default federation to use when running the app
41
- [tool.flwr.federations]
42
- default = "local-simulation"
43
-
44
- # Local simulation federation with 10 virtual SuperNodes
45
- [tool.flwr.federations.local-simulation]
46
- options.num-supernodes = 10
47
-
48
- # Remote federation example for use with SuperLink
49
- [tool.flwr.federations.remote-federation]
50
- address = "<SUPERLINK-ADDRESS>:<PORT>"
51
- insecure = true # Remove this line to enable TLS
52
- # root-certificates = "<PATH/TO/ca.crt>" # For TLS setup
@@ -1,56 +0,0 @@
1
- # =====================================================================
2
- # For a full TOML configuration guide, check the Flower docs:
3
- # https://flower.ai/docs/framework/how-to-configure-pyproject-toml.html
4
- # =====================================================================
5
-
6
- [build-system]
7
- requires = ["hatchling"]
8
- build-backend = "hatchling.build"
9
-
10
- [project]
11
- name = "$package_name"
12
- version = "1.0.0"
13
- description = ""
14
- license = "Apache-2.0"
15
- # Dependencies for your Flower App
16
- dependencies = [
17
- "flwr[simulation]>=1.24.0",
18
- "flwr-datasets[vision]>=0.5.0",
19
- "mlx==0.29.0",
20
- ]
21
-
22
- [tool.hatch.build.targets.wheel]
23
- packages = ["."]
24
-
25
- [tool.flwr.app]
26
- publisher = "$username"
27
-
28
- # Point to your ServerApp and ClientApp objects
29
- # Format: "<module>:<object>"
30
- [tool.flwr.app.components]
31
- serverapp = "$import_name.server_app:app"
32
- clientapp = "$import_name.client_app:app"
33
-
34
- # Custom config values accessible via `context.run_config`
35
- [tool.flwr.app.config]
36
- num-server-rounds = 3
37
- local-epochs = 1
38
- num-layers = 2
39
- input-dim = 784 # 28*28
40
- hidden-dim = 32
41
- batch-size = 256
42
- lr = 0.1
43
-
44
- # Default federation to use when running the app
45
- [tool.flwr.federations]
46
- default = "local-simulation"
47
-
48
- # Local simulation federation with 10 virtual SuperNodes
49
- [tool.flwr.federations.local-simulation]
50
- options.num-supernodes = 10
51
-
52
- # Remote federation example for use with SuperLink
53
- [tool.flwr.federations.remote-federation]
54
- address = "<SUPERLINK-ADDRESS>:<PORT>"
55
- insecure = true # Remove this line to enable TLS
56
- # root-certificates = "<PATH/TO/ca.crt>" # For TLS setup
@@ -1,49 +0,0 @@
1
- # =====================================================================
2
- # For a full TOML configuration guide, check the Flower docs:
3
- # https://flower.ai/docs/framework/how-to-configure-pyproject-toml.html
4
- # =====================================================================
5
-
6
- [build-system]
7
- requires = ["hatchling"]
8
- build-backend = "hatchling.build"
9
-
10
- [project]
11
- name = "$package_name"
12
- version = "1.0.0"
13
- description = ""
14
- license = "Apache-2.0"
15
- # Dependencies for your Flower App
16
- dependencies = [
17
- "flwr[simulation]>=1.24.0",
18
- "numpy>=2.0.2",
19
- ]
20
-
21
- [tool.hatch.build.targets.wheel]
22
- packages = ["."]
23
-
24
- [tool.flwr.app]
25
- publisher = "$username"
26
-
27
- # Point to your ServerApp and ClientApp objects
28
- # Format: "<module>:<object>"
29
- [tool.flwr.app.components]
30
- serverapp = "$import_name.server_app:app"
31
- clientapp = "$import_name.client_app:app"
32
-
33
- # Custom config values accessible via `context.run_config`
34
- [tool.flwr.app.config]
35
- num-server-rounds = 3
36
-
37
- # Default federation to use when running the app
38
- [tool.flwr.federations]
39
- default = "local-simulation"
40
-
41
- # Local simulation federation with 10 virtual SuperNodes
42
- [tool.flwr.federations.local-simulation]
43
- options.num-supernodes = 10
44
-
45
- # Remote federation example for use with SuperLink
46
- [tool.flwr.federations.remote-federation]
47
- address = "<SUPERLINK-ADDRESS>:<PORT>"
48
- insecure = true # Remove this line to enable TLS
49
- # root-certificates = "<PATH/TO/ca.crt>" # For TLS setup
@@ -1,53 +0,0 @@
1
- # =====================================================================
2
- # For a full TOML configuration guide, check the Flower docs:
3
- # https://flower.ai/docs/framework/how-to-configure-pyproject-toml.html
4
- # =====================================================================
5
-
6
- [build-system]
7
- requires = ["hatchling"]
8
- build-backend = "hatchling.build"
9
-
10
- [project]
11
- name = "$package_name"
12
- version = "1.0.0"
13
- description = ""
14
- license = "Apache-2.0"
15
- # Dependencies for your Flower App
16
- dependencies = [
17
- "flwr[simulation]>=1.24.0",
18
- "flwr-datasets[vision]>=0.5.0",
19
- "torch>=2.7.1",
20
- "torchvision>=0.22.1",
21
- ]
22
-
23
- [tool.hatch.build.targets.wheel]
24
- packages = ["."]
25
-
26
- [tool.flwr.app]
27
- publisher = "$username"
28
-
29
- # Point to your ServerApp and ClientApp objects
30
- [tool.flwr.app.components]
31
- serverapp = "$import_name.server_app:app"
32
- clientapp = "$import_name.client_app:app"
33
-
34
- # Custom config values accessible via `context.run_config`
35
- [tool.flwr.app.config]
36
- num-server-rounds = 3
37
- fraction-train = 0.5
38
- local-epochs = 1
39
- lr = 0.01
40
-
41
- # Default federation to use when running the app
42
- [tool.flwr.federations]
43
- default = "local-simulation"
44
-
45
- # Local simulation federation with 10 virtual SuperNodes
46
- [tool.flwr.federations.local-simulation]
47
- options.num-supernodes = 10
48
-
49
- # Remote federation example for use with SuperLink
50
- [tool.flwr.federations.remote-federation]
51
- address = "<SUPERLINK-ADDRESS>:<PORT>"
52
- insecure = true # Remove this line to enable TLS
53
- # root-certificates = "<PATH/TO/ca.crt>" # For TLS setup
@@ -1,53 +0,0 @@
1
- # =====================================================================
2
- # For a full TOML configuration guide, check the Flower docs:
3
- # https://flower.ai/docs/framework/how-to-configure-pyproject-toml.html
4
- # =====================================================================
5
-
6
- [build-system]
7
- requires = ["hatchling"]
8
- build-backend = "hatchling.build"
9
-
10
- [project]
11
- name = "$package_name"
12
- version = "1.0.0"
13
- description = ""
14
- license = "Apache-2.0"
15
- # Dependencies for your Flower App
16
- dependencies = [
17
- "flwr[simulation]>=1.24.0",
18
- "flwr-datasets[vision]>=0.5.0",
19
- "torch==2.7.1",
20
- "torchvision==0.22.1",
21
- ]
22
-
23
- [tool.hatch.build.targets.wheel]
24
- packages = ["."]
25
-
26
- [tool.flwr.app]
27
- publisher = "$username"
28
-
29
- # Point to your ServerApp and ClientApp objects
30
- # Format: "<module>:<object>"
31
- [tool.flwr.app.components]
32
- serverapp = "$import_name.server_app:app"
33
- clientapp = "$import_name.client_app:app"
34
-
35
- # Custom config values accessible via `context.run_config`
36
- [tool.flwr.app.config]
37
- num-server-rounds = 3
38
- fraction-fit = 0.5
39
- local-epochs = 1
40
-
41
- # Default federation to use when running the app
42
- [tool.flwr.federations]
43
- default = "local-simulation"
44
-
45
- # Local simulation federation with 10 virtual SuperNodes
46
- [tool.flwr.federations.local-simulation]
47
- options.num-supernodes = 10
48
-
49
- # Remote federation example for use with SuperLink
50
- [tool.flwr.federations.remote-federation]
51
- address = "<SUPERLINK-ADDRESS>:<PORT>"
52
- insecure = true # Remove this line to enable TLS
53
- # root-certificates = "<PATH/TO/ca.crt>" # For TLS setup
@@ -1,52 +0,0 @@
1
- # =====================================================================
2
- # For a full TOML configuration guide, check the Flower docs:
3
- # https://flower.ai/docs/framework/how-to-configure-pyproject-toml.html
4
- # =====================================================================
5
-
6
- [build-system]
7
- requires = ["hatchling"]
8
- build-backend = "hatchling.build"
9
-
10
- [project]
11
- name = "$package_name"
12
- version = "1.0.0"
13
- description = ""
14
- license = "Apache-2.0"
15
- # Dependencies for your Flower App
16
- dependencies = [
17
- "flwr[simulation]>=1.24.0",
18
- "flwr-datasets[vision]>=0.5.0",
19
- "scikit-learn>=1.6.1",
20
- ]
21
-
22
- [tool.hatch.build.targets.wheel]
23
- packages = ["."]
24
-
25
- [tool.flwr.app]
26
- publisher = "$username"
27
-
28
- # Point to your ServerApp and ClientApp objects
29
- # Format: "<module>:<object>"
30
- [tool.flwr.app.components]
31
- serverapp = "$import_name.server_app:app"
32
- clientapp = "$import_name.client_app:app"
33
-
34
- # Custom config values accessible via `context.run_config`
35
- [tool.flwr.app.config]
36
- num-server-rounds = 3
37
- penalty = "l2"
38
- local-epochs = 1
39
-
40
- # Default federation to use when running the app
41
- [tool.flwr.federations]
42
- default = "local-simulation"
43
-
44
- # Local simulation federation with 10 virtual SuperNodes
45
- [tool.flwr.federations.local-simulation]
46
- options.num-supernodes = 10
47
-
48
- # Remote federation example for use with SuperLink
49
- [tool.flwr.federations.remote-federation]
50
- address = "<SUPERLINK-ADDRESS>:<PORT>"
51
- insecure = true # Remove this line to enable TLS
52
- # root-certificates = "<PATH/TO/ca.crt>" # For TLS setup
@@ -1,53 +0,0 @@
1
- # =====================================================================
2
- # For a full TOML configuration guide, check the Flower docs:
3
- # https://flower.ai/docs/framework/how-to-configure-pyproject-toml.html
4
- # =====================================================================
5
-
6
- [build-system]
7
- requires = ["hatchling"]
8
- build-backend = "hatchling.build"
9
-
10
- [project]
11
- name = "$package_name"
12
- version = "1.0.0"
13
- description = ""
14
- license = "Apache-2.0"
15
- # Dependencies for your Flower App
16
- dependencies = [
17
- "flwr[simulation]>=1.24.0",
18
- "flwr-datasets[vision]>=0.5.0",
19
- "tensorflow>=2.18.0",
20
- ]
21
-
22
- [tool.hatch.build.targets.wheel]
23
- packages = ["."]
24
-
25
- [tool.flwr.app]
26
- publisher = "$username"
27
-
28
- # Point to your ServerApp and ClientApp objects
29
- # Format: "<module>:<object>"
30
- [tool.flwr.app.components]
31
- serverapp = "$import_name.server_app:app"
32
- clientapp = "$import_name.client_app:app"
33
-
34
- # Custom config values accessible via `context.run_config`
35
- [tool.flwr.app.config]
36
- num-server-rounds = 3
37
- local-epochs = 1
38
- batch-size = 32
39
- verbose = false
40
-
41
- # Default federation to use when running the app
42
- [tool.flwr.federations]
43
- default = "local-simulation"
44
-
45
- # Local simulation federation with 10 virtual SuperNodes
46
- [tool.flwr.federations.local-simulation]
47
- options.num-supernodes = 10
48
-
49
- # Remote federation example for use with SuperLink
50
- [tool.flwr.federations.remote-federation]
51
- address = "<SUPERLINK-ADDRESS>:<PORT>"
52
- insecure = true # Remove this line to enable TLS
53
- # root-certificates = "<PATH/TO/ca.crt>" # For TLS setup
@@ -1,61 +0,0 @@
1
- # =====================================================================
2
- # For a full TOML configuration guide, check the Flower docs:
3
- # https://flower.ai/docs/framework/how-to-configure-pyproject-toml.html
4
- # =====================================================================
5
-
6
- [build-system]
7
- requires = ["hatchling"]
8
- build-backend = "hatchling.build"
9
-
10
- [project]
11
- name = "$package_name"
12
- version = "1.0.0"
13
- description = ""
14
- license = "Apache-2.0"
15
- # Dependencies for your Flower App
16
- dependencies = [
17
- "flwr[simulation]>=1.24.0",
18
- "flwr-datasets>=0.5.0",
19
- "xgboost>=2.0.0",
20
- ]
21
-
22
- [tool.hatch.build.targets.wheel]
23
- packages = ["."]
24
-
25
- [tool.flwr.app]
26
- publisher = "$username"
27
-
28
- [tool.flwr.app.components]
29
- serverapp = "$import_name.server_app:app"
30
- clientapp = "$import_name.client_app:app"
31
-
32
- # Custom config values accessible via `context.run_config`
33
- [tool.flwr.app.config]
34
- num-server-rounds = 3
35
- fraction-train = 0.1
36
- fraction-evaluate = 0.1
37
- local-epochs = 1
38
-
39
- # XGBoost parameters
40
- params.objective = "binary:logistic"
41
- params.eta = 0.1 # Learning rate
42
- params.max-depth = 8
43
- params.eval-metric = "auc"
44
- params.nthread = 16
45
- params.num-parallel-tree = 1
46
- params.subsample = 1
47
- params.tree-method = "hist"
48
-
49
- # Default federation to use when running the app
50
- [tool.flwr.federations]
51
- default = "local-simulation"
52
-
53
- # Local simulation federation with 10 virtual SuperNodes
54
- [tool.flwr.federations.local-simulation]
55
- options.num-supernodes = 10
56
-
57
- # Remote federation example for use with SuperLink
58
- [tool.flwr.federations.remote-federation]
59
- address = "<SUPERLINK-ADDRESS>:<PORT>"
60
- insecure = true # Remove this line to enable TLS
61
- # root-certificates = "<PATH/TO/ca.crt>" # For TLS setup
File without changes