qmetrics.net

llm.asm

x86-64 assembly LLM inference and training stack

llm.asm screenshot

llm.asm implements Qwen3 inference, bare-metal OS boot, Mini-GPT training, hypervisor, and eBPF components in NASM assembly with no libc. Binaries are measured in tens of kilobytes.

Overview

llm.asm is a collection of low-level projects for running and training small language models entirely in x86-64 NASM assembly, without C, libc, or conventional runtime dependencies. Phases include a static Qwen3-0.6B inference binary, a bootable bare-metal OS that runs the same model, a Mini-GPT trainer with a Braille TUI, a Ring -1 hypervisor experiment, Linux eBPF LSM hooks, and a larger zero-application OS demo.

Weights are exported to a custom .asmbin format from Python tooling. Build flows include make targets, ISO builds for USB boot, and QEMU or KVM testing. CPU features such as AVX2, FMA, and F16C are required for main paths, with SSE2-only bare-metal builds available separately.

Benchmarks compare decode throughput against llama.cpp on CPU and report parity checks against PyTorch for inference and training steps. The work targets researchers and systems programmers exploring minimal ML stacks rather than a typical application server.

Quick-start commands run compiled binaries from the build directory after exporting model weights locally.

Key features

  • Qwen3-0.6B static ELF inference binary
  • Bootable bare-metal OS with LLM
  • Mini-GPT trainer with terminal UI
  • Ring -1 hypervisor and eBPF LSM phases
  • Custom .asmbin weight container
  • AVX2-focused CPU kernels
  • Verification harnesses vs PyTorch
  • USB-bootable hybrid BIOS and UEFI ISO path

Use cases

  • Experiment with tiny assembly LLM inference
  • Boot a diskless OS that runs a local model
  • Compare CPU decode speed to llama.cpp
  • Study from-scratch transformer training loops
  • Explore hypervisor and eBPF ML security demos

Tags

Similar software

TensorFlow

End-to-end machine learning platform and tooling ecosystem

TensorFlow is a machine learning platform with Python and C++ APIs, optional GPU packages, and companion libraries for data, training, deployment, and visualization.

  • Python and C++ model APIs
  • Keras high-level modeling interface
  • GPU and CPU pip distributions
C++Linux, macOS, Windows, AndroidDetails →
★ 201.7k⟳ todayApache-2.0

Ollama

Run open AI models locally or in the cloud

Ollama runs open language models such as Gemma, Qwen, DeepSeek and gpt-oss on macOS, Windows and Linux, locally or in the cloud. It offers a CLI, a REST API, and Python and JavaScript libraries.

  • Run open models locally or in the cloud
  • Command-line model chat and management
  • REST API for running and managing models
GoLinux, macOS, Windows, DockerDetails →
★ 189.1k⟳ todayMIT
Open Source Alternative to:Anthropic APILM Studio+1

llama.cpp

LLM inference engine in C/C++ for local and cloud hardware

llama.cpp runs large language models and multimodal models locally or in the cloud with minimal setup. It includes a CLI, an OpenAI-compatible server with a built-in chat app, and a C library API.

  • Local and cloud LLM inference on many hardware types
  • Command-line chat tool with vision model support
  • Built-in server with REST API and browser chat app
C++macOS, Windows, Android, DockerDetails →
★ 137.2k⟳ todayMIT
Open Source Alternative to:Anthropic APIChatGPT+5

vLLM

High-throughput, memory-efficient inference and serving engine for LLMs

vLLM is a library and server for running and serving large language models. It uses PagedAttention and continuous batching for throughput, offers an OpenAI-compatible API, and runs on many GPU, CPU and accelerator types.

  • PagedAttention memory management
  • Continuous batching and chunked prefill
  • Prefix caching
PythonDockerDetails →
★ 98.2k⟳ todayApache-2.0
Open Source Alternative to:Anthropic APIOpenAI API

Unsloth

Local desktop workspace to run and fine-tune AI models

Unsloth is a desktop application to chat with, fine-tune, and serve LLMs, diffusion, audio, and embedding models on your own hardware with optional agent integrations.

  • Desktop app for local inference
  • Fine-tuning with LoRA
  • OpenAI-compatible model server
PythonLinux, macOS, Windows, DockerDetails →
★ 80.8k⟳ todayApache-2.0

LlamaFactory

Unified efficient fine-tuning for many language and vision models

LlamaFactory bundles CLI and web workflows to fine-tune numerous LLMs and multimodal models with methods from pre-training and SFT through RLHF-style preference optimization and quantized adapters.

  • 100+ LLM and VLM model support
  • SFT, DPO, PPO, and related trainers
  • LoRA and multi-bit QLoRA tuning
PythonCLI, Web, DockerDetails →
★ 76.4k⟳ 3 days agoApache-2.0