Hi there,
I have been doing the HF course and decided to apply what I have learned but I have unfortunately encountered some errors at the model.fit() stage.
I extracted BBC text data as an excel file from kaggle and converted it to a DatasetDict as below:

image1132×612 32.7 KB

Loaded the tokenizer and tokenized the text features

image927×583 33 KB

Train_test_val split

image1242×749 53.3 KB

Converted my data to tf_data and padded with DataCollator and instantiated the model

image1610×1108 88.6 KB

Optimizer and compile:

image1584×616 54.1 KB

GEtting the error at the below stage

image1584×1083 160 KB

Not sure what I am doing wrong here as I tried following the steps in the course, thanks in advance