Views
No views yet
adapter_model.safetensors, adapter_config.json: PEFT/LoRA adapter for bigcode/starcoder2-7b.router.pt: PyTorch state dict for the SynthFix router associated with this adapter.bigcode/starcoder2-7b using peft.PeftModel.from_pretrained.1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4base_model = "bigcode/starcoder2-7b"
5adapter_id = "CoderDoge/synthfix-starcoder2-7b-pyrepair"
6
7tokenizer = AutoTokenizer.from_pretrained(adapter_id, trust_remote_code=True)
8base = AutoModelForCausalLM.from_pretrained(base_model, trust_remote_code=True)
9model = PeftModel.from_pretrained(base, adapter_id)