I wonder how to merge my PEFT adapter with the base model and finally get a new whole model?

It seems that the problem can be avoided in some cases by using the PEFT side function.