flwr-nightly 1.9.0.dev20240524__py3-none-any.whl → 1.9.0.dev20240527__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/server/app.py +0 -78
- {flwr_nightly-1.9.0.dev20240524.dist-info → flwr_nightly-1.9.0.dev20240527.dist-info}/METADATA +1 -1
- {flwr_nightly-1.9.0.dev20240524.dist-info → flwr_nightly-1.9.0.dev20240527.dist-info}/RECORD +6 -6
- {flwr_nightly-1.9.0.dev20240524.dist-info → flwr_nightly-1.9.0.dev20240527.dist-info}/LICENSE +0 -0
- {flwr_nightly-1.9.0.dev20240524.dist-info → flwr_nightly-1.9.0.dev20240527.dist-info}/WHEEL +0 -0
- {flwr_nightly-1.9.0.dev20240524.dist-info → flwr_nightly-1.9.0.dev20240527.dist-info}/entry_points.txt +0 -0
flwr/server/app.py
CHANGED
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"""Flower server app."""
|
|
16
16
|
|
|
17
17
|
import argparse
|
|
18
|
-
import asyncio
|
|
19
18
|
import csv
|
|
20
19
|
import importlib.util
|
|
21
20
|
import sys
|
|
@@ -39,7 +38,6 @@ from flwr.common.constant import (
|
|
|
39
38
|
MISSING_EXTRA_REST,
|
|
40
39
|
TRANSPORT_TYPE_GRPC_RERE,
|
|
41
40
|
TRANSPORT_TYPE_REST,
|
|
42
|
-
TRANSPORT_TYPE_VCE,
|
|
43
41
|
)
|
|
44
42
|
from flwr.common.exit_handlers import register_exit_handlers
|
|
45
43
|
from flwr.common.logger import log, warn_deprecated_feature
|
|
@@ -63,7 +61,6 @@ from .superlink.fleet.grpc_bidi.grpc_server import (
|
|
|
63
61
|
)
|
|
64
62
|
from .superlink.fleet.grpc_rere.fleet_servicer import FleetServicer
|
|
65
63
|
from .superlink.fleet.grpc_rere.server_interceptor import AuthenticateServerInterceptor
|
|
66
|
-
from .superlink.fleet.vce import start_vce
|
|
67
64
|
from .superlink.state import StateFactory
|
|
68
65
|
|
|
69
66
|
ADDRESS_DRIVER_API = "0.0.0.0:9091"
|
|
@@ -401,17 +398,6 @@ def run_superlink() -> None:
|
|
|
401
398
|
interceptors=interceptors,
|
|
402
399
|
)
|
|
403
400
|
grpc_servers.append(fleet_server)
|
|
404
|
-
elif args.fleet_api_type == TRANSPORT_TYPE_VCE:
|
|
405
|
-
f_stop = asyncio.Event() # Does nothing
|
|
406
|
-
_run_fleet_api_vce(
|
|
407
|
-
num_supernodes=args.num_supernodes,
|
|
408
|
-
client_app_attr=args.client_app,
|
|
409
|
-
backend_name=args.backend,
|
|
410
|
-
backend_config_json_stream=args.backend_config,
|
|
411
|
-
app_dir=args.app_dir,
|
|
412
|
-
state_factory=state_factory,
|
|
413
|
-
f_stop=f_stop,
|
|
414
|
-
)
|
|
415
401
|
else:
|
|
416
402
|
raise ValueError(f"Unknown fleet_api_type: {args.fleet_api_type}")
|
|
417
403
|
|
|
@@ -569,29 +555,6 @@ def _run_fleet_api_grpc_rere(
|
|
|
569
555
|
return fleet_grpc_server
|
|
570
556
|
|
|
571
557
|
|
|
572
|
-
# pylint: disable=too-many-arguments
|
|
573
|
-
def _run_fleet_api_vce(
|
|
574
|
-
num_supernodes: int,
|
|
575
|
-
client_app_attr: str,
|
|
576
|
-
backend_name: str,
|
|
577
|
-
backend_config_json_stream: str,
|
|
578
|
-
app_dir: str,
|
|
579
|
-
state_factory: StateFactory,
|
|
580
|
-
f_stop: asyncio.Event,
|
|
581
|
-
) -> None:
|
|
582
|
-
log(INFO, "Flower VCE: Starting Fleet API (VirtualClientEngine)")
|
|
583
|
-
|
|
584
|
-
start_vce(
|
|
585
|
-
num_supernodes=num_supernodes,
|
|
586
|
-
client_app_attr=client_app_attr,
|
|
587
|
-
backend_name=backend_name,
|
|
588
|
-
backend_config_json_stream=backend_config_json_stream,
|
|
589
|
-
state_factory=state_factory,
|
|
590
|
-
app_dir=app_dir,
|
|
591
|
-
f_stop=f_stop,
|
|
592
|
-
)
|
|
593
|
-
|
|
594
|
-
|
|
595
558
|
# pylint: disable=import-outside-toplevel,too-many-arguments
|
|
596
559
|
def _run_fleet_api_rest(
|
|
597
560
|
host: str,
|
|
@@ -783,14 +746,6 @@ def _add_args_fleet_api(parser: argparse.ArgumentParser) -> None:
|
|
|
783
746
|
help="Start a Fleet API server (REST, experimental)",
|
|
784
747
|
)
|
|
785
748
|
|
|
786
|
-
ex_group.add_argument(
|
|
787
|
-
"--vce",
|
|
788
|
-
action="store_const",
|
|
789
|
-
dest="fleet_api_type",
|
|
790
|
-
const=TRANSPORT_TYPE_VCE,
|
|
791
|
-
help="Start a Fleet API server (VirtualClientEngine)",
|
|
792
|
-
)
|
|
793
|
-
|
|
794
749
|
# Fleet API gRPC-rere options
|
|
795
750
|
grpc_rere_group = parser.add_argument_group(
|
|
796
751
|
"Fleet API (gRPC-rere) server options", ""
|
|
@@ -826,36 +781,3 @@ def _add_args_fleet_api(parser: argparse.ArgumentParser) -> None:
|
|
|
826
781
|
type=int,
|
|
827
782
|
default=1,
|
|
828
783
|
)
|
|
829
|
-
|
|
830
|
-
# Fleet API VCE options
|
|
831
|
-
vce_group = parser.add_argument_group("Fleet API (VCE) server options", "")
|
|
832
|
-
vce_group.add_argument(
|
|
833
|
-
"--client-app",
|
|
834
|
-
help="For example: `client:app` or `project.package.module:wrapper.app`.",
|
|
835
|
-
)
|
|
836
|
-
vce_group.add_argument(
|
|
837
|
-
"--num-supernodes",
|
|
838
|
-
type=int,
|
|
839
|
-
help="Number of simulated SuperNodes.",
|
|
840
|
-
)
|
|
841
|
-
vce_group.add_argument(
|
|
842
|
-
"--backend",
|
|
843
|
-
default="ray",
|
|
844
|
-
type=str,
|
|
845
|
-
help="Simulation backend that executes the ClientApp.",
|
|
846
|
-
)
|
|
847
|
-
vce_group.add_argument(
|
|
848
|
-
"--backend-config",
|
|
849
|
-
type=str,
|
|
850
|
-
default='{"client_resources": {"num_cpus":1, "num_gpus":0.0}, "tensorflow": 0}',
|
|
851
|
-
help='A JSON formatted stream, e.g \'{"<keyA>":<value>, "<keyB>":<value>}\' to '
|
|
852
|
-
"configure a backend. Values supported in <value> are those included by "
|
|
853
|
-
"`flwr.common.typing.ConfigsRecordValues`. ",
|
|
854
|
-
)
|
|
855
|
-
parser.add_argument(
|
|
856
|
-
"--app-dir",
|
|
857
|
-
default="",
|
|
858
|
-
help="Add specified directory to the PYTHONPATH and load"
|
|
859
|
-
"ClientApp from there."
|
|
860
|
-
" Default: current working directory.",
|
|
861
|
-
)
|
{flwr_nightly-1.9.0.dev20240524.dist-info → flwr_nightly-1.9.0.dev20240527.dist-info}/RECORD
RENAMED
|
@@ -138,7 +138,7 @@ flwr/proto/transport_pb2_grpc.py,sha256=vLN3EHtx2aEEMCO4f1Upu-l27BPzd3-5pV-u8wPc
|
|
|
138
138
|
flwr/proto/transport_pb2_grpc.pyi,sha256=AGXf8RiIiW2J5IKMlm_3qT3AzcDa4F3P5IqUjve_esA,766
|
|
139
139
|
flwr/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
140
140
|
flwr/server/__init__.py,sha256=PWyHKu-_KFxGI7oFWSWwqMfTiG_phWECT80iv0saouA,1716
|
|
141
|
-
flwr/server/app.py,sha256=
|
|
141
|
+
flwr/server/app.py,sha256=G9N0Q4iZj8zbXpQCikGurMY0YdP3CBd2cKnM8wz147c,27481
|
|
142
142
|
flwr/server/client_manager.py,sha256=T8UDSRJBVD3fyIDI7NTAA-NA7GPrMNNgH2OAF54RRxE,6127
|
|
143
143
|
flwr/server/client_proxy.py,sha256=4G-oTwhb45sfWLx2uZdcXD98IZwdTS6F88xe3akCdUg,2399
|
|
144
144
|
flwr/server/compat/__init__.py,sha256=VxnJtJyOjNFQXMNi9hIuzNlZM5n0Hj1p3aq_Pm2udw4,892
|
|
@@ -225,8 +225,8 @@ flwr/simulation/ray_transport/ray_actor.py,sha256=_wv2eP7qxkCZ-6rMyYWnjLrGPBZRxj
|
|
|
225
225
|
flwr/simulation/ray_transport/ray_client_proxy.py,sha256=oDu4sEPIOu39vrNi-fqDAe10xtNUXMO49bM2RWfRcyw,6738
|
|
226
226
|
flwr/simulation/ray_transport/utils.py,sha256=TYdtfg1P9VfTdLMOJlifInGpxWHYs9UfUqIv2wfkRLA,2392
|
|
227
227
|
flwr/simulation/run_simulation.py,sha256=Jmc6DyN5UCY1U1PcDvL04NgYmEQ6ufJ1JisjG5yqfY8,15098
|
|
228
|
-
flwr_nightly-1.9.0.
|
|
229
|
-
flwr_nightly-1.9.0.
|
|
230
|
-
flwr_nightly-1.9.0.
|
|
231
|
-
flwr_nightly-1.9.0.
|
|
232
|
-
flwr_nightly-1.9.0.
|
|
228
|
+
flwr_nightly-1.9.0.dev20240527.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
229
|
+
flwr_nightly-1.9.0.dev20240527.dist-info/METADATA,sha256=z_pzWRbzcdhS_fBeCHCrmeHkRJDTa9ogj5MEgdTmmrU,15398
|
|
230
|
+
flwr_nightly-1.9.0.dev20240527.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
231
|
+
flwr_nightly-1.9.0.dev20240527.dist-info/entry_points.txt,sha256=8JJPfpqMnXz9c5V_FSt07Xwd-wCWbAO3MFUDXQ5ZGsI,378
|
|
232
|
+
flwr_nightly-1.9.0.dev20240527.dist-info/RECORD,,
|
{flwr_nightly-1.9.0.dev20240524.dist-info → flwr_nightly-1.9.0.dev20240527.dist-info}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|