Fix accelerate logger bug
# What does this PR do?

Fixes a slow test that requires accelerate t[hat is currently failing](https://github.com/huggingface/transformers/actions/runs/5035387610/jobs/9030918234) with the following error:

```bash
RuntimeError: You must initialize the accelerate state by calling either `PartialState()` or `Accelerator()` before using the logging utility.
```

I suspect this comes from https://github.com/huggingface/accelerate/pull/1446 
The fix seems to be to first initialize a dummy accelerator. However I couldn't reproduce the issue with a simpler snippet. It seems to appear only when a model is created together with CPU offloading + multi GPU. 

I tried this snippet:
```python
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "bigscience/bloom-1b7"

device_map = {
    "transformer.word_embeddings": 0,
    "transformer.word_embeddings_layernorm": 0,
    "lm_head": 0,
    "transformer.h.0": "cpu",
    "transformer.h.1": "cpu",
    "transformer.h.2": 0,
    "transformer.h.3": 0,
    "transformer.h.4": 0,
    "transformer.h.5": 0,
    "transformer.h.6": 0,
    "transformer.h.7": 0,
    "transformer.h.8": 0,
    "transformer.h.9": 1,
    "transformer.h.10": 0,
    "transformer.h.11": 1,
    "transformer.h.12": 0,
    "transformer.h.13": 0,
    "transformer.h.14": 1,
    "transformer.h.15": 0,
    "transformer.h.16": 0,
    "transformer.h.17": 1,
    "transformer.h.18": 1,
    "transformer.h.19": 0,
    "transformer.h.20": 1,
    "transformer.h.21": 1,
    "transformer.h.22": 0,
    "transformer.h.23": 0,
    "transformer.ln_f": 1,
}

model = AutoModelForCausalLM.from_pretrained(
    model_id,
    device_map=device_map,
)

tokenizer = AutoTokenizer.from_pretrained(model_id)

input_text = "hello"
encoded_input = tokenizer(input_text, return_tensors="pt")

# Check the exactness of the results
output_parallel = model.generate(input_ids=encoded_input["input_ids"].to(0), max_new_tokens=10)
```
But it didn't raised any error, strangely, the error is only raised when the test is run.

I would appreciate any insight @muellerzr @sgugger 🙏 
I'll try looking into it more, however also note that for logging you should use the `PartialState` not accelerator :)<|||||>_The documentation is not available anymore as the PR was closed or merged._