awesome-repositories.com
ब्लॉग
awesome-repositories.com

AI-संचालित खोज के साथ बेहतरीन ओपन-सोर्स रिपॉजिटरी खोजें।

एक्सप्लोर करेंक्यूरेटेड खोजेंओपन-सोर्स विकल्पसेल्फ-होस्टेड सॉफ्टवेयरब्लॉगसाइटमैप
प्रोजेक्टहमारे बारे मेंहम रैंकिंग कैसे करते हैंप्रेसMCP सर्वर
कानूनीगोपनीयताशर्तें
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
abetlen avatar

abetlen/llama-cpp-python

0
View on GitHub↗
9,993 स्टार्स·1,305 फोर्क्स·Python·mit·13 व्यूज़llama-cpp-python.readthedocs.io↗

Llama Cpp Python

llama-cpp-python provides a Python interface for the llama.cpp library, enabling the execution of large language models with hardware acceleration. It functions as a GGUF model loader and a structured text generator capable of running inference servers and multimodal runtimes for processing both text and image inputs.

The project distinguishes itself through a local inference server that exposes model capabilities via an OpenAI-compatible web API. It supports advanced execution techniques including speculative decoding, weight quantization, and layer-based GPU offloading to manage memory across system RAM and VRAM.

The library covers a broad range of AI capabilities, including text completion, embedding generation, and the enforcement of structured outputs via JSON schemas or formal grammars. It also provides infrastructure for tool use through external function calling and manages model extensions via LoRA adapter injection.

Users can fetch model files directly from Hugging Face and maintain model state persistence for resuming generation.

Features

  • LLM Python Bindings - Provides the primary Python interface for the llama.cpp library to run hardware-accelerated models.
  • Chat Completion Services - Exposes an API for generating conversational responses using structured message sequences.
  • Embedding Generators - Provides utilities for transforming text into numerical vector representations for semantic search and clustering.
  • Local Model Serving - Hosts a local API server that allows external applications to communicate with a hosted model.
  • Inference API Servers - Hosts a local inference server that exposes model capabilities through standardized web APIs.
  • Model Loading - Imports model weights from local paths and manages layer offloading to the GPU.
  • Model Loaders - Implements a GGUF model loader with support for GPU offloading and adapter injection.
  • Model Quantization - Implements weight quantization to reduce the memory footprint and increase the inference speed of GGUF models.
  • Precision Quantization - Supports weight quantization to reduce memory usage and increase inference speed on consumer hardware.
  • Text Completion Engines - Produces text completions based on prompts using configurable sampling parameters and stop sequences.
  • Text Generation APIs - Provides an interface for interacting with language models to produce text, chat, or code completions.
  • Local LLM Tools - Enables running large language models on local hardware for text generation and embeddings.
  • OpenAI-Compatible Servers - Implements the OpenAI API specification to ensure compatibility with existing third-party AI clients.
  • Chat Template Management - Provides tools for defining and managing the structured templates used to prompt conversational models.
  • Chat Template Formatters - Implements methods for converting chat history into model-specific token sequences for consistent input.
  • Output Constraint Engines - Enforces structured output formats like JSON during model inference to ensure valid data generation.
  • OpenAI-Compatible Inference Servers - Provides a local inference server that exposes model capabilities through a standardized OpenAI-compatible API.
  • Speculative Decoding Strategies - Implements speculative decoding using a small draft model to accelerate text generation speed.
  • LoRA Adapter Loaders - Applies low-rank adaptation weights to a base model during runtime to modify behavior.
  • Multimodal Processing - Enables the simultaneous processing and integration of text and image inputs using vision-capable models.
  • Multimodal Vision Interfaces - Provides a runtime environment for processing both text and image inputs via multimodal vision interfaces.
  • Structured Output Generators - Constrains model output to valid JSON schemas or formal grammars for structured data generation.
  • Grammar-Constrained Samplers - Restricts token generation based on formal language rules to enforce specific output schemas.
  • Text Tokenizers - Transforms raw UTF-8 strings into integer tokens required for model processing.
  • Token Decoders - Converts internal token representations back into human-readable text for final display.
  • Tool-Calling Schemas - Enables external function calling by enforcing structured parameter schemas for tool integration.
  • Model Layer Offloading - Distributes model layers between system RAM and VRAM to enable execution of large models on limited hardware.
  • Tool Use and Function Calling - Enables language models to interact with external APIs and software tools through structured function calling.
  • GPU Acceleration - Provides hardware acceleration on macOS by offloading compute-intensive model operations to the GPU via Metal.
  • Python-C Interfaces - Maps high-level Python function calls to optimized low-level C++ memory operations for model execution.
  • Inference Engines - Python interface for the llama.cpp inference engine.

