It's recommended that you install the requirements for these t5 models in a new environment since they are known to conflict with common Python package requirements in the scientific Python Stack.
conda create -n nlp-t5
conda activate nlp-t5
conda install python==3.8
conda install -c conda-forge python-multipart pandas scikit-learn transformers protobuf
At least on an M1 Macbookpro, conda managed to get these dependencies right. However, you may need to brew install
a few system-level packages and/or deal with gcc
or xcode
modules if you don't have some of the lower-level prerequisites installed.
Original Notebook https://github.com/patil-suraj/exploring-T5/blob/master/t5_fine_tuning.ipynb
Dataset https://github.com/dair-ai/emotion_dataset
Whitepaper https://arxiv.org/pdf/1910.10683.pdf