How to use luna-code/megengine-codegen-2B-mono-prefix with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Salesforce/codegen-2B-mono") model = PeftModel.from_pretrained(base_model, "luna-code/megengine-codegen-2B-mono-prefix")
The community tab is the place to discuss and collaborate with the HF community!