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

Update onnxruntime to recent version (works with bun) #489

Closed
wants to merge 2 commits into from

Conversation

sroussey
Copy link
Contributor

When using bun, only onnx-runtime 1.16.x works

Reference: oven-sh/bun#7877

@xenova
Copy link
Collaborator

xenova commented Mar 11, 2024

Hi there 👋 We these updates will all be made to the v3 branch/PR (here). You can test it out with

npm install xenova/transformers.js#v3

Closing in favour of that PR.

@xenova xenova closed this Mar 11, 2024
@TimPietrusky
Copy link

TimPietrusky commented Mar 12, 2024

@xenova thank you very much! We were running into this too when running Transformers.js inside nextron and using the latest version of onnxruntime-node (1.17.0):

Error: Invalid argument: sessionOptions.executionProviders[1] is unsupported: 'wasm'.

With v3, this error is not triggered anymore. Looking forward for the next release.

Just for reference for anyone that wants to get Transformers.js working in nextron, you have to organize your packages like this in your package.json:

{
  "dependencies": {
    "electron-serve": "^1.3.0",
    "electron-store": "^8.1.0",
    "onnxruntime-node": "^1.17.0",
    "sharp": "^0.33.2"
  },
  "devDependencies": {
    "@xenova/transformers": "github:xenova/transformers.js#v3",
    "electron": "^28.2.1"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants