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

issue with model #1

Closed
BrahianVT opened this issue Jun 27, 2023 · 2 comments
Closed

issue with model #1

BrahianVT opened this issue Jun 27, 2023 · 2 comments

Comments

@BrahianVT
Copy link

BrahianVT commented Jun 27, 2023

trying to use in windows 10 ad it didn't work
I traced the error to these lines:
from transformers import T5ForConditionalGeneration,T5Tokenizer
import torch
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
models = T5ForConditionalGeneration.from_pretrained("Michau/t5-base-en-generate-headline")
tokenizer = T5Tokenizer.from_pretrained("Michau/t5-base-en-generate-headline")
the response is:
image

Any help with this will be very appreciated

Regards

@badboysm890
Copy link
Owner

I would suggest you to download the pre-trained weights from the Hugging Face and place it in the path or try WSL and it should work

@BrahianVT
Copy link
Author

yeah update for future reference in windows, in order to make it works I installed whisper from main branch, and also install transformers again see this: huggingface/transformers#24470
With this worked in line-command. But never worked with the UI, maybe the project need a better guide to install and use it.

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

2 participants