ggml-org/llama.cpp

LLM inference in C/C++

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 55 minutes ago
Added to GitGenius on August 28th, 2023
Created on March 10th, 2023
Open Issues & Pull Requests: 2,478 (+3)
GitHub issues: Enabled
Number of forks: 23,126
Total Stargazers: 128,105 (+3)
Total Subscribers: 838 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 5.9 hours
Mean response time: 16.6 days
90th percentile: 18.9 days
Tracked items: 6,604

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 95% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Almost all tracked open issues have seen activity in the last three months. Only 6% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 907
New in 7 days: 106
Closed in 7 days: 109
Avg open age: 88 days
Stale 30+ days: 165
Stale 90+ days: 117

Recent activity

Opened in 7 days: 88
Closed in 7 days: 88
Comments in 7 days: 249
Events in 7 days: 654

Top labels

  • bug-unconfirmed (4,989)
  • stale (4,044)
  • enhancement (1,366)
  • bug (521)
  • medium severity (287)
  • low severity (184)
  • high severity (153)
  • good first issue (149)

Detailed Description

llama.cpp is a C/C++ implementation designed to enable large language model inference with minimal setup and state-of-the-art performance across diverse hardware platforms, both locally and in cloud environments. The project implements LLM inference without external dependencies, making it accessible for deployment scenarios where simplicity and portability are critical.

The repository supports an extensive array of model architectures spanning text-only and multimodal variants. Text-only model support includes LLaMA series, Mistral, Mixtral MoE, DBRX, Jamba, Falcon, and numerous others including specialized models like Mamba, Grok-1, and various instruction-tuned variants. Multimodal capabilities encompass vision-language models such as LLaVA, BakLLaVA, Qwen2-VL, and LFM2-VL, enabling the system to process both text and image inputs.

Hardware acceleration is a central focus of llama.cpp's design. The codebase includes optimizations for Apple silicon through ARM NEON, Accelerate, and Metal frameworks. For x86 architectures, it provides AVX, AVX2, AVX512, and AMX support. RISC-V architectures benefit from RVV, ZVFH, ZFH, ZICBOP, and ZIHINTPAUSE support. GPU acceleration is available through custom CUDA kernels for NVIDIA hardware, HIP support for AMD GPUs, and MUSA support for Moore Threads GPUs. The project also offers Vulkan and SYCL backend support, alongside CPU plus GPU hybrid inference capabilities for models exceeding total VRAM capacity.

Quantization represents a key optimization strategy within the project, with support for 1.5-bit, 2-bit, 3-bit, 4-bit, 5-bit, 6-bit, and 8-bit integer quantization schemes to reduce memory footprint and accelerate inference. Recent developments include native support for the gpt-oss model with MXFP4 format through collaboration with NVIDIA, and Hugging Face cache migration enabling models downloaded with the -hf flag to integrate with standard Hugging Face tooling.

The project maintains active development with significant community engagement. The repository shares contributors with major projects including Microsoft VSCode, Rust, and TypeScript, indicating cross-pollination with significant open-source ecosystems.

Recent feature additions include multimodal support in llama-server, a VS Code extension for fill-in-the-middle completions, and a Vim/Neovim plugin for similar functionality. WebGPU support enables browser-based inference, while Hugging Face Inference Endpoints now natively support GGUF format. The project serves as the primary development playground for the ggml library, with documentation covering model addition procedures, build instructions, Docker deployment, and multimodal capabilities.