-
Notifications
You must be signed in to change notification settings - Fork 856
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
Can't use large models with pipeline() #1179
Comments
I altered the source to pass |
Thanks for #1180! I don't know why this wasn't added before 👀
You can just pass in the messages object (and it will do the templating for you). See here for example code. If you want access to the tokenizer to do things yourself, you can access |
BTW: if you run the code I did above without the fix, it loads most of the files, but not all, and so fails. Problem number 2 is that if you then fix the transformers code, it will still fail since not all the files were downloaded correctly, but it thinks it was. I need to open DevTools, go to Application tab, then to Cache Storage, and then delete transformers-cache by right clicking and choosing delete. Only then will the code work. This seems brittle. |
Exact same issue in #963 |
Before the official updates, anyone can use this for temporary "@huggingface/transformers": "git+https://github.com/tangkunyin/transformers.js.git#develop" It works for me! |
System Info
Example:
I see this error in the console:
Seeing that
onnx_data
is the issue, I figured I needed to passuse_external_data_format
along, but it does not work.I have tried :
and
But neither of these will load the model correctly.
Environment/Platform
Description
see above
Reproduction
see above
The text was updated successfully, but these errors were encountered: