Concepts

This page defines the vocabulary used throughout NVIDIA FLARE: sites and roles, jobs and apps, workflows, startup kits, workspaces, studies, and run modes. Reading it first makes the API and CLI pages much easier to follow.

Sites and Participants

A federation (also called a project) is the set of participants defined at provisioning time.

Participant Description
Server Coordinates the federation. Runs the job scheduler, dispatches jobs, and runs the server side of each job (the controller). There is one server per project.
Client (site) A data-owning organization's node, for example site-1 or hospital-a. Runs the client side of each job (executors) against local data.
Relay An optional intermediate node used to build hierarchical communication topologies.
Admin user A person (or automation) identified by an email-like name, for example [email protected], who submits and manages jobs through the CLI or the FLARE API.

Admin Roles

Every admin user has a role, written into their certificate at provisioning time. The roles are project_admin, org_admin, lead, and member. The default authorization policy generated by provisioning grants:

Right project_admin org_admin lead member
submit_job any none any —
clone_job any none own jobs (n:submitter) —
manage_job (abort, delete) any jobs submitted by own org (o:submitter) own jobs —
download_job any own org's jobs own jobs —
view any any any any
operate (shutdown, restart sites) any own org's sites (o:site) own org's sites —
shell_commands any own org's sites own org's sites —
byoc (bring your own code) any none any —

Sites can override this policy locally; see Security.

Jobs and Apps

A job is the unit of work you submit. It is a folder containing:

my_job/
├── meta.json              # name, deploy_map, min_clients, resource_spec, ...
├── app_server/
│   ├── config/config_fed_server.json
│   └── custom/            # optional code shipped with the job
└── app_site-1/            # or one shared client app deployed to @ALL
    ├── config/config_fed_client.json
    └── custom/

An app is the configuration (and optional custom code) for one site. The deploy_map in meta.json says which app goes to which sites. The special site name @ALL means every site. You rarely write these files by hand: a recipe generates them, and python job.py --export writes them to disk. The structure of meta.json is described in Job Configuration.

Workflows: Controllers, Executors, Filters

Inside a job, the server runs one or more controllers (workflows) that create tasks such as train, validate, or submit_model and send them to clients. Each client maps task names to executors, which do the work and return a result. Data travels as a Shareable (often carrying a DXO or an FLModel). Filters sit on both sides and can modify outgoing tasks and incoming results, for example to add differential-privacy noise or exclude variables. All of these are components that react to system events. The Client API and Recipes hide most of this machinery; the Architecture page shows how the pieces fit.

FLModel

FLModel is the data structure the Client API and model-based controllers exchange. Its fields are params (weights), params_type (FULL or DIFF), optimizer_params, metrics, current_round, start_round, total_rounds, and a free-form meta dictionary. See Client API.

Startup Kits

Provisioning produces one startup kit per participant: a folder with a startup/ directory (certificates, private key, fed_server.json/fed_client.json/fed_admin.json, start and stop scripts) and a local/ directory (site-local resources, authorization and privacy policies, logging config). Startup kits are identities: whoever holds a kit's private key acts as that participant. Admin kits are registered with nvflare config add so that CLI commands know whom to connect as.

Workspaces

Each running server or client has a workspace: its startup kit plus runtime state. Every job gets a sub-folder named after its job ID with the deployed apps, logs, and outputs. The simulator uses /tmp/nvflare/simulation/<job name> by default, and POC uses /tmp/nvflare/poc by default.

Studies

A study is a named job namespace introduced for multi-study deployments (project api_version: 4). Each study enrolls a subset of sites and users; jobs submitted to a study can only target its enrolled sites, and @ALL is narrowed to them. Without multi-study configuration everything happens in the study named default. See nvflare study.

Run Modes

Mode What runs Typical use
Simulator (SimEnv) Server and clients inside one local process tree, no provisioning, no admin. Developing and debugging application code.
POC (PocEnv or nvflare poc) Real server and client processes with auto-generated certificates on one machine. Practicing job submission and administration.
Production (ProdEnv) Provisioned sites on separate machines with real identities, policies, and networking. Real collaborations.

See Execution Environments.

Execution Lifetime

Recipes accept execution_lifetime with two values. With job (the default), the client's training process lives for the whole job and keeps its state in memory between rounds. With task, a fresh worker runs for each task, which suits Kubernetes or Slurm sites that schedule work per task; state must then be checkpointed (the Hello PyTorch example restores optimizer and RNG state from a checkpoint in task mode).

See Also