eminsk/awesome-baremetal-ai

Curated list and benchmark leaderboard of ultra-lightweight, zero-dependency C/C++/Rust/Assembly engines for local LLMs, edge inference, vector search, and AI agents (2026-2027)

1

stars

3

commits

Sep 13, 2026

updated

agents
ai
ai-agents
assembly
awesome
awesome-list
bare-metal
c99
edge-ai
jit
llm
machine-learning
rag
simd
vector-search

README

⚑ Awesome Bare-Metal AI (2026–2027)

Awesome License: CC0-1.0 PRs Welcome Tracking: 2026-2027

A curated leaderboard, benchmark index, and definitive guide to ultra-lightweight, zero-dependency, bare-metal AI engines written in pure C, C++, Rust, Zig, and Assembly for local LLMs, edge inference, vector search, and autonomous agents.


🎯 The Bare-Metal AI Manifesto

In 2024–2025, deploying AI often meant 2GB Docker images, multi-gigabyte Python runtimes, and complex distributed clusters.

In 2026–2027, the paradigm has shifted:

  1. Zero-Bloat Architecture: Production edge AI demands sub-millisecond execution, sub-100MB memory footprints, and single-binary or zero-dependency libraries.
  2. Hardware Direct Access: Maximum performance from modern CPUs using unrolled SIMD (AVX2, AVX-512, ARM NEON) and dedicated tensor registers without heavy BLAS overhead.
  3. Local & Autonomous: AI agents require instant local episodic memory, embedded vector indexing, and token-by-token CPU inference without cloud network latency or API bills.

πŸ“Š 2026–2027 Benchmark & Footprint Leaderboard

CategoryProjectLanguageBinary FootprintLatency / ThroughputZero External Deps?Key Hardware Target
Vector SearchNanoVectorPure C99~120 KB96 Β΅s (2.85M vecs/s)Yes (0 deps)AVX2+FMA, ARM NEON, FASM
Vector SearchUSearchC++11~800 KB~120 Β΅s (ANN HNSW)Yes (Header-only)AVX-512, NEON, SVE
Vector SearchFAISSC++ / Python~25 MB+Variable (Large batch)No (BLAS / OpenMP)AVX2, CUDA
Vector Searchsqlite-vssC / C++~2.5 MB~350 Β΅sDepends on SQLiteCPU
GEMM / TensorsNanoGEMMPure C99~100 KBSub-microsecondYes (0 deps)AVX2, ARM NEON, FASM
GEMM / TensorsBLISC99~5 MBHigh (Large matrix)YesAVX-512, AMX, NEON
LLM Inferencellama.cppC / C++~15 MBFast (CPU/GPU GGUF)YesAVX2, Metal, CUDA, Vulkan
1-Bit LLMbitnet.cppC++~10 MBUltra-low wattageYesAVX2, AVX-512, NEON
Screen CaptureScreenCapture ProFASM / C / Py~190 KBZero-memory pipeYesWin32 x64, WASAPI, SIMD
Desktop MemoryNanoRecallC99 / Py<200 KB0.28 ms (Exact search)Yes (0 cloud)AVX2, Win32, WinRT OCR
Agent JIT / RuntimesAgentJITPython / AST<50 KB0.08 ms (185,000x faster)Yes (0 deps)CPU, Free-Threaded (No-GIL)
Speech / STTwhisper.cppC / C++~8 MBSub-realtime on CPUYesAVX2, Metal, NEON

πŸ” Table of Contents


🧠 Vector Search & Episodic Agent Memory

Ultra-compact, low-latency vector indexers engineered for local RAG and long-term memory in autonomous agents:

  • NanoVector β€” Minimalist bare-metal vector search and episodic memory engine in ~120 KB of pure C99 with AVX2/FMA, ARM NEON, and FASM x64 optimizations. Ingests 2.85M vecs/sec, achieves 96 Β΅s search latency on standard CPUs, single-file .nvec binary persistence, in-kernel metadata filtering ($eq, $in, etc.), and 1-line drop-in LangChain integration with zero external dependencies.
  • NanoRecall β€” 100% private, zero-cloud desktop memory and screen search engine in <200 KB. Open-source alternative to Microsoft Windows Recall running on standard CPUs with zero NPU or cloud required. Powered by NanoVector AVX2 engine.
  • USearch β€” Single-header HNSW and Cosine distance search library in C++11, optimized for AVX-512 and ARM SVE.
  • FAISS β€” Facebook AI Research's foundational library for dense vector clustering and approximate nearest neighbor search at massive multi-million scale.
  • sqlite-vss β€” SQLite extension for vector search based on Faiss, enabling SQL-driven semantic retrieval.
  • Annoy β€” Classic C++ library with Python bindings for approximate nearest neighbors with memory-mapped read-only index files.

