Skip to content

linhhtran/DP-FPL

Repository files navigation

Privacy-Preserving Personalized Federated Prompt Learning for Multimodal Large Language Models

The implementation of paper Privacy-Preserving Personalized Federated Prompt Learning for Multimodal Large Language Models. The code is based on CoOp reqpository available at https://github.com/KaiyangZhou/CoOp/tree/main.

Installation

Follow the instruction described here to install and set up necessary packages and dependencies.

Data preparation

Follow the instructions here to prepare the following datasets: Caltech101, OxfordPets, OxfordFlowers.

How to run

Training parameters

--root: a path to all datasets.

--dataset-config-file: which dataset config file to use, default to "configs/datasets/caltech101.yaml".

--num-users: number of clients in Federated Prompt Learning, default to 10.

--factorization: factorization scheme, default to dpfpl. Choose from other baselines: full, fedpgp, lora.

--rank: factorization rank, default to 8.

--noise: differential privacy noise scale, default to 0.4.

Example run

You can run one instance of DP-FPL using the following command:

python federated_main.py --root DATA/ --dataset-config-file configs/datasets/caltech101.yaml --num-users 10 --factorization dpfpl --rank 8 --noise 0.2 --seed 1

You can also run multiple instances of DP-FPL with different parameters by running python run_main.py.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages