Llambda.lisp an LLM Engine in Pure Common Lisp A developer released llambda.lisp, a pure Common Lisp inference engine for running quantized large language models from .gguf files without external C or C++ libraries. The engine uses AVX2/FMA acceleration and multi-threading to achieve competitive performance, challenging the assumption that C++ is required for bare-metal AI inference. A Bare-Metal, Multi-Threaded, AVX2-Accelerated LLM Inference Engine in Pure Common Lisp. llambda.lisp is an independent, zero-dependency beyond sb-simd and lparallel inference engine for running quantized Large Language Models directly from .gguf files. It does not wrap llama.cpp . It does not call out to external C or C++ libraries. It reads the raw weights, unpacks the 4-bit/6-bit nibbles, constructs the transformer architecture, and executes the forward pass natively within SBCL. Because the industry has succumbed to the dogma that C++ is the only path to bare-metal AI inference. llambda.lisp exists to prove that properly architected, aggressively typed, and hardware-aware Common Lisp can achieve C-level throughput without sacrificing the interactive, REPL-driven elegance of Lisp. Native GGUF Parsing: Directly ingests and parses Q4 K M and Q6 K quantized tensors from disk. AVX2 / FMA Acceleration: The core GEMV Matrix-Vector Multiplication bottleneck is pulverized using SBCL's sb-simd . Unrolled f32.8 vectors, unaligned loads VMOVUPS , and packed Fused Multiply-Add VFMADD213PS instructions are emitted natively by the Lisp compiler. Multi-Threaded Execution: The outer loop of the GEMV processing is fully parallelized via lparallel , saturating modern multi-core memory buses e.g., 24-core Ryzen processors with isolated, lock-free writes. Zero-Drift KV Cache: Safe, shared-KV reuse and perfectly aligned RoPE scaling. Exact-logit replay tests against fresh un-cached generations yield a max diff of 0.0 . Advanced Sampling: Built-in Top-K, Top-P Nucleus , and repetition penalties executing in-place with zero heap allocation in the hot path. Gemma4 Support: Full support for Gemma4 architectures, including BPE tokenization, proper instruction-tuning chat templates