Apparently, the only thing that is old is the Colab notebook code, so it seems that there are no problems if you use the sample page code to a certain extent.
I used the Colab torch version as a base and supplemented the missing parts from the sample.
I realized later that the Colab version and the web version were different…
I’m not familiar with Colab, so I don’t know which one it is, but I think it’s VSCode because it’s not divided into cells?
If the HF sample dataset is correct but you’re getting errors with the dataset, I think it’s because the version of the datasets library or transformers in your environment is different from the version that HF expects.
Even the pip version of the library will be updated in a few weeks, so that’s just how it goes sometimes.