Closed addingIce closed 9 months ago
It is pretty the same as in the standard training: modify your model with LoRA, then attach the DP engine. You can check BiTFiT examples for CIFAR10 in this repo.
So I cannot just use "get_peft_model" from peft? And could you point out the specific position of the BiTFiT examples for CIFAR10? Thanks a lot!
You can. Our design is compatible to any PEFT and optimizers. For example, you can change your model to LoRA or BiTFiT in examples/image_classification/CIFAR_TIMM.py between Line 49-52, then attach the DP engine.
Could you give an example of using it in LoRA?