Skip to main content

Using rusage

·53 words·1 min · Download pdf

The rusage is one handy tool for debugging LLMs!

You prefix any command with it and you get memory usage, page faults, I/O info.

For example, below shows what happens when you load model using llama.cpp. Notice page faults with 100% memcpy which means they didn’t hit disk!

https://pbs.twimg.com/media/GJqsKAIaUAA1LIn.png

Get it here: https://justine.lol/rusage/

Discussion