init 23ab490
Kaguya-19 commited on
How to use openbmb/MiniCPM3-RAG-LoRA with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("openbmb/MiniCPM3-4B")
model = PeftModel.from_pretrained(base_model, "openbmb/MiniCPM3-RAG-LoRA")