⚑ Matrix Math & GEMM Microkernels

Bare-metal General Matrix Multiplication (GEMM) engines that eliminate BLAS dispatch overhead for latency-critical small-to-medium tensors:

  • NanoGEMM β€” High-performance ~100KB register-tiled GEMM microkernel in pure C and hand-crafted AVX2/FMA & ARM NEON assembly. Bypasses OpenBLAS/MKL function-call dispatch barriers, achieving up to 2.8x speedups over NumPy on small-to-medium matrices (16x16 to 128x128) essential for real-time CPU token inference and Kalman tracking.
  • BLIS β€” Modular, high-performance dense linear algebra framework designed as a modern C99 alternative to conventional BLAS.
  • OpenBLAS β€” Widely adopted, optimized open-source BLAS library with extensive architecture-specific assembly kernels.

⚑ AI Agent JIT & Workflow Compilers

Just-in-time compilers that trace dynamic, stochastic multi-step AI agent trajectories and compile them into deterministic, sub-millisecond Python code with zero token consumption:

  • AgentJIT β€” Just-In-Time Compiler for AI Agent Trajectories. Compiles flaky, 30-second multi-step LLM workflows into 0.08 ms deterministic Python code with zero token cost (185,000x speedup on warm paths). Features speculative input guards, automatic bailout / de-optimization runtime, and native support for free-threaded Python 3.13t/3.14t (No-GIL PEP 703) with zero external dependencies (pip install agentjit).

πŸ€– Local LLM & SLM Inference Engines

C/C++ runtimes capable of serving Large and Small Language Models directly on consumer laptops, edge gateways, and IoT devices without cloud APIs:

  • llama.cpp β€” The gold standard for CPU and mixed CPU/GPU LLM inference in pure C/C++ with support for GGUF quantization formats (Q4, Q8, K-quants).
  • Ollama β€” Seamless CLI and local daemon for managing, bundling, and running GGUF models on macOS, Windows, and Linux.
  • mamba.c / rwkv.cpp β€” Ultra-fast linear attention and State Space Model (SSM) inference in pure C/C++ offering constant memory consumption over arbitrary context lengths.
  • vLLM β€” High-throughput, memory-efficient serving engine featuring PagedAttention for production LLM deployments.

🧊 1-Bit & Ternary Quantization Engines

Next-generation sub-byte inference architectures designed for extreme wattage efficiency:

  • bitnet.cpp β€” Official Microsoft inference framework for 1-bit LLMs (e.g. BitNet b1.58), featuring optimized native SIMD kernels for ternary (-1, 0, +1) weight matrix multiplication on x86 and ARM.
  • AutoAWQ β€” Activation-aware Weight Quantization for 4-bit transformer execution without accuracy loss.

πŸŽ™οΈ Edge Speech, Audio & Vision

Native multimedia and telemetry suites built for real-time edge processing:

  • whisper.cpp β€” High-performance port of OpenAI's Whisper automatic speech recognition model in pure C/C++ with zero external dependencies.
  • ScreenCapture Pro β€” High-performance desktop screen recording and screenshot suite engineered in Win32 x64 FASM Assembly and Python. Features zero-memory direct-to-disk streaming, WASAPI loopback audio, two-pass animated GIF export, and real-time mouse click ripple HUD.
  • ncnn β€” Tencent's high-performance neural network inference computing framework optimized specifically for mobile and embedded CPU/GPU platforms.

πŸ“ Hardware Acceleration Standards

Instruction SetTypical Vector WidthKey CapabilityRepresentative Platforms
x86-64 AVX2 + FMA256-bit (8 Γ— float32)Fused multiply-add, unrolled SIMDModern Intel Core / AMD Ryzen CPUs
x86-64 AVX-512512-bit (16 Γ— float32)Masked vector ops, BF16/VNNI accelerationIntel Xeon / AMD Zen 4/5
ARM NEON128-bit (4 Γ— float32)Universal mobile and Apple Silicon vector mathApple M-series, Cortex-A7x, Raspberry Pi 4/5
ARM SVE / SVE2Scalable (128–2048-bit)Vector length agnostic HPC computeAWS Graviton3/4, modern Neoverse cores
RISC-V Vector (RVV)VariableOpen-standard vector extensionEdge AI microcontrollers, Kendryte K230

🀝 Contributing

Contributions from authors and maintainers are enthusiastically welcomed!

  1. Please review CONTRIBUTING.md for inclusion criteria.
  2. Projects must prioritize minimalism, zero/low dependencies, and verifiable native performance.
  3. Submit a Pull Request with a concise description, architecture details, and benchmark metrics.

πŸ“œ License

To the extent possible under law, this work is dedicated to the public domain under the Creative Commons CC0 1.0 Universal License.

Contributors

eminsk

3 commits

