-
Notifications
You must be signed in to change notification settings - Fork 721
Open
Description
Describe the bug
Running the example code from here https://simpletransformers.ai/docs/multi-class-classification/ on Ubuntu Server 24.04, Python 3.10, Transformers 4.45.2 under conda yields the following error:
File [~/miniconda3/envs/playground-python-3.10/lib/python3.10/site-packages/simpletransformers/custom_models/models.py:64](http://host-kvsml01:8888/home/ekovacs/miniconda3/envs/playground-python-3.10/lib/python3.10/site-packages/simpletransformers/custom_models/models.py#line=63)
61 from transformers.models.xlm_roberta.configuration_xlm_roberta import XLMRobertaConfig
62 from simpletransformers.custom_models.retrieval_autoencoder import Autoencoder
---> 64 from transformers.models.xlnet.modeling_xlnet import XLNetSequenceSummary
65 from transformers.models.xlm.modeling_xlm import XLMSequenceSummary
66 from transformers.models.flaubert.modeling_flaubert import FlaubertSequenceSummary
ImportError: cannot import name 'XLNetSequenceSummary' from 'transformers.models.xlnet.modeling_xlnet' (/home/ekovacs/miniconda3/envs/playground-python-3.10/lib/python3.10/site-packages/transformers/models/xlnet/modeling_xlnet.py)
To Reproduce
Run the code from here https://simpletransformers.ai/docs/multi-class-classification/ under the abovementioned environment.
Expected behavior
Code should run as expected
Additional context
Is this library still maintained?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels