CastelDazur/awesome-local-ai
关于
A curated list of tools, frameworks, and resources for running AI locally — inference, RAG, orchestration, monitoring, and more.
人工智能与机器学习实测星标增长
- 24小时
- +1
- 7天
- 正在收集历史
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Awesome Local AI 
A curated list of tools, frameworks, and resources for running AI models on your own hardware. No cloud required.
If you run models on your own GPU instead of calling an API, this list is for you. The tools run on your own hardware. Where one also has a cloud option or a paid tier, its entry says so.
Contents
- Inference Engines
- Python & Language Bindings
- Quantization & Optimization
- Fine-Tuning
- RAG & Knowledge
- Orchestration & Agents
- Model Management
- Monitoring & Profiling
- UI & Interfaces
- Code Assistants
- Voice & Audio
- Image & Video
- Privacy-First Tools
- Unified Gateways
- Guides
- Hardware Guides
Inference Engines
Run LLMs on your machine.
- Candle - Minimalist ML framework in Rust. Low memory footprint, good for embedded use cases.
- ExLlamaV2 - Fast single-user inference on NVIDIA GPUs for EXL2 and GPTQ quantized models. Low VRAM overhead.
- FastChat - Serving platform from LMSYS (creators of Chatbot Arena). Multi-model serving with OpenAI-compatible API.
- Ferrum - Rust-native LLM serving with OpenAI-compatible API on Metal, CUDA or CPU. One binary, no Python runtime.
- GPT4All - Desktop app for local models. Download a model, start chatting. Includes document Q&A.
- Kapitsa - LLM inference engine for Apple Silicon Macs on hand-written Metal kernels and the Neural Engine. OpenAI- and Anthropic-compatible APIs.
- KoboldCpp - One-file GGUF inference with built-in UI. Good for creative writing and roleplay.
- llama.cpp - LLM inference in C/C++ with GGUF quantization. Most widely used inference backend for local setups. Supports NVIDIA, AMD, Intel, Apple Silicon.
- llamafile - Distribute LLMs as single executable files. No install, just run. Cross-platform.
- LMDeploy - Toolkit for compressing, quantizing, and serving LLMs from InternLM. Reports higher throughput than vLLM in its own benchmarks.
- LM Studio - Desktop app for discovering, downloading, and running local LLMs. Built-in chat UI and local API server. Good for non-technical users.
- LocalAI - OpenAI API-compatible server supporting 35+ backends. Drop-in replacement for any OpenAI client.
- mistral.rs - Rust-based inference with ISQ quantization and multimodal support. Low memory usage.
- MLC LLM - Universal deployment of LLMs across hardware backends. Compile once, run anywhere (GPU, mobile, browser).
- MLX LM - Apple Silicon optimized inference. Uses unified memory efficiently. If you have an M-series Mac, start here.
- Ollama - Docker-like experience for running local models. One command to download and run. Wraps llama.cpp with a model registry.
- Rapid-MLX - Apple Silicon LLM server built on MLX, with OpenAI- and Anthropic-compatible APIs and a Mac app.
- SGLang - Structured generation with RadixAttention for fast multi-turn conversations. Good for agentic workloads.
- Sonar - High-throughput inference engine forked from vLLM, formerly Aphrodite Engine. Multi-user serving with GPTQ, AWQ, EXL2 support.
- TensorRT-LLM - NVIDIA optimized inference. High throughput on NVIDIA hardware, more setup required.
- vLLM - High-throughput serving engine with PagedAttention for efficient VRAM usage. Production-grade, supports GGUF and most formats.
- Xinference - Distributed inference platform for LLMs, speech, images. Built-in model hub and OpenAI-compatible API.
Python & Language Bindings
Use inference engines from your code.
- llama-cpp-python - Python bindings for llama.cpp with OpenAI-compatible API server. The most popular way to use llama.cpp from Python.
- Ollama JS - JavaScript/TypeScript client for Ollama.
- Ollama Python - Python client for Ollama API. Simple, well-documented.
Quantization & Optimization
Make models smaller and faster without retraining.
- AWQ - Activation-aware weight quantization. Often better quality than GPTQ at same bit width.
- bitsandbytes - 8-bit and 4-bit quantization for PyTorch. Required for QLoRA fine-tuning.
- GPTQModel - Post-training 4-bit quantization, the maintained successor to AutoGPTQ. Works on NVIDIA, AMD and Intel GPUs.
- llama.cpp convert scripts - Convert Hugging Face models to GGUF format. Essential for llama.cpp and Ollama.
- merge-quantize-keep-mtp - Rank-concat merge two LoRA adapters, then verify speculative-decoding (MTP) heads survive GGUF quantization. Dependency-free GGUF header reader.
- NVIDIA Model Optimizer - Quantization, pruning, and distillation tools for TensorRT and vLLM.
- xformers - Memory-efficient attention implementations. Saves VRAM on long contexts.
Fine-Tuning
Train and adapt models on your own data locally.
- axolotl - Fine-tuning driven by YAML configs. Supports LoRA, QLoRA, DPO, RLHF. Handles multi-GPU setups.
- LLaMA-Factory - Web UI for fine-tuning 100+ models. No coding needed. Supports LoRA, QLoRA, full fine-tuning.
- PEFT - Parameter-Efficient Fine-Tuning from Hugging Face. LoRA, prefix tuning, adapters.
- qlora-single-gpu-playbook - Guards for QLoRA on one GPU: VRAM gating, resume without the resume_from_checkpoint hang, checkpoint repair after a crash.
- torchtune - PyTorch-native fine-tuning library. Clean, hackable, well-documented. From the PyTorch team.
- TRL - Transformer Reinforcement Learning. RLHF, DPO, PPO training for language models. Works with PEFT.
- Unsloth - 2x faster fine-tuning with 80% less memory. QLoRA and LoRA on a single GPU.
RAG & Knowledge
Build local knowledge systems without sending your data anywhere.
- ChromaDB - Embedded vector database. pip install, start storing embeddings. No server needed.
- FAISS - Similarity search library from Meta. Fast, battle-tested. The underlying engine many tools use.
- Hyperconsciousness - Encrypted local knowledge store with CLI/MCP search, device sync, and scoped, expiring access grants. Developer alpha.
- LangChain - Framework for chaining LLM calls with tools, memory, and retrieval. Large ecosystem of integrations.
- LlamaIndex - Data framework for RAG pipelines. Index your docs, query with LLMs. Supports 160+ data sources.
- Mem0 - Memory layer for AI assistants. Persistent context across conversations with local embedding and vector storage.
- Milvus - Scalable vector database. Overkill for personal use, good for teams and large datasets.
- Qdrant - Vector database with filtering, payload storage, and GPU acceleration. Good for production workloads.
- Screenpipe - Local screen and audio capture with searchable history and MCP. Free for personal use; commercial needs a license.
- Sentence-Transformers - Compute embeddings locally. Pair with any vector DB above. 5000+ pre-trained models.
- Unstructured - Extract text from PDFs, Word docs, HTML, images. Pre-processing for RAG pipelines.
- Weaviate - Vector database with hybrid search (vectors + BM25). Built-in modules for text/image.
Orchestration & Agents
Coordinate multiple models and tools locally.
- AG2 - Community-driven fork of AutoGen. Active development, multi-agent orchestration.
- Agent Meeting Room - Flask web app for multi-agent group chat over Ollama-compatible models. Debate mode, SSE streaming, optional Obsidian-backed memory.
- AutoGen - Microsoft multi-agent framework. Note: AG2 is the community fork with active development.
- CrewAI - Multi-agent framework with role-based collaboration. Works with local models via Ollama.
- Dify - Visual workflow builder for LLM apps. Drag-and-drop RAG, agents, chatbots. Self-hostable with local model support.
- DSPy - Programming framework for LM pipelines. Optimizes prompts and weights automatically. From Stanford NLP.
- Instructor - Reliable structured outputs from any LLM via Pydantic models. Retries on validation failure. Works with local models via Ollama and LiteLLM.
- LangGraph - Stateful multi-actor orchestration. Build complex agent workflows as graphs.
- NeMo Guardrails - Programmable guardrails for LLM apps from NVIDIA. Input/output filters, fact-checking, dialogue policies. Wraps any local model.
- Open Interpreter - Natural language interface to your computer. Runs code locally, controls files and apps. Works with local models via LiteLLM.
- Orkas - Desktop multi-agent workspace that can use local OpenAI-compatible model endpoints.
- Outlines - Structured generation for LLMs. Force outputs to follow JSON schema, regex, or context-free grammars. Works with llama.cpp, vLLM, transformers.
- Semantic Kernel - Microsoft SDK for AI agent apps. .NET, Python, Java. Enterprise-focused.
- Tree Ring Memory - Local agent memory lifecycle with SQLite/FTS recall, audit, and forgetting.
Model Management
Download, convert, and organize your local model collection.
- GGML - Tensor library behind llama.cpp. Low-level but fast. Powers the GGUF ecosystem.
- Hugging Face Hub - Download models from Hugging Face. CLI and Python API. Where most open models are hosted.
- Ollama Model Library - Pre-quantized models ready to pull with one command. Easiest way to get started.
- Transformers - Load and run most open models. Foundation library for Hugging Face ecosystem.
Monitoring & Profiling
Know what your GPU is actually doing.
- Garak - LLM vulnerability scanner from NVIDIA. Probes for prompt injection, data leakage, jailbreaks, hallucination. Test your local model before shipping.
- gpu-memory-guard - Check available VRAM before loading GGUF models. Prevents OOM crashes with a single CLI command.
- GPUStack - Manage GPU clusters. Scheduling, monitoring, multi-node inference.
- Langfuse - Open-source LLM observability. Tracing, evals, and prompt management. Self-hostable.
- LangSmith - LLM tracing and evaluation platform. Cloud-based (not local), but useful for debugging local model pipelines.
- llm-judge-jury - Score instruction/response pairs with a jury of independent local judges and keep the consensus. Majority vote, arbiter on ties, reason clustering. For cleaning SFT datasets.
- nvidia-smi - Built-in NVIDIA tool.
watch -n 1 nvidia-smifor real-time GPU monitoring. - nvitop - Interactive NVIDIA GPU monitoring. Like htop for GPUs. Real-time process and memory tracking.
- Promptfoo - CLI and library for evaluating and red-teaming LLM apps. Run test cases against local models, compare prompts, find regressions.
- Triton Inference Server - NVIDIA production inference server with model analytics and dynamic batching.
UI & Interfaces
Chat with your local models through a proper interface.
- Arelis - Windows research assistant on Ollama with web search and its own browser. Asks before it writes or sends.
- Hollama - Minimal web UI for Ollama. Lightweight alternative to Open WebUI. Quick to set up.
- Jan - Desktop app for local AI. Clean UI, offline-first. Downloads and manages models for you.
- Msty - Desktop app connecting to local and remote models. Free tier available. Clean, native feel.
- Open WebUI - ChatGPT-like interface for Ollama and OpenAI-compatible APIs. RAG, web search, model switching built in. Active development.
- SillyTavern - Chat interface with character cards, group chats, extensions. Popular in the creative/RP community.
- Text Generation WebUI - Gradio UI with extensions. Supports many backends and model formats. Highly configurable.
Code Assistants
AI-powered coding without sending your code to the cloud.
- Aider - AI pair programming in your terminal. Edit files, run tests, commit. Works with local models via Ollama/LiteLLM.
- Atomic Agent - Terminal coding assistant running open-weight models on your machine via a llama.cpp fork. No API key needed. Developer preview, so expect breaking changes.
- Continue - VS Code / JetBrains AI pair programmer. Works with Ollama, llama.cpp, any local model.
- llm - CLI tool for interacting with LLMs. Plugins for local models. From the creator of Datasette.
- Tabby - Self-hosted code completion and chat. Runs on your GPU. GitHub Copilot alternative.
- vixl - Local-first desktop coding agent with your own API keys, Ollama and other OpenAI-compatible hosts, and MCP.
Voice & Audio
Speech recognition and synthesis on your hardware.
- akou - Call recorder for macOS with on-device transcription and speaker labels. Also an OpenAI-compatible transcription server in Docker.
- F5-TTS - High-quality text-to-speech with voice cloning from 15s reference audio. Diffusion-based.
- Faster-Whisper - 4x faster Whisper using CTranslate2. Same quality, less VRAM. Drop-in replacement.
- Kokoro TTS - Lightweight text-to-speech with natural-sounding voices. 82M parameters, runs on CPU. Apache 2.0 licensed.
- Live Translator - Mac app: live translated subtitles for system audio, TranslateGemma on MLX. Some languages use Apple's online speech recognition.
- Piper - Fast local text-to-speech. Runs on a Raspberry Pi. Many voice models available.
- Plainsay - Mac dictation with free Local Whisper or Parakeet, no account. MIT-licensed client; optional paid Cloud transcription uploads audio.
- Speaches - OpenAI-compatible speech API server. Drop-in local replacement for OpenAI TTS/STT.
- Whisper - OpenAI speech-to-text. Runs locally despite the name. Multiple model sizes from tiny to large-v3.
- WhisperKit - On-device speech recognition optimized for Apple Silicon. Swift framework.
- WhisperLive - Real-time streaming transcription. Low latency, works with microphone input.
- WhisperX - Whisper with word-level timestamps and speaker diarization. Good for transcription workflows.
Image & Video
Generate, edit, and analyze images and video locally.
- AI Segmentation - QGIS plugin that outlines buildings, trees and other objects in satellite and drone imagery. Local mode runs SAM 2.1 on your CPU; automatic mode is cloud.
- ComfyUI - Node-based workflow for Stable Diffusion, FLUX, SD3, SDXL. Visual pipeline editor.
- FLUX.1 - Image generation from Black Forest Labs. FLUX.1-dev runs locally on 12GB+ VRAM.
- Fooocus - Simplified image generation. Fewer options, faster results. Good for non-technical users.
- Forge - Optimized SD WebUI fork. Better VRAM efficiency and speed.
- InvokeAI - Creative engine for Stable Diffusion with professional UI. Node-based workflows.
- NanoAvatar - Talking avatars generated on-device on Android or NVIDIA GPUs. Code MIT, lip-sync weights CC BY-NC.
- Phosphene AI - Local video with sound, images and songs on Apple Silicon via MLX; needs 16 GB+.
- Stable Diffusion WebUI - Feature-rich Gradio interface for Stable Diffusion. Large extension ecosystem.
Privacy-First Tools
Interact with documents without data leaving your machine.
- AnythingLLM - All-in-one AI desktop app with local RAG and agent support. Connects to Ollama.
- light-ocr - Offline OCR library and CLI for Node.js and C++. PP-OCRv6 via ONNX Runtime; no Python runtime.
- LocalGPT - Chat with documents using local models. Inspired by PrivateGPT with more model options.
- Off Grid AI Desktop - Private local-first macOS app: chat, RAG, image generation, voice dictation, MCP connectors. Runs on-device. AGPL-3.0.
- Onyx - Search and chat over internal documents, formerly Danswer. Can use local models. Self-hosted.
- PrivateGPT - Chat with your documents 100% privately. RAG pipeline built in. No data leaves your machine.
- ThreadShelf - Local archive and semantic search for ChatGPT, Claude, Grok and other chat exports, with MCP and llama.cpp continuation.
Unified Gateways
Route requests across multiple model backends.
- LiteLLM - Call 100+ LLM APIs through one interface. Route between local and cloud. Load balancing, fallbacks, cost tracking.
- OpenRouter - Unified API for many providers. Cloud-based (not local), but useful as fallback when local GPU is busy.
Guides
Step-by-step guides for common tasks.
- Getting Started - Install Ollama, run your first model, add a chat UI, use the API.
- Choosing an Inference Engine - Decision tables, performance benchmarks, and model format compatibility across 10 engines.
- VRAM Requirements - GPU memory calculator, what fits on your card, popular model sizes, and tips for fitting larger models.
- Field notes: KV cache q8_0 vs q4_0 - Measured on an RTX 5090: q8_0 decoded 65% faster than q4_0 at long context.
- Field notes: MTP speculative decoding - +39% tokens per second on Qwen3.6-27B, and how to check that your GGUF has the heads.
- Field notes: MTP drafting, second look - A fine-tuned 27B went from 66 to 117 tokens/s with the head as a separate draft file, same scores on 200 tasks, and a q4 head beat f16.
- Field notes: llama.cpp build vs new models - A new model looped on an older build. What we checked and what we could not separate.
- Field notes: QLoRA on one 32 GB GPU - Five failures from a 27B run on an RTX 5090, with the fix for each.
- Field notes: teaching a 7B model two books - What stuck, what was forgotten and which fix failed when we trained a 7B model on two books.
- Field notes: when a VRAM check says "fits" and is wrong - A "CPU-only" vision model in llama.cpp still used the GPU, and summed free memory across two cards. What we check now.
Hardware Guides
Figure out what you need and what fits.
- AI Hardware Fit - Match models to GPUs and compare quantization-aware VRAM needs, speed estimates, and hardware costs for local inference.
- Can I Run This Model? - VRAM calculator. Enter your GPU, see what fits.
- GPU Benchmarks for LLM Inference - Measured tokens/sec for RTX 3090, 4090, A100, H100 and Apple M1 to M3. Numbers date from 2024, so nothing newer is covered.
- llama.cpp Apple Silicon Benchmarks - Same idea for M-series Macs, M1 onward.
- llama.cpp CUDA Benchmarks - Community llama-bench results on NVIDIA cards, RTX 50-series included. People post new hardware as they get it.
- LocalLLaMA Wiki - Community-maintained knowledge base for local AI hardware and software.
- RigBase - Measured tokens/sec for local LLMs on home rigs, each result linked to its source. CC BY 4.0 data.
Contributing
Contributions welcome. See CONTRIBUTING.md for guidelines.
Related Lists
- Awesome Generative AI - Generative AI tools and research.
- Awesome LLM - Broader LLM resources.
- Awesome Self-Hosted - Self-hosted software.
探索相关项目
加载中…