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

Runing LLM in a webworker fails due to loglevel dependency #511

Open
jauniusmentimeter opened this issue Jul 21, 2024 · 1 comment
Open
Assignees
Labels
status: tracking Tracking work in progress

Comments

@jauniusmentimeter
Copy link

As for reproducing, can use a simple example defined here.

When creating CreateWebWorkerMLCEngine instance, loglevel is being executed in webworker and fails due to having references to window object. Here is one example of failure.

In earlier versions web workers were working fine, I was running 0.2.36 with no problems.

@Neet-Nestor Neet-Nestor self-assigned this Jul 29, 2024
@Neet-Nestor Neet-Nestor added the status: tracking Tracking work in progress label Jul 29, 2024
@Neet-Nestor
Copy link
Contributor

@jauniusmentimeter I'm running the get-started-web-worker example and it didn't seem to fail or complain. Could you provide a minimal simple sample code with error output screenshot to help me understand the issue?

From the code samples you referenced here, I see the package is checking whether window is defined properly so it shouldn't crash anything if I understand the code correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: tracking Tracking work in progress
Projects
None yet
Development

No branches or pull requests

2 participants