flwr-nightly 1.10.0.dev20240723__py3-none-any.whl → 1.11.0.dev20240725__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.
Potentially problematic release.
This version of flwr-nightly might be problematic. Click here for more details.
- flwr/cli/new/templates/app/code/task.mlx.py.tpl +0 -1
- flwr/cli/new/templates/app/pyproject.flowertune.toml.tpl +2 -2
- flwr/cli/new/templates/app/pyproject.jax.toml.tpl +2 -2
- flwr/cli/new/templates/app/pyproject.mlx.toml.tpl +2 -2
- flwr/cli/new/templates/app/pyproject.numpy.toml.tpl +2 -2
- flwr/cli/new/templates/app/pyproject.pytorch.toml.tpl +2 -2
- flwr/cli/new/templates/app/pyproject.sklearn.toml.tpl +2 -2
- flwr/cli/new/templates/app/pyproject.tensorflow.toml.tpl +2 -2
- flwr/superexec/deployment.py +0 -2
- flwr/superexec/simulation.py +11 -3
- {flwr_nightly-1.10.0.dev20240723.dist-info → flwr_nightly-1.11.0.dev20240725.dist-info}/METADATA +1 -1
- {flwr_nightly-1.10.0.dev20240723.dist-info → flwr_nightly-1.11.0.dev20240725.dist-info}/RECORD +15 -15
- {flwr_nightly-1.10.0.dev20240723.dist-info → flwr_nightly-1.11.0.dev20240725.dist-info}/LICENSE +0 -0
- {flwr_nightly-1.10.0.dev20240723.dist-info → flwr_nightly-1.11.0.dev20240725.dist-info}/WHEEL +0 -0
- {flwr_nightly-1.10.0.dev20240723.dist-info → flwr_nightly-1.11.0.dev20240725.dist-info}/entry_points.txt +0 -0
|
@@ -56,7 +56,6 @@ def load_data(partition_id: int, num_partitions: int):
|
|
|
56
56
|
fds = FederatedDataset(
|
|
57
57
|
dataset="ylecun/mnist",
|
|
58
58
|
partitioners={"train": partitioner},
|
|
59
|
-
trust_remote_code=True,
|
|
60
59
|
)
|
|
61
60
|
partition = fds.load_partition(partition_id)
|
|
62
61
|
partition_splits = partition.train_test_split(test_size=0.2, seed=42)
|
|
@@ -33,7 +33,7 @@ clientapp = "$import_name.app:client"
|
|
|
33
33
|
num-server-rounds = 3
|
|
34
34
|
|
|
35
35
|
[tool.flwr.federations]
|
|
36
|
-
default = "
|
|
36
|
+
default = "local-simulation"
|
|
37
37
|
|
|
38
|
-
[tool.flwr.federations.
|
|
38
|
+
[tool.flwr.federations.local-simulation]
|
|
39
39
|
options.num-supernodes = 10
|
|
@@ -28,7 +28,7 @@ clientapp = "$import_name.client_app:app"
|
|
|
28
28
|
num-server-rounds = 3
|
|
29
29
|
|
|
30
30
|
[tool.flwr.federations]
|
|
31
|
-
default = "
|
|
31
|
+
default = "local-simulation"
|
|
32
32
|
|
|
33
|
-
[tool.flwr.federations.
|
|
33
|
+
[tool.flwr.federations.local-simulation]
|
|
34
34
|
options.num-supernodes = 10
|
|
@@ -26,7 +26,7 @@ clientapp = "$import_name.client_app:app"
|
|
|
26
26
|
num-server-rounds = 3
|
|
27
27
|
|
|
28
28
|
[tool.flwr.federations]
|
|
29
|
-
default = "
|
|
29
|
+
default = "local-simulation"
|
|
30
30
|
|
|
31
|
-
[tool.flwr.federations.
|
|
31
|
+
[tool.flwr.federations.local-simulation]
|
|
32
32
|
options.num-supernodes = 10
|
|
@@ -27,7 +27,7 @@ clientapp = "$import_name.client_app:app"
|
|
|
27
27
|
num-server-rounds = 3
|
|
28
28
|
|
|
29
29
|
[tool.flwr.federations]
|
|
30
|
-
default = "
|
|
30
|
+
default = "local-simulation"
|
|
31
31
|
|
|
32
|
-
[tool.flwr.federations.
|
|
32
|
+
[tool.flwr.federations.local-simulation]
|
|
33
33
|
options.num-supernodes = 10
|
flwr/superexec/deployment.py
CHANGED
|
@@ -168,8 +168,6 @@ class DeploymentEngine(Executor):
|
|
|
168
168
|
# Execute the command
|
|
169
169
|
proc = subprocess.Popen( # pylint: disable=consider-using-with
|
|
170
170
|
command,
|
|
171
|
-
stdout=subprocess.PIPE,
|
|
172
|
-
stderr=subprocess.PIPE,
|
|
173
171
|
text=True,
|
|
174
172
|
)
|
|
175
173
|
log(INFO, "Started run %s", str(run_id))
|
flwr/superexec/simulation.py
CHANGED
|
@@ -81,13 +81,11 @@ class SimulationEngine(Executor):
|
|
|
81
81
|
- "num-supernodes": int
|
|
82
82
|
Number of nodes to register for the simulation.
|
|
83
83
|
"""
|
|
84
|
-
if not config:
|
|
85
|
-
return
|
|
86
84
|
if num_supernodes := config.get("num-supernodes"):
|
|
87
85
|
if not isinstance(num_supernodes, int):
|
|
88
86
|
raise ValueError("The `num-supernodes` value should be of type `int`.")
|
|
89
87
|
self.num_supernodes = num_supernodes
|
|
90
|
-
|
|
88
|
+
elif self.num_supernodes is None:
|
|
91
89
|
log(
|
|
92
90
|
ERROR,
|
|
93
91
|
"To start a run with the simulation plugin, please specify "
|
|
@@ -107,6 +105,16 @@ class SimulationEngine(Executor):
|
|
|
107
105
|
federation_config: UserConfig,
|
|
108
106
|
) -> Optional[RunTracker]:
|
|
109
107
|
"""Start run using the Flower Simulation Engine."""
|
|
108
|
+
if self.num_supernodes is None:
|
|
109
|
+
raise ValueError(
|
|
110
|
+
"Error in `SuperExec` (`SimulationEngine` executor):\n\n"
|
|
111
|
+
"`num-supernodes` must not be `None`, it must be a valid "
|
|
112
|
+
"positive integer. In order to start this simulation executor "
|
|
113
|
+
"with a specified number of `SuperNodes`, you can either provide "
|
|
114
|
+
"a `--executor` that has been initialized with a number of nodes "
|
|
115
|
+
"to the `flower-superexec` CLI, or `--executor-config num-supernodes=N`"
|
|
116
|
+
"to the `flower-superexec` CLI."
|
|
117
|
+
)
|
|
110
118
|
try:
|
|
111
119
|
|
|
112
120
|
# Install FAB to flwr dir
|
{flwr_nightly-1.10.0.dev20240723.dist-info → flwr_nightly-1.11.0.dev20240725.dist-info}/RECORD
RENAMED
|
@@ -38,17 +38,17 @@ flwr/cli/new/templates/app/code/server.sklearn.py.tpl,sha256=blkpvISjmPNOaJCyZf5
|
|
|
38
38
|
flwr/cli/new/templates/app/code/server.tensorflow.py.tpl,sha256=LGQaVsfo5rVzgiFTew0z3O6AVwIoDG5rdobnwMpb1yE,852
|
|
39
39
|
flwr/cli/new/templates/app/code/task.huggingface.py.tpl,sha256=jiCZobChVJkm9OomI9_Q0bCsdGfXMgVh5bY_OulsLMk,3163
|
|
40
40
|
flwr/cli/new/templates/app/code/task.jax.py.tpl,sha256=u4o3V019EH79szOw2xzVeC5r9xgQiayPi9ZTIopV2TA,1519
|
|
41
|
-
flwr/cli/new/templates/app/code/task.mlx.py.tpl,sha256=
|
|
41
|
+
flwr/cli/new/templates/app/code/task.mlx.py.tpl,sha256=q4yf8B0hdvHKZUvuhlxpQpyY-wfV5pbqEQ4VHFtuqkU,2899
|
|
42
42
|
flwr/cli/new/templates/app/code/task.pytorch.py.tpl,sha256=LEBb0-IOAlnRnn-aTAYv80Fgs67wHCSP6PlhNBdsH2k,3939
|
|
43
43
|
flwr/cli/new/templates/app/code/task.tensorflow.py.tpl,sha256=8sZ8Y5kkaptzwfhAeuoBdth7VFQmD9jjjUrRvcyRrEk,1330
|
|
44
|
-
flwr/cli/new/templates/app/pyproject.flowertune.toml.tpl,sha256=
|
|
44
|
+
flwr/cli/new/templates/app/pyproject.flowertune.toml.tpl,sha256=chTKewidM-st9Uk5o95tGOqJ5FSa1L2R0UdSW2wTr0c,789
|
|
45
45
|
flwr/cli/new/templates/app/pyproject.huggingface.toml.tpl,sha256=X82t0bKRzsTG1w5kjkZhCLneyFJouX41-6Uvsj1sb8Q,776
|
|
46
|
-
flwr/cli/new/templates/app/pyproject.jax.toml.tpl,sha256=
|
|
47
|
-
flwr/cli/new/templates/app/pyproject.mlx.toml.tpl,sha256=
|
|
48
|
-
flwr/cli/new/templates/app/pyproject.numpy.toml.tpl,sha256=
|
|
49
|
-
flwr/cli/new/templates/app/pyproject.pytorch.toml.tpl,sha256=
|
|
50
|
-
flwr/cli/new/templates/app/pyproject.sklearn.toml.tpl,sha256=
|
|
51
|
-
flwr/cli/new/templates/app/pyproject.tensorflow.toml.tpl,sha256=
|
|
46
|
+
flwr/cli/new/templates/app/pyproject.jax.toml.tpl,sha256=9_Gz-6feYYXV5aMlV4WllTyjIJWXxWb7cVVchUauwgc,663
|
|
47
|
+
flwr/cli/new/templates/app/pyproject.mlx.toml.tpl,sha256=0q2vl4zFRiW3ElZiSzpEL2ZvHkzfKhZw-3zMTUHNDxk,752
|
|
48
|
+
flwr/cli/new/templates/app/pyproject.numpy.toml.tpl,sha256=6KPl7wLZ6d4aV-GmL6JXolwPtbs5IZ4NOyZ3fU54ahg,616
|
|
49
|
+
flwr/cli/new/templates/app/pyproject.pytorch.toml.tpl,sha256=PlRf_AwQdFzA-PL5kvE3bXbLU3feSZLopOYVHHtUV6I,702
|
|
50
|
+
flwr/cli/new/templates/app/pyproject.sklearn.toml.tpl,sha256=6rPeA9XgQByr6ECnlkNYpjYgQKA3BKTJFFvDBjjL6l8,665
|
|
51
|
+
flwr/cli/new/templates/app/pyproject.tensorflow.toml.tpl,sha256=zMb6GxI91ta9jQDg6zSww7I7bvO0oq9RutIKEwN2OVM,713
|
|
52
52
|
flwr/cli/run/__init__.py,sha256=oCd6HmQDx-sqver1gecgx-uMA38BLTSiiKpl7RGNceg,789
|
|
53
53
|
flwr/cli/run/run.py,sha256=s6I2EU6dmjJHPJ_LNdjIBe9UZlCwvf5RA5O61nAgO3g,7483
|
|
54
54
|
flwr/cli/utils.py,sha256=l65Ul0YsSBPuypk0uorAtEDmLEYiUrzpCXi6zCg9mJ4,4506
|
|
@@ -265,13 +265,13 @@ flwr/simulation/ray_transport/utils.py,sha256=TYdtfg1P9VfTdLMOJlifInGpxWHYs9UfUq
|
|
|
265
265
|
flwr/simulation/run_simulation.py,sha256=BPW_zn5xuGlOHKZDvl8J-IuwH7E8ZZAIR2zcXNjsLMo,23391
|
|
266
266
|
flwr/superexec/__init__.py,sha256=9h94ogLxi6eJ3bUuJYq3E3pApThSabTPiSmPAGlTkHE,800
|
|
267
267
|
flwr/superexec/app.py,sha256=bmYl8zABnWka9WhRQxX4p1YAI76cYG655dP09ro-V0o,6485
|
|
268
|
-
flwr/superexec/deployment.py,sha256=
|
|
268
|
+
flwr/superexec/deployment.py,sha256=B--96bAvyotQX-c4-umXIe50uCw4HVjD79rXCQtSUH4,6357
|
|
269
269
|
flwr/superexec/exec_grpc.py,sha256=PhqGoZEpTMxSQmUSV8Wgtzb1Za_pHJ-adZqo5RYnDyE,1942
|
|
270
270
|
flwr/superexec/exec_servicer.py,sha256=fxQAKfgmQRSnYq5anjryfGeRbsZrNFEkuiNcTZhRwiE,2320
|
|
271
271
|
flwr/superexec/executor.py,sha256=k_adivto6R2U82DADOHNvdtobehBYreRek1gOEBIQnQ,2318
|
|
272
|
-
flwr/superexec/simulation.py,sha256=
|
|
273
|
-
flwr_nightly-1.
|
|
274
|
-
flwr_nightly-1.
|
|
275
|
-
flwr_nightly-1.
|
|
276
|
-
flwr_nightly-1.
|
|
277
|
-
flwr_nightly-1.
|
|
272
|
+
flwr/superexec/simulation.py,sha256=RR1WgqgMmv6HZ2eLvWKCUs9iOQZRj1KbEoAmnG7iyLA,6304
|
|
273
|
+
flwr_nightly-1.11.0.dev20240725.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
274
|
+
flwr_nightly-1.11.0.dev20240725.dist-info/METADATA,sha256=-yBOM_UrH2Clxqf3poWCycs9i_nteDWLxM0jUS_eY9g,15672
|
|
275
|
+
flwr_nightly-1.11.0.dev20240725.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
276
|
+
flwr_nightly-1.11.0.dev20240725.dist-info/entry_points.txt,sha256=7qBQcA-bDGDxnJmLd9FYqglFQubjCNqyg9M8a-lukps,336
|
|
277
|
+
flwr_nightly-1.11.0.dev20240725.dist-info/RECORD,,
|
{flwr_nightly-1.10.0.dev20240723.dist-info → flwr_nightly-1.11.0.dev20240725.dist-info}/LICENSE
RENAMED
|
File without changes
|
{flwr_nightly-1.10.0.dev20240723.dist-info → flwr_nightly-1.11.0.dev20240725.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|