eminsk/awesome-baremetal-ai

Curated list and benchmark leaderboard of ultra-lightweight, zero-dependency C/C++/Rust/Assembly engines for local LLMs, edge inference, vector search, and AI agents (2026-2027)

1

stars

3

commits

Sep 13, 2026

updated

agents
ai
ai-agents
assembly
awesome
awesome-list
bare-metal
c99
edge-ai
jit
llm
machine-learning
rag
simd
vector-search

README

⚑ Awesome Bare-Metal AI (2026–2027)

Awesome License: CC0-1.0 PRs Welcome Tracking: 2026-2027

A curated leaderboard, benchmark index, and definitive guide to ultra-lightweight, zero-dependency, bare-metal AI engines written in pure C, C++, Rust, Zig, and Assembly for local LLMs, edge inference, vector search, and autonomous agents.


🎯 The Bare-Metal AI Manifesto

In 2024–2025, deploying AI often meant 2GB Docker images, multi-gigabyte Python runtimes, and complex distributed clusters.

In 2026–2027, the paradigm has shifted:

  1. Zero-Bloat Architecture: Production edge AI demands sub-millisecond execution, sub-100MB memory footprints, and single-binary or zero-dependency libraries.
  2. Hardware Direct Access: Maximum performance from modern CPUs using unrolled SIMD (AVX2, AVX-512, ARM NEON) and dedicated tensor registers without heavy BLAS overhead.
  3. Local & Autonomous: AI agents require instant local episodic memory, embedded vector indexing, and token-by-token CPU inference without cloud network latency or API bills.

πŸ“Š 2026–2027 Benchmark & Footprint Leaderboard

CategoryProjectLanguageBinary FootprintLatency / ThroughputZero External Deps?Key Hardware Target
Vector SearchNanoVectorPure C99~120 KB96 Β΅s (2.85M vecs/s)Yes (0 deps)AVX2+FMA, ARM NEON, FASM
Vector SearchUSearchC++11~800 KB~120 Β΅s (ANN HNSW)Yes (Header-only)AVX-512, NEON, SVE
Vector SearchFAISSC++ / Python~25 MB+Variable (Large batch)No (BLAS / OpenMP)AVX2, CUDA
Vector Searchsqlite-vssC / C++~2.5 MB~350 Β΅sDepends on SQLiteCPU
GEMM / TensorsNanoGEMMPure C99~100 KBSub-microsecondYes (0 deps)AVX2, ARM NEON, FASM
GEMM / TensorsBLISC99~5 MBHigh (Large matrix)YesAVX-512, AMX, NEON
LLM Inferencellama.cppC / C++~15 MBFast (CPU/GPU GGUF)YesAVX2, Metal, CUDA, Vulkan
1-Bit LLMbitnet.cppC++~10 MBUltra-low wattageYesAVX2, AVX-512, NEON
Screen CaptureScreenCapture ProFASM / C / Py~190 KBZero-memory pipeYesWin32 x64, WASAPI, SIMD
Desktop MemoryNanoRecallC99 / Py<200 KB0.28 ms (Exact search)Yes (0 cloud)AVX2, Win32, WinRT OCR
Agent JIT / RuntimesAgentJITPython / AST<50 KB0.08 ms (185,000x faster)Yes (0 deps)CPU, Free-Threaded (No-GIL)
Speech / STTwhisper.cppC / C++~8 MBSub-realtime on CPUYesAVX2, Metal, NEON

πŸ” Table of Contents


🧠 Vector Search & Episodic Agent Memory

Ultra-compact, low-latency vector indexers engineered for local RAG and long-term memory in autonomous agents:

  • NanoVector β€” Minimalist bare-metal vector search and episodic memory engine in ~120 KB of pure C99 with AVX2/FMA, ARM NEON, and FASM x64 optimizations. Ingests 2.85M vecs/sec, achieves 96 Β΅s search latency on standard CPUs, single-file .nvec binary persistence, in-kernel metadata filtering ($eq, $in, etc.), and 1-line drop-in LangChain integration with zero external dependencies.
  • NanoRecall β€” 100% private, zero-cloud desktop memory and screen search engine in <200 KB. Open-source alternative to Microsoft Windows Recall running on standard CPUs with zero NPU or cloud required. Powered by NanoVector AVX2 engine.
  • USearch β€” Single-header HNSW and Cosine distance search library in C++11, optimized for AVX-512 and ARM SVE.
  • FAISS β€” Facebook AI Research's foundational library for dense vector clustering and approximate nearest neighbor search at massive multi-million scale.
  • sqlite-vss β€” SQLite extension for vector search based on Faiss, enabling SQL-driven semantic retrieval.
  • Annoy β€” Classic C++ library with Python bindings for approximate nearest neighbors with memory-mapped read-only index files.

