awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
ggerganov avatar

ggerganov/llama.cpp

0
View on GitHub↗
116,912 stars·19,654 forks·C++·MIT·57 viewsllama.app↗

Llama.cpp

llama.cpp is a high-performance C++ inference engine and runtime for executing large language models locally across various hardware architectures. It provides the core components for local model execution, including a dedicated model quantizer for compressing weights into the GGUF format and a system for generating text embeddings for semantic search.

The project distinguishes itself through specialized memory and execution optimizations, such as block-wise weight quantization to reduce memory footprints and memory-mapped model loading. It supports structured text generation by using formal grammars to force model outputs to adhere to specific JSON schemas or patterns, and it implements speculative decoding to increase inference speed.

Broad capabilities include hardware acceleration for GPUs, tools for converting models between different data formats, and utilities for measuring model quality via perplexity and divergence metrics. The engine can be wrapped in an HTTP server that provides an OpenAI-compatible API for integration with external tools.

Features

  • Local Inference Engines - Implements a high-performance C++ engine for executing large language models on consumer-grade hardware.
  • Cross-Platform Inference Frameworks - Enables model execution across multiple operating systems and hardware architectures via a portable implementation.
  • Hardware Acceleration Backends - Offloads heavy computations to specialized hardware like GPUs via CUDA and Metal to significantly speed up inference.
  • Local Inference Engines - Executes generative AI models directly on local hardware to ensure privacy and reduce latency.
  • Local AI Deployment Platforms - Provides a high-performance runtime for deploying and executing models across diverse local hardware architectures.
  • Tensor Computing Libraries - Includes a low-level C-based tensor library for efficient memory management and mathematical operations.
  • Model Quantization - Implements model quantization to reduce the memory footprint of language models for consumer hardware.
  • Weight Quantization - Implements block-wise weight quantization to compress model weights into low-bit integer formats for reduced memory footprints.
  • Weight Quantization Tools - Provides a dedicated quantizer to convert and compress model weights into the GGUF format.
  • C++ Inference Runtimes - Provides a high-performance compiled C++ environment for executing large language models locally.
  • OpenAI-Compatible APIs - Serves local models via OpenAI-compatible HTTP endpoints for integration with existing AI ecosystem tools.
  • Embedding Generators - Provides a system for transforming text into vector representations for use in semantic search and retrieval.
  • Local Embedding Generators - Transforms text into vector representations locally for semantic search and retrieval.
  • OpenAI-Compatible Inference Servers - Provides an HTTP server that implements the OpenAI API specification for local model access.
  • Speculative Decoding Strategies - Implements speculative decoding using a draft model to predict multiple tokens in parallel for faster generation.
  • Memory-Mapped Loading - Uses memory-mapped model loading to enable fast startup and shared memory usage.
  • Model Format Converters - Includes tools for converting models from various data formats into the optimized GGUF binary format for local execution.
  • Structured Output Generators - Forces the model to generate responses that strictly adhere to predefined JSON schemas or grammatical rules.
  • Grammar-Constrained Samplers - Restricts output tokens using formal grammars to ensure model responses follow specific structural patterns.
  • AI & Machine Learning - Efficient inference of large language models on consumer hardware.
  • Inference and Serving - C/C++ implementation for running LLM inference.
  • Inference Engines - Efficient C/C++ implementation for running local language models.
  • Inference Frameworks - Efficient C/C++ implementation for running models on consumer hardware.
  • Language Models - Ports for running LLaMA-based models efficiently on CPUs.
  • Large Language Models - High-performance C/C++ implementation for running Llama models locally.
  • Local LLM Execution - C/C++ port for running LLaMA models on consumer hardware.
  • Model Quantization - High-performance inference engine for running quantized models on consumer hardware.
  • Model Serving - Library for running LLMs efficiently in pure C/C++.
  • Model Serving Engines - C/C++ port for running LLaMA models on local hardware.
  • Transformer Implementations - C/C++ port of the LLaMA model for efficient local execution.

Star history

Star history chart for ggerganov/llama.cppStar history chart for ggerganov/llama.cpp

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does ggerganov/llama.cpp do?

llama.cpp is a high-performance C++ inference engine and runtime for executing large language models locally across various hardware architectures. It provides the core components for local model execution, including a dedicated model quantizer for compressing weights into the GGUF format and a system for generating text embeddings for semantic search.

What are the main features of ggerganov/llama.cpp?

The main features of ggerganov/llama.cpp are: Local Inference Engines, Cross-Platform Inference Frameworks, Hardware Acceleration Backends, Local AI Deployment Platforms, Tensor Computing Libraries, Model Quantization, Weight Quantization, Weight Quantization Tools.

What are some open-source alternatives to ggerganov/llama.cpp?

Open-source alternatives to ggerganov/llama.cpp include: lostruins/koboldcpp — KoboldCPP is a local large language model inference engine and GGUF model runner designed to execute quantized models… sgl-project/sglang — Sglang is a high-performance inference engine and serving system designed for large language and multimodal models. It… vllm-project/vllm — vLLM is a high-throughput inference engine designed for the efficient serving and execution of large language models.… tiiny-ai/powerinfer — PowerInfer is a high-performance local large language model inference engine and sparse inference framework. It… abetlen/llama-cpp-python — llama-cpp-python provides a Python interface for the llama.cpp library, enabling the execution of large language… pytorch/executorch — ExecuTorch is a lightweight C++ runtime for deploying PyTorch models on mobile, embedded, and edge hardware. It…

Open-source alternatives to Llama.cpp

Similar open-source projects, ranked by how many features they share with Llama.cpp.
  • lostruins/koboldcppLostRuins avatar

    LostRuins/koboldcpp

    9,511View on GitHub↗

    KoboldCPP is a local large language model inference engine and GGUF model runner designed to execute quantized models on personal hardware. It functions as a multimodal AI server and API gateway, providing OpenAI-compatible endpoints that allow third-party clients to interact with locally hosted models. The project distinguishes itself as an AI storytelling backend, featuring dedicated tools for long-form narrative management through persistent memory, world lore tracking, and character state management. It further extends its capabilities as a multimodal server capable of processing text, im

    C++gemmaggmlgguf
    View on GitHub↗9,511
  • sgl-project/sglangsgl-project avatar

    sgl-project/sglang

    29,079View on GitHub↗

    Sglang is a high-performance inference engine and serving system designed for large language and multimodal models. It provides a programmable interface for orchestrating complex generation workflows, enabling developers to coordinate multi-turn dialogues, tool invocations, and reasoning chains through a domain-specific language. The platform is built to support production-scale deployments, offering an OpenAI-compatible API that allows for integration with existing application ecosystems. The system distinguishes itself through a disaggregated architecture that separates compute-intensive pr

    Pythonattentionblackwellcuda
    View on GitHub↗29,079
  • vllm-project/vllmvllm-project avatar

    vllm-project/vllm

    83,048View on GitHub↗

    vLLM is a high-throughput inference engine designed for the efficient serving and execution of large language models. It functions as a production-ready distributed model server, providing standard API protocols for online serving while also supporting offline batch processing. The system is built to maximize token generation speed and memory efficiency, enabling both large-scale cloud deployments and local execution on personal hardware. The project distinguishes itself through advanced memory management and request scheduling techniques, most notably its use of non-contiguous key-value cach

    Pythonamdblackwellcuda
    View on GitHub↗83,048
  • tiiny-ai/powerinferTiiny-AI avatar

    Tiiny-AI/PowerInfer

    8,714View on GitHub↗

    PowerInfer is a high-performance local large language model inference engine and sparse inference framework. It provides a runtime for executing models on consumer-grade hardware, utilizing a GPU acceleration backend to optimize tensor operations for graphics processors. The system distinguishes itself through a sparse inference framework that increases generation speed by skipping computations based on activation sparsity in model weights. It includes a GGUF model converter for transforming weights and metadata into a unified binary format, as well as an OpenAI API compatible server for inte

    C++large-language-modelsllamallm
    View on GitHub↗8,714
  • See all 30 alternatives to Llama.cpp→