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

CPU memory leak #4

Open
K024 opened this issue Jan 12, 2024 · 0 comments
Open

CPU memory leak #4

K024 opened this issue Jan 12, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@K024
Copy link
Owner

K024 commented Jan 12, 2024

A CPU memory leak is observed when inferencing using GPU, even when NativeOps is not used (by removing libllm_sharp_ops.so).

CPU memory continues to grow while inferencing. Diagnostics from torch.Tensor.TotalCount and torch.Tensor.PeakCount is stable during multiple turns of chat. GPU memory is also stable, and no GPU memory leak is observed.

Profiled the program with valgrind massif and memcheck. No obvious clues for the leakage from the logs.

massif.out.gz
vgdump.gz

@K024 K024 added the help wanted Extra attention is needed label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant