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

Ability to Pause model / throttle CPU #722

Open
TomYeoman opened this issue Apr 22, 2024 · 0 comments
Open

Ability to Pause model / throttle CPU #722

TomYeoman opened this issue Apr 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@TomYeoman
Copy link

TomYeoman commented Apr 22, 2024

Feature request

The problem I'm facing, is that a running model within an extension, even on the background script (service worker) - it's blocking other actions within the extension. This means we cannot interact with any extension pages whilst a model is running (for example extension options/popup/new tab).

This is weird, as from what I understand the whole point of worker threads is to not block UI threads.. https://developer.chrome.com/docs/extensions/develop/migrate/to-service-workers

A fix could be the ability to pause the model (perhaps you can provide the slice time when you run), then we could sleep / similar after each time slice, allowing the UI / other threads can catch up.

Perhaps some throttling of the CPU may also work.

#341 is a little similar (except cancellation)

image

Motivation

Long-running models are not very use-able right now within extensions, is there's also a UI - this feature would aim to improve this.

Your contribution

I could perhaps look into this, but some discussion first Perhaps once I have a better understanding of any current technical limitations.

@TomYeoman TomYeoman added the enhancement New feature or request label Apr 22, 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
None yet
Development

No branches or pull requests

1 participant