स्टार हिस्ट्री

abetlen/llama-cpp-python के लिए स्टार हिस्ट्री चार्टabetlen/llama-cpp-python के लिए स्टार हिस्ट्री चार्ट

AI सर्च

और अधिक बेहतरीन रिपॉजिटरी खोजें

अपनी ज़रूरत को सरल भाषा में बताएं — AI हजारों क्यूरेटेड ओपन-सोर्स प्रोजेक्ट्स को प्रासंगिकता के आधार पर रैंक करता है।

Start searching with AI

Llama Cpp Python के ओपन-सोर्स विकल्प

समान ओपन-सोर्स प्रोजेक्ट्स, जो Llama Cpp Python के साथ साझा की गई सुविधाओं के आधार पर रैंक किए गए हैं।
  • sgl-project/sglangsgl-project का अवतार

    sgl-project/sglang

    29,079GitHub पर देखें↗

    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
    GitHub पर देखें↗29,079
  • ericlbuehler/mistral.rsEricLBuehler का अवतार

    EricLBuehler/mistral.rs

    6,597GitHub पर देखें↗

    mistral.rs is an inference engine for large language models that runs locally and exposes models behind OpenAI and Anthropic-compatible APIs. It serves as a multi-model serving platform, capable of loading several models in a single server process with per-request routing and on-demand loading and unloading. The engine supports multimodal inference, processing text alongside images, video, audio, and speech inputs, and includes a quantized model deployment runtime that reduces memory use and speeds up inference on consumer hardware. The project distinguishes itself through an agentic tool exe

    Rustllmrustuqff
    GitHub पर देखें↗6,597
  • openvinotoolkit/openvinoopenvinotoolkit का अवतार

    openvinotoolkit/openvino

    10,414GitHub पर देखें↗

    OpenVINO is an AI inference engine and model serving platform designed to execute optimized deep learning models across CPUs, GPUs, and NPUs through a unified API. It includes a model optimization toolkit for converting, quantizing, and compressing models from various frameworks, alongside a specialized generative AI runtime for large language models. The project distinguishes itself through a plugin-based hardware acceleration layer that maps neural network operations to vendor-specific drivers. It features advanced execution mechanisms such as continuous batching, speculative decoding, and

    C++aicomputer-visiondeep-learning
    GitHub पर देखें↗10,414
  • microsoft/onnxruntimemicrosoft का अवतार

    microsoft/onnxruntime

    19,347GitHub पर देखें↗

    This project is a cross-platform machine learning inference engine designed to execute pre-trained models across diverse operating systems and hardware environments. It functions as a standardized execution framework that manages the entire lifecycle of model inference, from loading and graph optimization to hardware-accelerated execution and generative sequence management. The runtime distinguishes itself through a highly modular architecture that decouples model logic from hardware-specific kernels. By utilizing an execution provider abstraction, it enables developers to offload computation

    C++ai-frameworkdeep-learninghardware-acceleration
    GitHub पर देखें↗19,347
Llama Cpp Python के सभी 30 विकल्प देखें→

अक्सर पूछे जाने वाले प्रश्न

abetlen/llama-cpp-python क्या करता है?

llama-cpp-python provides a Python interface for the llama.cpp library, enabling the execution of large language models with hardware acceleration. It functions as a GGUF model loader and a structured text generator capable of running inference servers and multimodal runtimes for processing both text and image inputs.

abetlen/llama-cpp-python की मुख्य विशेषताएं क्या हैं?

abetlen/llama-cpp-python की मुख्य विशेषताएं हैं: LLM Python Bindings, Chat Completion Services, Embedding Generators, Local Model Serving, Inference API Servers, Model Loading, Model Loaders, Model Quantization।

abetlen/llama-cpp-python के कुछ ओपन-सोर्स विकल्प क्या हैं?

abetlen/llama-cpp-python के ओपन-सोर्स विकल्पों में शामिल हैं: sgl-project/sglang — Sglang is a high-performance inference engine and serving system designed for large language and multimodal models. It… ericlbuehler/mistral.rs — mistral.rs is an inference engine for large language models that runs locally and exposes models behind OpenAI and… openvinotoolkit/openvino — OpenVINO is an AI inference engine and model serving platform designed to execute optimized deep learning models… microsoft/onnxruntime — This project is a cross-platform machine learning inference engine designed to execute pre-trained models across… ggerganov/llama.cpp — llama.cpp is a high-performance C++ inference engine and runtime for executing large language models locally across… lostruins/koboldcpp — KoboldCPP is a local large language model inference engine and GGUF model runner designed to execute quantized models…