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

fixes for ort-1.17 #596

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

guschmue
Copy link

the ort tensor object in 1.17 has changed to add support for keeping webgpu tensors on gpu (ie to avoid copies of kv_cache or hidden state). As result the Object.assign() no longer works.
Either we extend the ort tensor or we decouple by keeping it around in the transformers.js tensor ... we think later is the cleanest.
Take a look and let us know. Using extend is another option that would work.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Honry added a commit to Honry/transformers.js that referenced this pull request Feb 28, 2024
This is a very rough example to enable WebNN in transfermer.js,
I just add some hard codes to make the "Image classification w/ google/vite-base-patch16-224"
fp32 model work with ORT Web WebNN EP.

This PR depends on xenova#596
Honry added a commit to Honry/transformers.js that referenced this pull request Feb 28, 2024
This is a very rough example to enable WebNN in transformers.js.
I just add some hard codes to make the "Image classification w/ google/vite-base-patch16-224"
fp32 model work with ORT Web WebNN EP.

This PR depends on xenova#596
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.

None yet

2 participants