{"schemaVersion":1,"id":"llama-cpp","name":"llama.cpp","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/llama-cpp/","officialUrl":"https://github.com/ggml-org/llama.cpp","isCatalog":false,"description":"A language model inference runtime for CPU and GPU with GGUF and a server API: it helps embed local generation in applications.","tasks":["Embed local LLM inference","Test generation and connect the server API to the application"],"categoryIds":["ai","backend"],"subcategoryIds":["ai.orchestration","backend.api"],"tags":["llama.cpp","ml","Development"],"aliases":["ggml-org/llama.cpp","llama-cpp","llm-inference-cpp"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"A local code pipeline under MIT; rights for the selected models are checked separately.","paidUsage":"Model APIs, managed services, and computing resources are paid for separately; the code license does not license all model weights.","license":"MIT for the code; dependencies have separate licenses.","selectionGuide":{"purpose":"Embed local LLM inference","chooseWhen":["Embed local LLM inference","Test generation and connect the server API to the application"],"considerInstead":[],"requirements":["Choose a compatible model and backend for your hardware; CPU-only and GPU options have different resource budgets."],"limitations":["Costs and limits of free use: Model APIs, managed services, and computing resources are paid for separately; the code license does not license all model weights.","Terms of use: MIT for the code; dependencies have separate licenses.","The MIT runtime does not determine a downloaded model's rights; hybrid inference documentation does not guarantee a specific model's speed or capacity."],"faq":[{"question":"What can you use for free in llama.cpp?","answer":"A local code pipeline under MIT; rights for the selected models are checked separately."},{"question":"What additional costs might arise with llama.cpp?","answer":"Model APIs, managed services, and computing resources are paid for separately; the code license does not license all model weights."},{"question":"What terms of use matter for llama.cpp?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with llama.cpp?","answer":"Choose a compatible GGUF model and available CPU/GPU resources. Test generation and connect the server API to the application. Connect the workflow to the application and make errors observable."},{"question":"Can llama.cpp use CPU and GPU together?","answer":"The README describes CPU+GPU hybrid inference: the GPU can accelerate part of a model even when the whole model does not fit in VRAM. Quantization formats and backends including Metal, CUDA, HIP, Vulkan, and SYCL are available. The CLI runs a model, while serve provides an OpenAI-compatible API; releases, Docker, and source builds are different ways to obtain the runtime."}],"related":[],"sources":["https://github.com/ggml-org/llama.cpp","https://raw.githubusercontent.com/ggml-org/llama.cpp/HEAD/README.md","https://raw.githubusercontent.com/ggml-org/llama.cpp/HEAD/LICENSE","https://www.open-source-tools.com/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Embed local LLM inference.","inputs":["Test documents or tasks, and a quality criterion.","Models, a runtime, and a computing budget."],"steps":["Choose a compatible GGUF model and available CPU/GPU resources.","Test generation and connect the server API to the application.","Connect the workflow to the application and make errors observable."],"checks":["Check the result against reference examples and invalid inputs.","Inference costs, model rights, and data handling have been established."]},"sources":["https://github.com/ggml-org/llama.cpp","https://raw.githubusercontent.com/ggml-org/llama.cpp/HEAD/README.md","https://raw.githubusercontent.com/ggml-org/llama.cpp/HEAD/LICENSE","https://www.open-source-tools.com/"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"AI / ML development tool","kind":"tool","pricingNote":"A local code pipeline under MIT; rights for the selected models are checked separately. Model APIs, managed services, and computing resources are paid for separately; the code license does not license all model weights.","notes":null,"labeledSources":[{"url":"https://github.com/ggml-org/llama.cpp","label":"Official source"},{"url":"https://raw.githubusercontent.com/ggml-org/llama.cpp/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/ggml-org/llama.cpp/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}