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

Add support for AbortController on downloading model #83

Open
flatsiedatsie opened this issue Jul 3, 2024 · 1 comment
Open

Add support for AbortController on downloading model #83

flatsiedatsie opened this issue Jul 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@flatsiedatsie
Copy link
Contributor

Sometimes a model will start downloading, but then you realize it's the wrong one, or it's going to take too long, etc.

I'd like to offer users a "cancel download" button. But how would I implement it cleanly? For example, so that already downloaded chunks are also removed, and Wllama ends up in an 'nothing loaded yet' state.

@ngxson
Copy link
Owner

ngxson commented Jul 3, 2024

Probably it can be archived using fetch API AbortController

@ngxson ngxson added the enhancement New feature or request label Jul 8, 2024
@ngxson ngxson changed the title How to cleanly abort downloading a model? Add support for AbortController on downloading model Jul 31, 2024
@ngxson ngxson moved this to Ready in wllama : roadmap Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Ready
Development

No branches or pull requests

2 participants