In version v3.x:
bash
pip install transformers
to obtain the same in version v4.x:
bash
pip install transformers[sentencepiece]
or
bash
pip install transformers sentencepiece
3. The architecture of the repo has been updated so that each model resides in its folder
The past and foreseeable addition of new models means that the number of files in the directory src/transformers keeps growing and becomes harder to navigate and understand. We made the choice to put each model and the files accompanying it in their own sub-directories.
This is a breaking change as importing intermediary layers using a model's module directly needs to be done via a different path.
How to obtain the same behavior as v3.x in v4.x
In order to obtain the same behavior as version v3.x, you should update the path used to access the layers.
