config.json file not available
Author: andysingal
Pull request: no

### System Info

colab
notebook: https://colab.research.google.com/drive/118RTcKAQFIICDsgTcabIF-_XKmOgM-cc?usp=sharing



### Who can help?

@ArthurZucker @youn

### Information

- [ ] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

While running the notebook and Andyrasika/qlora-2-7b-andy i get the following error(Note: adapter_config.json is already there)

```
Andyrasika/qlora-2-7b-andy does not appear to have a file named config.json. Checkout 'https://huggingface.co/Andyrasika/qlora-2-7b-andy/7a0facc5b1f630824ac5b38853dec5e988a5569e' for available files.

```



### Expected behavior

same as above 

Comments:
The error on the shared colab is 
```python 
OSError: None is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or 
log in with `huggingface-cli login` and pass `use_auth_token=True`.
```
when you call 
```python 
model = AutoModelForCausalLM.from_pretrained(
    config.base_model_name_or_path,
    return_dict=True,
    quantization_config=bnb_config,
    device_map="auto",
    trust_remote_code=True,
)
```
As you can see [here](https://huggingface.co/Andyrasika/qlora-2-7b-andy/blob/main/adapter_config.json#L2) the `config.base_model_name_or_path` is not properly set. 
If the script was provided in the PEFT library , pinging @younesbelkada to transfer the issue there and update if needed. Otherwise you should make sure the base model path is defined / use a correct path to a checkpoint

> The error on the shared colab is
> 
> ```python
> OSError: None is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
> If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or 
> log in with `huggingface-cli login` and pass `use_auth_token=True`.
> ```
> 
> when you call
> 
> ```python
> model = AutoModelForCausalLM.from_pretrained(
>     config.base_model_name_or_path,
>     return_dict=True,
>     quantization_config=bnb_config,
>     device_map="auto",
>     trust_remote_code=True,
> )
> ```
> 
> As you can see [here](https://huggingface.co/Andyrasika/qlora-2-7b-andy/blob/main/adapter_config.json#L2) the `config.base_model_name_or_path` is not properly set. If the script was provided in the PEFT library , pinging @younesbelkada to transfer the issue there and update if needed. Otherwise you should make sure the base model path is defined / use a correct path to a checkpoint

Thank you for your instant response(i have already authenticated huggingface token initially while loading the libraries). Any advice on how to address the issue in the notebook shared? @ArthurZucker @younesbelkada 

Closing as it is an exact duplicate of  #25215. 
Feel free to ask your question on the [forum](https://discuss.huggingface.co/), there are no problem on our side, see @younesbelkada's answers.

Hi, in my case this problem occurred when I fine tunned already fine tunned model then in `adapter_config.json` I've got `base_model_name_or_path` null instead of path to the base model.