[Discussion] A 5KB pure x86-64 assembly engine for Gemma-2B (FP16, 4.6 tok/s on CPU)
Summary
A personal project presents PULSAR-ASM, a minimal LLM inference engine written entirely in flat x86-64 assembly (FASM) that runs Gemma-2B in FP16 with a 5.2 KB binary footprint, zero C/C++ runtime dependencies, and ~4.5-4.7 tokens/s on an older quad-core CPU — framed as a first-principles exploration for bare-metal and microcontroller LLM inference.
Similar Articles
Coding is solved* (exclusions apply)
A humorously named Gemma 4 E2B fine-tune called CRAP (Compiler Replacement for Assembling Programs) that emits working x86_64 ELF binaries directly from text prompts, skipping compilers and assemblers, now at v1.1 with a browser-based WebGPU demo.
[Project] Gemma.c - Gemma 1/2/3 + multimodal inference in one C file (CPU only)
A single-file, dependency-free C inference engine for Gemma 1/2/3 (including multimodal variants) running on CPU with fp32/fp16/bf16 and INT8 (W8A8) weights, delivering ~72 tok/s decode for gemma-3-1b-it on a laptop CPU. The project supports @image and @longimage prompts, ships pre-exported INT8 models on Hugging Face, and lists a roadmap including Gemma 4, speculative decoding, and an HTTP server.
Running Gemma 4 26B at 5 tokens/SEC on a 13-year-old Xeon with no GPU
A developer successfully runs Google's Gemma 4 26B mixture-of-experts model at about 5 tokens per second on a 13-year-old dual Xeon server without a GPU, using a modified version of ik_llama.cpp that works without AVX2 instructions.
You don't need a GPU to run gemma-4-26B-A4B
The author demonstrates that the Gemma-4-26B-A4B model runs efficiently on a CPU-only system using Koboldcpp, achieving 7 tokens per second on an old desktop, suggesting that powerful GPUs may not be necessary for local LLM inference.
I implemented a modern LLM in 700 lines of C
A developer created a minimal 700-line C implementation for running the Gemma 4 E2B LLM on CPUs, outperforming llama.cpp in speed.