HTTPError: 404 Client Error: Not Found for url: Error while AutoModelForCausalLM.from_pretrained from public repo "lostdrifter/lora-llama-spell-corrector"
I have a public repolostdrifter/lora-llama-spell-corrector at main. It is Llama fine tuned using PEFT Lora AdapterWhen I try to execute following codeimport torchfrom peft import PeftModel, PeftConfigfrom transformers import AutoModelForCausalLM, AutoTokenizerpeft_model_id = “lostdrifter/lora-llama-spell-corrector”config = PeftConfig.from_pretrained(peft_model_id)model = AutoModelForCausalLM.from_pretrained(config.base_model_name_or_path, return_dict=True, load_in_8bit=True, device_map=‘auto’)I get following errorHTTPError: 404 Client Error: Not Found for url:https://huggingface.co/None/resolve/main/config.jsonMy transformer version is4.28.0.dev0When I tried to printconfig, it seems like thebase_model_name_or_pathisNonePeftConfig(peft_type=‘LORA’, base_model_name_or_path=None, task_type=‘CAUSAL_LM’, inference_mode=True)Would appreciate any help here.
2023-04-02T08:21:37Z
Seems like   “base_model_name_or_path”: “facebook/opt-6.7b” was not set in my repo’s adapter_config.json … It worked after I fixed this.Closing the task