Skip to content

WebGPU fixes #1293

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

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

WebGPU fixes #1293

wants to merge 2 commits into from

Conversation

xenova
Copy link
Collaborator

@xenova xenova commented Apr 23, 2025

Makes multi-session management much easier, adding a global web inference lock to ensure only one session can run at any given time, preventing "Session has already started" errors.

@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.

Comment on lines +458 to +460
// Only return the data if it's not a GPU buffer
unpacked.data = tensor.data;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed, otherwise another error is thrown because data is on GPU, not CPU, so we can't access it with .data without awaiting it's contents (not needed for an error message)

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.

2 participants