See how the `save-load-state` example works: https://github.com/ggerganov/llama.cpp/tree/master/examples/save-load-state Add a simple test to [ci/run.sh](https://github.com/ggerganov/llama.cpp/tree/master/ci)