Try to change this:



 emmakelo:

hidden_state = flaubert(input_ids=tokenized_dataset['input_ids'],
                            attention_mask=tokenized_dataset['attention_mask



in this:
hidden_state = flaubert(**tokenized_dataset[0])