Skip to content

Commit

Permalink
refactor(framework:skip) Rename default federation in templates (#3896)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbvll authored Jul 24, 2024
1 parent 047bd53 commit c704ae3
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/py/flwr/cli/new/templates/app/code/task.mlx.py.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def load_data(partition_id: int, num_partitions: int):
fds = FederatedDataset(
dataset="ylecun/mnist",
partitioners={"train": partitioner},
trust_remote_code=True,
)
partition = fds.load_partition(partition_id)
partition_splits = partition.train_test_split(test_size=0.2, seed=42)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ clientapp = "$import_name.app:client"
num-server-rounds = 3
[tool.flwr.federations]
default = "localhost"
default = "local-simulation"
[tool.flwr.federations.localhost]
[tool.flwr.federations.local-simulation]
options.num-supernodes = 10
4 changes: 2 additions & 2 deletions src/py/flwr/cli/new/templates/app/pyproject.jax.toml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ clientapp = "$import_name.client_app:app"
num-server-rounds = 3
[tool.flwr.federations]
default = "localhost"
default = "local-simulation"
[tool.flwr.federations.localhost]
[tool.flwr.federations.local-simulation]
options.num-supernodes = 10
4 changes: 2 additions & 2 deletions src/py/flwr/cli/new/templates/app/pyproject.mlx.toml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ batch-size = 256
lr = 0.1
[tool.flwr.federations]
default = "localhost"
default = "local-simulation"
[tool.flwr.federations.localhost]
[tool.flwr.federations.local-simulation]
options.num-supernodes = 10
4 changes: 2 additions & 2 deletions src/py/flwr/cli/new/templates/app/pyproject.numpy.toml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ clientapp = "$import_name.client_app:app"
num-server-rounds = 3

[tool.flwr.federations]
default = "localhost"
default = "local-simulation"

[tool.flwr.federations.localhost]
[tool.flwr.federations.local-simulation]
options.num-supernodes = 10
4 changes: 2 additions & 2 deletions src/py/flwr/cli/new/templates/app/pyproject.pytorch.toml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ num-server-rounds = 3
local-epochs = 1
[tool.flwr.federations]
default = "localhost"
default = "local-simulation"
[tool.flwr.federations.localhost]
[tool.flwr.federations.local-simulation]
options.num-supernodes = 10
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 @@ -27,7 +27,7 @@ clientapp = "$import_name.client_app:app"
num-server-rounds = 3

[tool.flwr.federations]
default = "localhost"
default = "local-simulation"

[tool.flwr.federations.localhost]
[tool.flwr.federations.local-simulation]
options.num-supernodes = 10
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ batch-size = 32
verbose = false

[tool.flwr.federations]
default = "localhost"
default = "local-simulation"

[tool.flwr.federations.localhost]
[tool.flwr.federations.local-simulation]
options.num-supernodes = 10

0 comments on commit c704ae3

Please sign in to comment.