Views
No views yet
adapter_model.safetensors, adapter_config.json: PEFT/LoRA adapter for codellama/CodeLlama-7b-hf.router.pt: PyTorch state dict for the SynthFix router associated with this adapter.codellama/CodeLlama-7b-hf using peft.PeftModel.from_pretrained.1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4base_model = "codellama/CodeLlama-7b-hf"
5adapter_id = "CoderDoge/synthfix-codellama-7b-codeflaws"
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)