Skip to content

Commit

Permalink
Edit
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadnaseri committed Sep 26, 2024
1 parent 3a139e2 commit d0c04d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions examples/opacus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ opacus
└── README.md
```

> \[!NOTE\]
> Please note that, at the current state, users cannot set `NodeConfig` for simulated `ClientApp`s. For this reason, the hyperparameter `noise_multiplier` is set in the `client_fn` method based on a condition check on `partition_id`. This will be modified in a future version of Flower to allow users to set `NodeConfig` for simulated `ClientApp`s.
### Install dependencies and project

Install the dependencies defined in `pyproject.toml` as well as the `opacus` package.
Expand All @@ -60,5 +57,8 @@ flwr run .
You can also override some of the settings for your `ClientApp` and `ServerApp` defined in `pyproject.toml`. For example:

```bash
flwr run . --run-config "num-server-rounds=5"
flwr run . --run-config "max-grad-norm=1.0 num-server-rounds=5"
```

> \[!NOTE\]
> Please note that, at the current state, users cannot set `NodeConfig` for simulated `ClientApp`s. For this reason, the hyperparameter `noise_multiplier` is set in the `client_fn` method based on a condition check on `partition_id`. This will be modified in a future version of Flower to allow users to set `NodeConfig` for simulated `ClientApp`s.
1 change: 0 additions & 1 deletion examples/opacus/opacus-fl/client_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from .task import train, test, Net, load_data, get_weights, set_weights
from flwr.common import Context


warnings.filterwarnings("ignore", category=UserWarning)


Expand Down
2 changes: 0 additions & 2 deletions examples/opacus/opacus-fl/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@


class Net(nn.Module):
"""Model (simple CNN adapted from 'PyTorch: A 60 Minute Blitz')"""

def __init__(self):
super(Net, self).__init__()
self.conv1 = nn.Conv2d(3, 6, 5)
Expand Down

0 comments on commit d0c04d6

Please sign in to comment.