-
Notifications
You must be signed in to change notification settings - Fork 48
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
Memory Leak Issue with ForwardIs Method in gotch Library #133
Comments
hey! have you found a solution to this problem? im facing the same issue, the memory consumption just skyrockets under high load and doesn't get freed |
@yinziyang , @gmohmad , Maybe you need to wrap your code inside |
@sugarme
|
update: |
Description:
When using the
gotch
library with a JIT-compiled BERT model, calling theForwardIs
method repeatedly causes a memory leak. The memory usage continuously increases with each call toForwardIs
, which may lead to system instability after prolonged operation.Steps to Reproduce:
Train and save a BERT model using the following Python code:
Load and call the model in Go using the
gotch
library:Expected Behavior:
Memory usage should remain stable regardless of the number of
ForwardIs
calls.Actual Behavior:
Memory usage continues to increase with each call to
ForwardIs
, leading to gradual memory consumption over prolonged operation.Additional Information:
The text was updated successfully, but these errors were encountered: