Skip to content

Helsinki models error if used in a worker #83

@escottgoodwin

Description

@escottgoodwin

I get the following error if I call a Helsinki NLP model with the pipeline in a web worker (as in demo example). It works if called in the main app on the main thread (not ideal). Other hugging face models work fine in the worker.

utils.js:423 Uncaught (in promise) RangeError: Maximum call stack size exceeded
at softmax (utils.js:423:1)
at Function.sample (samplers.js:227:1)
at Function._call (samplers.js:31:1)
at closure (utils.js:544:1)
at Function.generate (models.js:742:1)
at async Function._call (pipelines.js:373:1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions