---
title: "Discussion on \"How to Run Kimi and Qwen Models Locally with llama.cpp\" | Hashnode"
description: "Discussion on \"How to Run Kimi and Qwen Models Locally with llama.cpp\". Install llama.cpp with one script and run Kimi or Qwen GGUF models locally: which model fits which PC, and what the Kimi API costs."
url: "https://hashnode.com/posts/how-to-run-kimi-and-qwen-models-locally-with-llama-cpp/6b057de95c25e92ee6a6287d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Run Kimi and Qwen Models Locally with llama.cpp](https://cluetrove.hashnode.dev/how-to-run-kimi-and-qwen-models-locally-with-llama-cpp?utm_source=hashnode&utm_medium=feed)

Install llama.cpp with one script and run Kimi or Qwen GGUF models locally: which model fits which PC, and what the Kimi API costs.

1d ago · 5 min read · cluetrove.hashnode.dev  
Read the article

-   [#llm](https://hashnode.com/tag/llm)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#artificial-intelligence](https://hashnode.com/tag/artificial-intelligence)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)

## Written by

[Abdullah Almania](https://hashnode.com/@cluetrove)

@cluetrove · Saudi Arabia

  
[View profile](https://hashnode.com/@cluetrove)

Building free Arabic & English web tools at ClueTrove

I build ClueTrove: free online tools (PDF, image compression, QR codes, CV builder and checker, GPA, Hijri dates, Saudi end-of-service and currency calculators) and practical guides on software, AI and money. No sign-up needed. Tools: https://tools.cluetrove.com/en/ Blog: https://cluetrove.com

## Responses 1

Markdown supported · ⌘↵ to post

[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.
