Skip to content

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

@NingW101

Description

@NingW101

System Info

transformers.js : @huggingface/transformers@3.0.0-alpha.13
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions