---
title: "Comment by Osama Malik on \"How to Run Kimi and Qwen Models Locally with llama.cpp\" | Hashnode"
description: "Useful summary. A few details I checked against the llama.cpp server README: -hf &lt;user&gt;/&lt;model&gt;[:quant] accepts a quant suffix (default Q4_K_M, othe"
url: "https://hashnode.com/posts/how-to-run-kimi-and-qwen-models-locally-with-llama-cpp/6b057de95c25e92ee6a6287d/comment/6b058cc4f6da7be26d66b2ec"
---

[Discussion](https://hashnode.com/posts/how-to-run-kimi-and-qwen-models-locally-with-llama-cpp/6b057de95c25e92ee6a6287d)

Comment [How to Run Kimi and Qwen Models Locally with llama.cpp](https://hashnode.com/posts/how-to-run-kimi-and-qwen-models-locally-with-llama-cpp/6b057de95c25e92ee6a6287d)

[Osama Malik](https://hashnode.com/@osamamalik)

[1d ago](https://hashnode.com/posts/how-to-run-kimi-and-qwen-models-locally-with-llama-cpp/6b057de95c25e92ee6a6287d/comment/6b058cc4f6da7be26d66b2ec)

Useful summary. A few details I checked against the llama.cpp server README: `-hf <user>/<model>[:quant]` accepts a quant suffix (default Q4\_K\_M, otherwise it falls back to the first file in the repo), so you can pick a smaller quant explicitly. `-ngl` defaults to `auto`, so you only need to set it when you want to force a number of layers into VRAM (this is the CPU+GPU hybrid case). `-c 0` is the default and loads the context size from the model, so a very long native context can eat memory. Lowering `-c` is the first thing to try if you hit out-of-memory errors.
