Skip to content

A web application that manages lifecycles of federated learning federations.

License

Notifications You must be signed in to change notification settings

hainingzhang/FedLCM

 
 

Repository files navigation

FedLCM: Federation Lifecycle Manager

A web-based application designed to oversee the lifecycles of Federated Machine Learning (FML) deployments.

DOC | 中文

Deploy & Run Using Docker Compose

System requirements: On a Linux host with docker 18+ and docker-compose 1.28+ .

  • Download the fedlcm-docker-compose-<version>.tgz package from the releases pages. Afterward, extract the files into a designated folder. Alternatively, you can clone the entire project repository. Then, navigate to the root folder of the cloned project and execute the necessary steps.

  • (Optional) modify .env file to change the image names. Only do this if you want to use your customized registry or images.

  • Then

docker-compose pull
docker-compose up

By default, the web UI is exposed on the 9080 port of the machine. Access that address from a browser to open the FedLCM's UI.

Deploy Into Kubernetes

  • Download the fedlcm-k8s-<version>.tgz package from the releases pages, and unzip the files into a folder. Alternatively, you can clone the entire project repository and execute in the project's root folder.
  • (Optional) We recommend using persistent storage to avoid the change of CA root certificate and the loss of data when restarting the deployment. To enable persistent volume, you should create your StorageClass and corresponding provisioner first. Then modify the commented section in the k8s_deploy.yaml to use persistentVolumeClaim. Replace with your storage class name at storageClassName.
  • Apply these yaml files in the following order:
kubectl apply -f rbac_config.yaml
kubectl apply -f k8s_deploy.yaml

By default, the web UI is exposed via a NodePort service that listens on port 30008 of the nodes. After all resources are successfully created and running, you can enter into your FedLCM service by using <NodeAddress>:30008. Alternatively you can change the Service definition in the yaml to use your preferred service type and exposed port.

Getting Started

Refer to the Getting Started Guide for FATE federation management.

The Site Portal README and FML Manager README provide information on how to use Site Portal directly without using FedLCM.

Development

Build

make all

The generated deliverables are placed in the output folder.

Build & Run Docker Image

  • Modify .env file to change the image name, and then run these commands:
set -a; source .env; set +a
make docker-build
  • Optionally push the image to a registry
make docker-push
  • Start the service
docker-compose up

Refer to the development guide for more development related topics.

License

FedLCM is available under the Apache 2 license.

This project uses open source components which may have additional licensing terms. The official docker images and licensing terms for these open source components can be found at the following locations:

About

A web application that manages lifecycles of federated learning federations.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 55.0%
  • TypeScript 17.1%
  • JavaScript 12.5%
  • HTML 12.5%
  • SCSS 1.6%
  • CSS 0.7%
  • Other 0.6%