Problems when producing distilBERT
### System Info

```shell
Hello！I am training a distilBert from scratch following scripts under examples/distillation.
```


### Who can help?

_No response_

### Information

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

### Tasks

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

### Reproduction

And got error when running the scripts below：
```
python scripts/token_counts.py \
    --data_file data/binarized_text.bert-base-uncased.pickle \
    --token_counts_dump data/token_counts.bert-base-uncased.pickle \
    --vocab_size 30522
```

### Expected behavior

```shell
The error I got is:

Traceback (most recent call last):
  File "scripts/token_counts.py", line 44, in <module>
    data = pickle.load(fp)
EOFError: Ran out of input
```

Could you help me resolve this?
```

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.