BERT :dropout(): argument 'input' (position 1) must be Tensor, not str
Which transformer version are you using? I had to pin mine to transformer == 3.5.1 to mitigate that problem, when the hugging face team updated their transformer to 4.0 things started to break.
Hope it helps