Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'transformers' has no attribute 'AdamW' #3

Open
ljvin opened this issue Jun 1, 2022 · 0 comments
Open

AttributeError: module 'transformers' has no attribute 'AdamW' #3

ljvin opened this issue Jun 1, 2022 · 0 comments

Comments

@ljvin
Copy link

ljvin commented Jun 1, 2022

Traceback (most recent call last):
File "C:/Users/Dell/Desktop/medical_knowledge_graph_app-master-master/med_kg/MedModel/chatbot_graph.py", line 8, in
from question_classifier import *
File "C:\Users\Dell\Desktop\medical_knowledge_graph_app-master-master\med_kg\MedModel\question_classifier.py", line 9, in
from util.nlp_ner import el
File "C:\Users\Dell\Desktop\medical_knowledge_graph_app-master-master\med_kg\util\nlp_ner.py", line 2, in
from sentence_transformers import SentenceTransformer, util
File "C:\Users\Dell.conda\envs\xt\lib\site-packages\sentence_transformers_init_.py", line 3, in
from .datasets import SentencesDataset, ParallelSentencesDataset
File "C:\Users\Dell.conda\envs\xt\lib\site-packages\sentence_transformers\datasets_init_.py", line 3, in
from .ParallelSentencesDataset import ParallelSentencesDataset
File "C:\Users\Dell.conda\envs\xt\lib\site-packages\sentence_transformers\datasets\ParallelSentencesDataset.py", line 4, in
from .. import SentenceTransformer
File "C:\Users\Dell.conda\envs\xt\lib\site-packages\sentence_transformers\SentenceTransformer.py", line 33, in
class SentenceTransformer(nn.Sequential):
File "C:\Users\Dell.conda\envs\xt\lib\site-packages\sentence_transformers\SentenceTransformer.py", line 562, in SentenceTransformer
optimizer_class: Type[Optimizer] = transformers.AdamW,
AttributeError: module 'transformers' has no attribute 'AdamW'
transformers版本都是对应的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant