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

(V3) examples/demo-stite had problems generating results #907

Open
2 tasks
NingW101 opened this issue Aug 29, 2024 · 2 comments
Open
2 tasks

(V3) examples/demo-stite had problems generating results #907

NingW101 opened this issue Aug 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@NingW101
Copy link

NingW101 commented Aug 29, 2024

System Info

transformers.js : @huggingface/[email protected]
browser: chrome
node: v20.17.0

Environment/Platform

  • Website/web-app

Description

  • Test Generation

    • throw error when fetching models because the model path is not concatenated correctly,
      image

    • Each generated token will not be returned by dispatching callback function when it is generated, and the entire text will be returned only after the whole generation process is completed.

  • The other text generation examples (translation, summarize, image-to-text) also had problems getting each newly generated token even though the callback function was defined and passed to the pipeline.

Reproduction

  1. clone the repo
  2. cd examples/demo-site
  3. change the @xenova/transformers.js -> "@huggingface/transformers": "^3.0.0-alpha.10" in package.json
  4. npm i
  5. cd examples/demo-site/node_modules/@hugginface/transformers && npm i
  6. copy the webpack.config.js from the repo into the node_modules/@hugginface/transformers && npm run build
  7. cd examples/demo-site && npm run build && npm run preview
@NingW101 NingW101 added the bug Something isn't working label Aug 29, 2024
@NingW101
Copy link
Author

I submitted #903 to fix the bug in text-generation example, and root cause of the issue that newly generated token is not returned is similar, if this PR gets merged I can draft another patch to fix the rest of the text generation examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@NingW101 and others