Skip to content

Conversation

@Neet-Nestor
Copy link
Contributor

Overview

This PR adds heartbeat event in web service worker so that the client can monitor its status and respond correspondingly.

Primary Changes

  • Update { type: "keepAlive" } event to { kind: "keepAlive" } to keep all event format consistent
  • Add heartbeat event in web service worker handler to report back its status

Testing

Screenshot 2024-05-15 at 2 01 51 AM

@Neet-Nestor Neet-Nestor requested a review from rickzx May 15, 2024 06:12
@Neet-Nestor Neet-Nestor merged commit ad04a7d into mlc-ai:main May 17, 2024
@Neet-Nestor Neet-Nestor deleted the fix branch May 17, 2024 08:17
CharlieFRuan added a commit that referenced this pull request May 21, 2024
### Changes
Main changes include:
- New model `Hermes-2-Pro-Mistral-7B` in `prebuiltAppConfig` via:
  - #390
- Various `index.js` and `index.js.map` post-processings to resolve
frontend compatibility issues with `require()` and `perf_hoooks`
  - #397
  - #406
- Catch WebGPU OOM error upon `reload()` and `CreateEngine()`:
  - #402
- Service Worker support (in addition to Extension Service Worker):
  - #395
  - #400
  - #401

### WASM Version
v0_2_34 as no change is required.

### TVMjs
TVMjs compiled at
apache/tvm@a5862a5,
with only one change in `tvm/web`:
apache/tvm#17005
atebites-hub pushed a commit to atebites-hub/web-llm that referenced this pull request Oct 4, 2025
## Overview
This PR adds heartbeat event in web service worker so that the client
can monitor its status and respond correspondingly.

## Primary Changes
- Update `{ type: "keepAlive" }` event to `{ kind: "keepAlive" }` to
keep all event format consistent
- Add heartbeat event in web service worker handler to report back its
status

## Testing
<img width="616" alt="Screenshot 2024-05-15 at 2 01 51 AM"
src="https://github.com/mlc-ai/web-llm/assets/23090573/42fcd7b0-f8f2-4b23-80c3-664426853161">
atebites-hub pushed a commit to atebites-hub/web-llm that referenced this pull request Oct 4, 2025
### Changes
Main changes include:
- New model `Hermes-2-Pro-Mistral-7B` in `prebuiltAppConfig` via:
  - mlc-ai#390
- Various `index.js` and `index.js.map` post-processings to resolve
frontend compatibility issues with `require()` and `perf_hoooks`
  - mlc-ai#397
  - mlc-ai#406
- Catch WebGPU OOM error upon `reload()` and `CreateEngine()`:
  - mlc-ai#402
- Service Worker support (in addition to Extension Service Worker):
  - mlc-ai#395
  - mlc-ai#400
  - mlc-ai#401

### WASM Version
v0_2_34 as no change is required.

### TVMjs
TVMjs compiled at
apache/tvm@a5862a5,
with only one change in `tvm/web`:
apache/tvm#17005
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.

1 participant