Transformers-in-Action
Transformers-in-Action copied to clipboard
Local environment
Hi Nicole,
I added some notebooks to work on a local environment. The process allows installing all the dependencies just once, so it's not needed to create a different environment per notebook. There are cells I can't run because of the limitation of my GPU, but with a proper hardware it should work fine. I've been using Python 3.10, but it should work with higher versions.
I also changed some of the current notebooks. For example, in ch05_text_classification_financial_phrasebank_LOCAL.ipynb it seems you are trying to use the variables "nb_pipeline" and "test_predictions" before to declare them. Besides, you may have some wrong links to the cloud environments. For example, the Colab link from https://github.com/Nicolepcx/Transformers-in-Action/blob/main/CH05/ch05_text_classification_AG_news.ipynb seems to point to a notebook from chapter 4.