awesome-repositories.com
Blog
awesome-repositories.com

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

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
SciSharp avatar

SciSharp/LLamaSharp

0
View on GitHub↗
3,714 stars·496 forks·C#·MIT·5 viewsscisharp.github.io/LLamaSharp↗

LLamaSharp

LLamaSharp is a .NET LLM inference library and local runtime that enables the execution of large language models on CPU and GPU hardware. It serves as a multimodal AI library capable of processing both text and image inputs to generate analytical textual responses without relying on external APIs.

The project distinguishes itself as a grammar-based text generator that enforces specific output formats, such as JSON, through constrained sampling pipelines. It also functions as a retrieval augmented generation framework integration, allowing the combination of local inference with external data indexing.

The library covers a broad range of capabilities including text embedding generation for vector search, chat session management for stateful conversations, and image analysis. It further provides tools for model weight quantization, document relevance reranking, and the offloading of model layers to graphics hardware.

Features

  • Local AI Inference - Executes large language models directly on local CPU and GPU hardware for private, low-latency inference.
  • Local LLM Execution - Enables the execution of large language models on local hardware with optimized tokenization and memory management.
  • Retrieval-Augmented Generation - Grounds model responses by retrieving relevant documents from external data indexing for factual context.
  • Hardware Acceleration Backends - Configures the runtime to use specific hardware acceleration backends like CUDA, Vulkan, or AVX.
  • Inference Libraries - Provides a high-performance .NET library for loading and executing large language models on local CPU and GPU hardware.
  • Grammar-Constrained Generation - Enforces structural validity of model outputs using formal grammar rules to ensure responses follow formats like JSON.
  • GGUF Model Loaders - Loads and initializes quantized model weights from the GGUF binary format to minimize memory usage.
  • Structured Output Generators - Forces language models to produce strictly typed, machine-readable formats like JSON using grammar constraints.
  • Text Embedding Generators - Provides utilities for transforming text into vector representations to support semantic search and similarity analysis.
  • Grammar-Constrained Samplers - Restricts token generation based on formal language rules to enforce strict output schemas.
  • Model Layer Offloading - Distributes specific model computation layers to graphics hardware to accelerate processing speed.
  • Vector Search - Implements the conversion of text into embeddings to facilitate similarity-based information retrieval and document reranking.
  • GPU Hardware Acceleration - Distributes specific model computation layers to graphics hardware to accelerate processing speed.
  • AI Agent Development - Provides the necessary primitives to build interactive AI agents, including conversation state and streaming responses within .NET.
  • Multimodal Frameworks - Provides a framework capable of processing both text and image inputs to generate analytical textual responses.
  • Vision Analysis - Generates descriptive or analytical textual responses by processing image files alongside text prompts.
  • AI Integration Frameworks - Integrates the local inference engine with external software kits for orchestration and bot development.
  • Chat Session Management - Maintains conversational history and state across multi-turn dialogues to provide continuity.
  • Conversation Context Tracking - Stores and retrieves historical query-response pairs to maintain continuity within multi-turn dialogues.
  • Document Rerankers - Scores and re-orders document lists based on their relevance to a specific user query.
  • RAG Framework Integrations - Integrates local inference with external data indexing to implement retrieval-augmented generation workflows.
  • Incremental Inference Streaming - Streams model outputs to clients incrementally as they are generated to reduce perceived latency.
  • GPU Acceleration Configurations - Allows precise configuration of the number of model layers offloaded to the GPU to optimize inference performance.
  • Sampling Controls - Adjusts the randomness and creativity of generated text using custom sampling pipelines and parameters.
  • Weight Quantization - Compresses large model weights into lower-precision formats to reduce memory usage and increase inference speed.
  • Artificial Intelligence - C# bindings for running LLaMA and GPT models locally.

Star history

Star history chart for scisharp/llamasharpStar history chart for scisharp/llamasharp

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

Open-source alternatives to LLamaSharp

Similar open-source projects, ranked by how many features they share with LLamaSharp.
  • nexaai/nexa-sdkNexaAI avatar

    NexaAI/nexa-sdk

    7,721View on GitHub↗

    The nexa-sdk is an on-device AI SDK and multimodal inference engine designed to run large language, vision, and audio models locally on mobile and desktop hardware. It functions as a local LLM runtime and NPU acceleration framework, enabling the execution of generative and discriminative models without reliance on cloud services. The project distinguishes itself through a dedicated NPU acceleration framework that optimizes model execution on Neural Processing Units to reduce latency and power consumption. It employs hardware-agnostic backend routing to dynamically distribute computations acro

    Kotlingemma3gogpt-oss
    View on GitHub↗7,721
  • openvinotoolkit/openvinoopenvinotoolkit avatar

    openvinotoolkit/openvino

    10,414View on GitHub↗

    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
    View on GitHub↗10,414
  • ggerganov/llama.cppggerganov avatar

    ggerganov/llama.cpp

    116,912View on GitHub↗

    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

    C++
    View on GitHub↗116,912
  • 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 LLamaSharp→

Frequently asked questions

What does scisharp/llamasharp do?

LLamaSharp is a .NET LLM inference library and local runtime that enables the execution of large language models on CPU and GPU hardware. It serves as a multimodal AI library capable of processing both text and image inputs to generate analytical textual responses without relying on external APIs.

What are the main features of scisharp/llamasharp?

The main features of scisharp/llamasharp are: Local AI Inference, Local LLM Execution, Retrieval-Augmented Generation, Hardware Acceleration Backends, Inference Libraries, Grammar-Constrained Generation, GGUF Model Loaders, Structured Output Generators.

What are some open-source alternatives to scisharp/llamasharp?

Open-source alternatives to scisharp/llamasharp include: nexaai/nexa-sdk — The nexa-sdk is an on-device AI SDK and multimodal inference engine designed to run large language, vision, and audio… openvinotoolkit/openvino — OpenVINO is an AI inference engine and model serving platform designed to execute optimized deep learning models… ggerganov/llama.cpp — llama.cpp is a high-performance C++ inference engine and runtime for executing large language models locally across… tiiny-ai/powerinfer — PowerInfer is a high-performance local large language model inference engine and sparse inference framework. It… lostruins/koboldcpp — KoboldCPP is a local large language model inference engine and GGUF model runner designed to execute quantized models… tingsongyu/pytorch_tutorial — This project is a comprehensive collection of educational examples and reference implementations for building vision…