Skip to content

Commit

Permalink
Rename task_execution to execution_api_type
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanTingHsieh committed Jan 23, 2024
1 parent c340e6d commit ef4a5c9
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/programming_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Please refer to :ref:`application` for more details.
:maxdepth: 1

programming_guide/workflows_and_controllers
programming_guide/task_execution
programming_guide/execution_api_type
programming_guide/shareable
programming_guide/data_exchange_object
programming_guide/fl_context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.. _task_execution:
.. _execution_api_type:

##############
Task Execution
##############
##################
Execution API Type
##################

In the FLARE system, a federated learning algorithm is defined in a Job format
(for details, please refer to :ref:`job`).
Expand Down Expand Up @@ -83,7 +83,7 @@ For more details about each type, refer to each page below.
.. toctree::
:maxdepth: 1

task_execution/3rd_party_integration
task_execution/client_api
task_execution/model_learner
task_execution/executor
execution_api_type/3rd_party_integration
execution_api_type/client_api
execution_api_type/model_learner
execution_api_type/executor
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,18 @@ Requirements
"agent_id" for each job, and start its trainer process with this information.
- Each FL client must be able to open an address (host:port) to allow the trainer to connect to.
Depending on where the trainer is running, the connection may or may not need to be in secure mode (TLS).
- We will need to modify the "project.yml" for NVFlare provision system
and generate new package folders for each participating sites
- The trainer must be a Python program that can integrate with the NVFLARE library.
- The trainer must be able to connect to the server, as well as the address that
is dynamically opened by the FL client.

Prepare the Trainer
===================

Let's prepare the trainer code first, we will modify the "project.yml" in the
next section for project setup.

You need to modify your trainer code to integrate with the :class:`FlareAgent<nvflare.client.flare_agent>` API.
This API provides simple ``get_task()`` and ``submit_result()`` methods to interact with the FL client.

Expand Down Expand Up @@ -218,7 +223,8 @@ Notes:
Project Setup
=============

The following steps show you how to properly set up your project and jobs.
After we prepare the trainer code we can follow the steps below to properly
set up the project and jobs.

Step One - Provision
--------------------
Expand Down

0 comments on commit ef4a5c9

Please sign in to comment.