⚑ Matrix Math & GEMM Microkernels

Bare-metal General Matrix Multiplication (GEMM) engines that eliminate BLAS dispatch overhead for latency-critical small-to-medium tensors:

  • NanoGEMM β€” High-performance ~100KB register-tiled GEMM microkernel in pure C and hand-crafted AVX2/FMA & ARM NEON assembly. Bypasses OpenBLAS/MKL function-call dispatch barriers, achieving up to 2.8x speedups over NumPy on small-to-medium matrices (16x16 to 128x128) essential for real-time CPU token inference and Kalman tracking.
  • BLIS β€” Modular, high-performance dense linear algebra framework designed as a modern C99 alternative to conventional BLAS.
  • OpenBLAS β€” Widely adopted, optimized open-source BLAS library with extensive architecture-specific assembly kernels.

⚑ AI Agent JIT & Workflow Compilers

Just-in-time compilers that trace dynamic, stochastic multi-step AI agent trajectories and compile them into deterministic, sub-millisecond Python code with zero token consumption:

  • AgentJIT β€” Just-In-Time Compiler for AI Agent Trajectories. Compiles flaky, 30-second multi-step LLM workflows into 0.08 ms deterministic Python code with zero token cost (185,000x speedup on warm paths). Features speculative input guards, automatic bailout / de-optimization runtime, and native support for free-threaded Python 3.13t/3.14t (No-GIL PEP 703) with zero external dependencies (pip install agentjit).

πŸ€– Local LLM & SLM Inference Engines

C/C++ runtimes capable of serving Large and Small Language Models directly on consumer laptops, edge gateways, and IoT devices without cloud APIs:

  • llama.cpp β€” The gold standard for CPU and mixed CPU/GPU LLM inference in pure C/C++ with support for GGUF quantization formats (Q4, Q8, K-quants).
  • Ollama β€” Seamless CLI and local daemon for managing, bundling, and running GGUF models on macOS, Windows, and Linux.
  • mamba.c / rwkv.cpp β€” Ultra-fast linear attention and State Space Model (SSM) inference in pure C/C++ offering constant memory consumption over arbitrary context lengths.
  • vLLM β€” High-throughput, memory-efficient serving engine featuring PagedAttention for production LLM deployments.

🧊 1-Bit & Ternary Quantization Engines

Next-generation sub-byte inference architectures designed for extreme wattage efficiency:

  • bitnet.cpp β€” Official Microsoft inference framework for 1-bit LLMs (e.g. BitNet b1.58), featuring optimized native SIMD kernels for ternary (-1, 0, +1) weight matrix multiplication on x86 and ARM.
  • AutoAWQ β€” Activation-aware Weight Quantization for 4-bit transformer execution without accuracy loss.

πŸŽ™οΈ Edge Speech, Audio & Vision

Native multimedia and telemetry suites built for real-time edge processing:

  • whisper.cpp β€” High-performance port of OpenAI's Whisper automatic speech recognition model in pure C/C++ with zero external dependencies.
  • ScreenCapture Pro β€” High-performance desktop screen recording and screenshot suite engineered in Win32 x64 FASM Assembly and Python. Features zero-memory direct-to-disk streaming, WASAPI loopback audio, two-pass animated GIF export, and real-time mouse click ripple HUD.
  • ncnn β€” Tencent's high-performance neural network inference computing framework optimized specifically for mobile and embedded CPU/GPU platforms.

πŸ“ Hardware Acceleration Standards

Instruction SetTypical Vector WidthKey CapabilityRepresentative Platforms
x86-64 AVX2 + FMA256-bit (8 Γ— float32)Fused multiply-add, unrolled SIMDModern Intel Core / AMD Ryzen CPUs
x86-64 AVX-512512-bit (16 Γ— float32)Masked vector ops, BF16/VNNI accelerationIntel Xeon / AMD Zen 4/5
ARM NEON128-bit (4 Γ— float32)Universal mobile and Apple Silicon vector mathApple M-series, Cortex-A7x, Raspberry Pi 4/5
ARM SVE / SVE2Scalable (128–2048-bit)Vector length agnostic HPC computeAWS Graviton3/4, modern Neoverse cores
RISC-V Vector (RVV)VariableOpen-standard vector extensionEdge AI microcontrollers, Kendryte K230

🀝 Contributing

Contributions from authors and maintainers are enthusiastically welcomed!

  1. Please review CONTRIBUTING.md for inclusion criteria.
  2. Projects must prioritize minimalism, zero/low dependencies, and verifiable native performance.
  3. Submit a Pull Request with a concise description, architecture details, and benchmark metrics.

πŸ“œ License

To the extent possible under law, this work is dedicated to the public domain under the Creative Commons CC0 1.0 Universal License.

Contributors

eminsk

3 commits