llama.cpp
AI & LLMsLLM inference in C/C++
Release History
b10004b10003b10002b10001b10000b9999b9996b9995b9994b9993b9992b9990b9988b9987b9986b9985b9984b9982b9981b9980b9979b9978b9977b9976b9975b9974b9973b9972b9971b9970b9969b9968b9967b9966b9965b9964b9963b9960b9959b9957b9956b9952b9951b9950b9949b9948b9947b9946b9945b9941b99401 featureThis release introduces an offline parameter initialization for llama-bench and provides a comprehensive set of pre-compiled binaries for numerous operating systems and hardware accelerators.
b99391 fix1 featureThis release introduces hardware acceleration support for Depthwise Convolution (CONV_2D_DW) on the Metal backend and includes corresponding bug fixes for F16 kernels on CPU.
b99381 featureThis release enables unsafe math optimizations for HIP (AMD) builds to improve performance, alongside providing a wide array of pre-compiled binaries for diverse operating systems and hardware configurations.
b99372 fixesThis release focuses on aligning the CUDA snake fusion matcher behavior with other backends by correcting type predicates and enforcing contiguity checks for operands. Various pre-built binaries for different operating systems and hardware configurations are provided.
b99361 fixThis release includes a fix for prompt batch splitting in the server component to respect the minimum step size. It also provides numerous pre-compiled binaries for various operating systems and hardware configurations.
b99351 fix5 featuresThis release introduces significant enhancements to the hexagon backend, specifically adding VISION RoPE support and improving handling of strided and non-contiguous memory operations within hex-rope.
b99341 featureThis release focuses on performance tuning for the ggml-webgpu backend by adjusting the flash attention subgroup split parameter. It also provides a comprehensive set of pre-compiled binaries for diverse platforms.
b99333 fixesThis release focuses on stability and correctness for OpenCL operations, specifically fixing Q6_K GEMM/GEMV issues on Adreno GPUs when weight dimensions are not multiples of 128, and resolving potential buffer corruption via improved alignment handling.
b99321 fix1 featureThis release focuses on performance tuning for the Vulkan backend by disabling FA mask_opt on GCN, while re-enabling mask optimization for attention head size 256.
b99312 featuresThis release introduces significant performance optimizations for Mixture-of-Experts (MoE) prefill on OpenCL via ragged-tile FP16 GEMM skipping and quarter-granularity tile-skipping.
b99301 fixThis release primarily contains a bug fix for llama-batch regarding sequence position handling and provides updated pre-compiled binaries for numerous platforms and accelerators.
b99291 featureThis release includes a performance optimization for Vulkan on small AMD GPUs by adjusting the submission threshold. It also provides updated pre-built binaries for numerous platforms.
b99283 fixes3 featuresThis release focuses heavily on internal optimizations and robustness improvements for the hexagon backend, particularly for matrix multiplication and attention kernels, alongside asynchronous queue handling and workpool enhancements.
b99274 fixes3 featuresThe command-line interface (CLI) has been significantly refactored to use an HTTP-based implementation and now supports router mode. This release also includes numerous platform-specific binary updates.
b99251 featureThis release introduces support for f16->f16 GGML_OP_SET_ROWS in the CUDA backend and provides updated pre-compiled binaries for numerous platforms including macOS, Linux, Android, and Windows.
b99241 featureThis release includes a significant refactoring of fused operations within the llama component. It also provides updated pre-compiled binaries for a wide range of platforms including macOS, Linux, Android, and Windows with various acceleration backends.
b9923Breaking2 fixesThis release refactors the server-stream component, implementing a pimpl pattern, prefixing public functions with "server_stream_", and improving concurrency safety via mutex guards. Logging for stream operations has also been reduced to the debug level.
b99221 featureThis release introduces an enhancement to llama-batch for recurrent models by adding the n_keep_tail parameter in split_equal. It also provides updated binary distributions for numerous operating systems and hardware configurations.
b99181 featureThis release introduces the ability to set rows using src0 f16 within the metal backend. It also provides a comprehensive set of pre-compiled binaries for numerous operating systems and hardware configurations.
b9917b99161 fixThis release primarily addresses a bug in the ggml library concerning indexing within the simd_gemm scalar tail-column path. Various pre-built binaries for different platforms and accelerators are provided.
b99151 featureThis release introduces CPU f16->f16 support for GGML_OP_SET_ROWS and refactors related compute functions. It also standardizes assertion usage within ggml by replacing assert() with GGML_ASSERT().
b99141 fixThis release addresses a potential crash within the OpenCL implementation related to AOS reconstruction and provides updated binary distributions for numerous platforms and hardware configurations.
b99131 featureThis release introduces Q2_0 quantization support for the CPU backend. It also provides a comprehensive set of pre-compiled binaries for numerous operating systems and hardware configurations.
b99121 fixThis release primarily updates the pre-compiled binaries across various platforms (macOS, Linux, Android, Windows) and includes a fix for naming and spacing in spec files.
b99113 fixes4 featuresThis release focuses heavily on CUDA performance optimizations by fusing MMVQ post-scale operations for NVFP4 and adding dense MMVQ fusion. Several cleanups and reordering steps were performed to stabilize and restrict fusion benefits to appropriate kernels.
b99103 fixesThis release focuses on server-side stability by fixing draft model fit/load inconsistencies and refactoring parameter initialization. It also provides numerous pre-compiled binaries for diverse operating systems and hardware configurations.
b99091 featureThis release introduces timing and progress updates to the streaming responses API endpoint and provides updated binary distributions across various platforms including macOS, Linux, Android, and Windows.
b9908BreakingThis release enforces a strict RAM limit for the prompt cache, ensuring entries exceeding the limit are skipped and aggressively evicting old entries to maintain the limit. It also updates the availability of pre-built binaries across multiple platforms.
b99071 fixThis release includes a minor fix by adding a missing <fstream> include in common.h and provides updated pre-built binaries for numerous platforms including macOS, Linux, Android, and Windows.
b99061 fix1 featureThis release addresses a build issue on ROCm platforms by explicitly adding -fno-finite-math-only when using -ffast-math, preventing build failures related to NaN/Infinity handling.
b99051 fixThis release primarily addresses a bug fix related to the quantized kv-cache for dsv4 within the llama component. It also provides numerous pre-compiled binaries for various operating systems and hardware configurations.
b99041 fixThis release primarily addresses bug fixes related to SYCL backend operations (CONT & CPY unit tests) and includes updated pre-built binaries across multiple platforms.
b99021 fix1 featureThis release introduces SYCL support for cross entropy loss operations and resolves a related formatting issue. It also provides updated pre-compiled binaries across multiple operating systems and architectures.
b99013 fixes2 featuresThis release focuses on SYCL performance enhancements, particularly for the DMMV path by setting K_QUANTS_PER_ITERATION to 1 and fixing gating logic. Several internal SYCL initialization and constant definitions were also updated.
b98991 featureThis release enhances the SYCL backend by improving argsort support across all unit tests and provides updated binary distributions for various platforms including macOS, Linux, Android, and Windows.
b98981 fix1 featureThis release addresses an AOT double type issue related to SYCL functionality and provides a comprehensive set of pre-built binaries across macOS, Linux, Android, Windows, and UI targets.
b9897This release updates environment variable naming conventions for SYCL features, changing 'disable' prefixes to 'enable' prefixes, and provides numerous pre-compiled binaries for various platforms.
b98952 fixesThis release addresses critical bugs in speculative decoding, specifically fixing an out-of-bounds read and cleanup issues in the ngram-map when prompts are shrunk. It also provides updated pre-built binaries for numerous operating systems and hardware targets.
b98941 fixThis release includes a bug fix for Vulkan operations, ensuring stability when handling unsupported f16 types in GGML_OP_SET_ROWS. It also contains minor chore updates.
b98932 fixes6 featuresThis release focuses heavily on OpenCL performance optimizations for flash attention decoding, including vectorized kernels and specific tuning for various quantization levels and model architectures like gemma-4. Several critical bugs related to DK=512 decode crashes and OpenCL compilation errors were also resolved.
b98921 featureThis release optimizes the default thread count for PowerPC (PPC) architectures on Linux and AIX. It also provides numerous pre-compiled binaries for various operating systems and hardware configurations.
b98911 fix1 featureThis release introduces the col2im_1d operation to the Metal backend across multiple precisions and refines the Metal backend's operator predicate checks for COL2IM_1D.
b98905 fixesThis release focuses on bug fixes across CUDA, CDNA, and BF16 logic, alongside a refactoring of the cuBLAS implementation. It also provides numerous pre-compiled binaries for different operating systems and hardware configurations.
b98881 featureThis release enhances CUDA flash attention by extending K-type validation to V-types and provides updated pre-compiled binaries across multiple operating systems and hardware configurations.
b98861 featureThis release introduces an optimization to the ggml-cpu backend by utilizing the UE4M3 LUT for ARM NVFP4 dot products and provides numerous pre-compiled binaries for various operating systems and hardware configurations.
b98851 fix2 featuresThis release enables tiled matmul support on AIX CPUs, which significantly improves performance for certain models, while also addressing a segmentation fault issue on AIX by reducing stack buffer usage.
b98841 fixThis release primarily addresses a critical 32-bit integer overflow bug in the Vulkan implementation of CEIL_DIV. It also provides updated pre-compiled binaries for numerous platforms and hardware configurations.
b98821 featureThis release updates scripts to use HF_TOKEN for UI asset downloads and provides a comprehensive set of pre-built binaries for numerous operating systems and hardware accelerators.
b98811 featureThis release primarily focuses on enabling the -ffast-math optimization flag for HIP builds to potentially improve performance. It also provides a wide array of pre-compiled binaries for numerous operating systems and hardware configurations.
Common Errors
NotImplementedError2 reportsNotImplementedError in llama-cpp often arises when attempting to use a feature or model architecture that hasn't yet been fully implemented in the conversion or evaluation code. To resolve this, either update to the latest version of llama-cpp which may include the necessary implementation or contribute the missing functionality by implementing the required logic for the specific operator/model architecture and submitting a pull request. If an update is not available, using a model known to work can also provide a workaround.
DeviceLostError2 reportsThis error typically occurs in llama-cpp. Check the example issues for common solutions.
InternalServerError2 reportsInternalServerError in llama-cpp often arises from unsupported model architectures or operations, such as attempting multimodal input with a model not designed for it or faulty tool calling within a specific model. To resolve this, verify model compatibility with the requested operation in your code, and update llama-cpp to the latest version or use a compatible model known to work with multimodal inputs or tool calling. If issues persist, inspect the model's configuration, particularly its handling of vision or function calling, and revise your prompts accordingly.
FileNotFoundError1 reportThe "FileNotFoundError" in llama-cpp usually means a required file path, often a model or tokenizer component, isn't valid or the file doesn't exist at that location. Double-check the path specified in your command-line arguments or configuration files for typos and ensure the necessary files are actually present in the indicated directory. If converting from Hugging Face, ensure all necessary files, like "tokenizer.model", were downloaded correctly.
Related AI & LLMs Packages
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Get up and running with OpenAI gpt-oss, DeepSeek-R1, Gemma 3 and other models.
🦜🔗 The platform for reliable agents.
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use.
A high-throughput and memory-efficient inference and serving engine for LLMs
Subscribe to Updates
Get notified when new versions are released