When download model. Error: DefaultCPUAllocator: can't allocate memory: you tried to allocate 
### System Info

I want to download the GPT4all-J model. 

according to this weblink : https://huggingface.co/nomic-ai/gpt4all-j

download code:

```python
from transformers import AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained("nomic-ai/gpt4all-j", revision="v1.2-jazzy")

```

it got thie error in the end:

```
RuntimeError: [enforce fail at alloc_cpu.cpp:75] err == 0. DefaultCPUAllocator: can't allocate memory: you
tried to allocate 268435456 bytes. Error code 12 (Cannot allocate memory)
```

----

and the memory of my machine is enough for 268435456 bytes.

```
[root@VM-0-5-centos ~]# free
              total        used        free      shared  buff/cache   available
Mem:       19750992      386456    18700296        2024      664240    19070948
Swap:             0           0           0
```

> 19070948 KB > 268435456 bytes

---

@vanpelt @pvl @arfon @xeb 

### Who can help?

_No response_

### 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

1. create the download python file;

```python

from transformers import AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained("nomic-ai/gpt4all-j", revision="v1.2-jazzy")
```

2. run step 1;
3. wait for it;
4. got the error.

### Expected behavior

download success.
what's wrong with the code above.<|||||>This means you do not have enough RAM to load the model, not disk memory. You can try adding `device_map="auto"` to load directly the model on the GPUs if you have any, or `torch_dtype=torch.float16` to save 2x the memory (inference only).