-
Notifications
You must be signed in to change notification settings - Fork 21
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
calling .exit() has unexpected result: wllamaExit is not a function #121
Comments
You can set it to a new wllama instance instead of setting to null |
Thanks. Will that kill the workers and unload the model to release the memory properly? I just noticed that
For now I've modified the code to no longer |
The reason I ask it because I've read that Mobile Safari doesn't clean up orphaned web workers properly. I'm now attempting this:
|
Calling I'll leave this issue open because I'm curious what the recommended route for unloading models is, and how memory can be optimally recovered while keeping an instance of Wllama alive for housekeeping tasks. |
I verify that the exit function exists, but calling it results in the error above.
The text was updated successfully, but these errors were encountered: