-
Notifications
You must be signed in to change notification settings - Fork 780
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
NameError: name "DatasetDict" is not defined #2238
Comments
cc @tomaarsen, not sure if this refers to the blog or the documentation. |
I get the same issue following the same tutorial. The error comes from:
Looks like probably a version mismatch. Will update this comment if i find a workaround |
Hmm, that's quite odd. Do you have
|
@tomaarsen I think it's because I installed Fixed by restarting the kernel 🙂 |
Glad to hear that! |
Hi, thanks to the authors for this amazing work! I would really appreciate if you can provide any help on the error I encountered. I was following the trainer part in https://www.sbert.net/docs/sentence_transformer/training_overview.html, but when I run
trainer = SentenceTransformerTrainer(
model=model,
args=args,
train_dataset=train_dataset,
eval_dataset=eval_dataset,
loss=loss,
evaluator=dev_evaluator,
)
I got an error saying: "NameError: name 'DatasetDict' is not defined," even though I made sure DatasetDict is imported. I also searched up, but didn't find any useful information.
Thank you for your time and help in advance!
The text was updated successfully, but these errors were encountered: