You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Find why llama.cpp does not scale down below 5 GB #142
The llama.cpp server does not release memory below about 5 GB, also when it is idle.
The README runs it with --sleep-idle-seconds 120, which should unload the model when idle. The E4B q4_0 model is much smaller than 5 GB, so the extra memory comes from somewhere else.
To do:
Measure the memory of the container when idle, after a request, and after the sleep timeout.
Check if sleep mode unloads the model, or only the KV cache.
Check the effect of -c, -np, the mmap settings (--no-mmap, --mlock) and the glibc allocator. Page cache from a mapped model file can also show as container memory.
Activity