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

So the method should be correct, but it seems that there are cases where an error occurs during merging if the model is quantized.