-
Notifications
You must be signed in to change notification settings - Fork 33
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
Segfault on model open and close #80
Comments
And here's the debug build:
|
And the last bit: val params = new ModelParameters().setModelFilePath("qwen2-0_5b-instruct-q4_0.gguf")
val model = new LlamaModel(params)
Thread.sleep(1000)
model.close() // <-- no crash! So it seems like a race condition on start, when the model is not yet fully loaded, but we start unloading it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On a latest 3.4.1 version I have a JVM crash when using this code:
For a code where I actually do generation (like in README), then the
close()
call causes no crash. It does not depend on model, but the qwen2 is small enough to illustrate the issue.JVM Crash log:
Native stacktrace:
clhsdb pstack:
I will later build a
-DLLAMA_DEBUG
version of the native library and check out the proper stacktrace. But for me sounds like something not fully being initialized on start, and got deleted onclose
.hs_err_pid30598.log
The text was updated successfully, but these errors were encountered: