Training auto cancelling
### System Info

Transformers version: 4.31.0.dev0
Platform: Google Colab 
Environment configuration: TPU, GPU(V100)
Python version: Python 3.10.12

### Who can help?

@patil-suraj  @ArthurZucker 

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

! python ./transformers/examples/pytorch/translation/run_translation.py \
    --model_name_or_path t5-large \
    --do_train \
    --do_eval \
    --source_lang fr \
    --target_lang en \
    --source_prefix "translate French to English: " \
    --dataset_name wmt14 \
    --dataset_config_name fr-en \
    --output_dir ./tmp/T5-large-fr-en \
    --per_device_train_batch_size=4 \
    --per_device_eval_batch_size=4 \
    --overwrite_output_dir \
    --predict_with_generate \
    --push_to_hub=True

### Expected behavior

The training script should continue but it auto cancel itself like someone pressed Ctrl+C button. Here is the output
```
{'loss': 1.6703, 'learning_rate': 4.9998367482177885e-05, 'epoch': 0.0}
  0% 1000/30627537 [1:00:01<26918:05:16,  3.16s/it][INFO|trainer.py:2926] 2023-06-09 19:06:01,861 >> Saving model checkpoint to ./tmp/tst-translation/checkpoint-1000
[INFO|configuration_utils.py:458] 2023-06-09 19:06:01,863 >> Configuration saved in ./tmp/tst-translation/checkpoint-1000/config.json
[INFO|configuration_utils.py:364] 2023-06-09 19:06:01,863 >> Configuration saved in ./tmp/tst-translation/checkpoint-1000/generation_config.json
[INFO|modeling_utils.py:1853] 2023-06-09 19:06:09,160 >> Model weights saved in ./tmp/tst-translation/checkpoint-1000/pytorch_model.bin
[INFO|tokenization_utils_base.py:2194] 2023-06-09 19:06:09,162 >> tokenizer config file saved in ./tmp/tst-translation/checkpoint-1000/tokenizer_config.json
[INFO|tokenization_utils_base.py:2201] 2023-06-09 19:06:09,162 >> Special tokens file saved in ./tmp/tst-translation/checkpoint-1000/special_tokens_map.json
[INFO|tokenization_t5_fast.py:186] 2023-06-09 19:06:09,234 >> Copy vocab file to ./tmp/tst-translation/checkpoint-1000/spiece.model
[INFO|tokenization_utils_base.py:2194] 2023-06-09 19:06:54,528 >> tokenizer config file saved in ./tmp/tst-translation/tokenizer_config.json
[INFO|tokenization_utils_base.py:2201] 2023-06-09 19:06:54,528 >> Special tokens file saved in ./tmp/tst-translation/special_tokens_map.json
[INFO|tokenization_t5_fast.py:186] 2023-06-09 19:06:54,599 >> Copy vocab file to ./tmp/tst-translation/spiece.model
  0% 1228/30627537 [1:17:07<29988:35:31,  3.53s/it]^C
``` 
No matter which configuration I use this is the behiavor I have. Does it related to the fact that there is specific task param for from French to English(see below)
```
"task_specific_params": {
    "summarization": {
      "early_stopping": true,
      "length_penalty": 2.0,
      "max_length": 200,
      "min_length": 30,
      "no_repeat_ngram_size": 3,
      "num_beams": 4,
      "prefix": "summarize: "
    },
    "translation_en_to_de": {
      "early_stopping": true,
      "max_length": 300,
      "num_beams": 4,
      "prefix": "translate English to German: "
    },
    "translation_en_to_fr": {
      "early_stopping": true,
      "max_length": 300,
      "num_beams": 4,
      "prefix": "translate English to French: "
    },
    "translation_en_to_ro": {
      "early_stopping": true,
      "max_length": 300,
      "num_beams": 4,
      "prefix": "translate English to Romanian: "
    }
}
```
Hey!
Without a traceback, there's nothing we can really do to help your with this. It seems that the las line has `  0% 1228/30627537 [1:17:07<29988:35:31,  3.53s/it]^C` with `^C` is similar to when you actually press ctrl+c.
I suggest to post this on the [forum](https://discuss.huggingface.co/) and see if someone already had this issue<|||||>Actually there is no traceback it just do it like the last line as described above(like someone pressed Ctrl+C) and stop like the cell have been executed without error nothing else<|||||>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.