-
Notifications
You must be signed in to change notification settings - Fork 911
BROKEN examples/demo-site #1127
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
Comments
Hi there 👋 Indeed, the demo site is relatively out-of-date. For up-to-date Transformers.js v3 demos, check out https://github.com/huggingface/transformers.js-examples. The main reason for these demos not working is that we removed the non-standard |
Ah! A "breaking changes" in the announcement blog post or at least the docs would be a great addition. I'll move the callback inside the streamer. Thanks. Is it worth updating this example? |
Oh, also the examples in the docs are wrong then. For example: https://huggingface.co/docs/transformers.js/en/tutorials/react
Also, the new callback function seems to get text not beams, so no decode step is required, though we need to keep a buffer of outputs outselves. |
Also, |
See #1128 |
See #1129 |
System Info
A lot of basic stuff is not working in v3 that worked in v2. My own summarization code broke on v3 so I went to see sample code and found the same issues.
A great example of this is the basic test example
demo-site
.I made the following change in
examples/demo-site/package.json
:And then used "@huggingface/transformers" in
examples/demo-site/src/worker.js
Broken:
Works:
Who can help?
@xenova
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
See above.
Expected behavior
To work like v2, or just to work at all.
The text was updated successfully, but these errors were encountered: