728x90

Failed to import transformers.models.transfo_xl.configuration_transfo_xl because of the following error (look up to see its traceback): No module named 'transformers.models.transfo_xl.configuration_transfo_xl'

colab에서 위 에러가 발생.

configuration_transfo_x로 검색해보니 transformer 4.35까지는 있었는데, 4.36버전에서 deprecated 되었다고 함.

https://fossies.org/diffs/transformers/4.35.2_vs_4.36.0/index.html

 

transformers: Source code changes report for 4.35.2 vs. 4.36.0 | Fossies Diffs

 

fossies.org

그래서 4.35버전으로 재설치.

!pip install -q -U git+https://github.com/huggingface/transformers.git@v4.35-release

colab 세션 끊고 다시 연결하면 됨.

728x90

+ Recent posts