Skip to content

Commit

Permalink
Update hello-numpy-sag from app to job structure and update docs (NVI…
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanTingHsieh authored Apr 22, 2022
1 parent 48daa2a commit cdaef9d
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 29 deletions.
26 changes: 3 additions & 23 deletions docs/examples/hello_numpy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,31 +130,11 @@ each command.

.. code-block:: shell
> upload_app hello-numpy-sag
> upload_job hello-numpy-sag
Uploads the application from the admin client to the server's staging area.
Uploads the job configuration from the admin client to the server.
A job id will be returned, and we can use that id to access job information.

.. code-block:: shell
> set_run_number 1
Creates a run directory in the workspace for the run_number on the server and all clients. The run directory allows for
the isolation of different runs so the information in one particular run does not interfere with other runs.

.. code-block:: shell
> deploy_app hello-numpy-sag all
This will make the hello-numpy-sag application the active one in the run_number workspace. After the above two commands, the
server and all the clients know the hello-numpy-sag application will reside in the ``run_1`` workspace.


.. code-block:: shell
> start_app all
This ``start_app`` command instructs the NVIDIA FLARE server and clients to start training with the hello-numpy-sag
application in the ``run_1`` workspace.

From time to time, you can issue ``check_status server`` in the admin client to check the entire training progress.

Expand Down
5 changes: 1 addition & 4 deletions examples/hello-numpy-sag/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ Log into the Admin client by entering `admin` for both the username and password
Then, use these Admin commands to run the experiment:

```
set_run_number 1
upload_app hello-numpy-sag
deploy_app hello-numpy-sag all
start_app all
upload_job hello-numpy-sag
```

### 4. Shut down the server/clients
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions examples/hello-numpy-sag/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"study_name": "demo-study",
"name": "hello-numpy-sag",
"resource_spec": {"site-1": {}, "site-2": {}},
"deploy_map": {
"hello-numpy-sag": ["server", "site-1", "site-2"]
}
}
4 changes: 2 additions & 2 deletions nvflare/lighter/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ participants:
admin_port: 8003
# enable_byoc loads python codes in app. Default is false.
enable_byoc: true
- name: site1
- name: site-1
type: client
org: nvidia
enable_byoc: true
- name: site2
- name: site-2
type: client
org: nvidia
enable_byoc: false
Expand Down

0 comments on commit cdaef9d

Please sign in to comment.