Skip to content

Archives

All the articles I've archived.

2026 6
November 1
  • Adding Metal to my Rust LLM engine

    I added an Apple GPU backend to rvllm with hand written Metal kernels, matmuls included. This is how Metal works for someone who has never used a GPU API, and what it did to the numbers on an M5.

October 1
  • Adding CUDA to my Rust LLM engine

    I added a CUDA backend to rvllm with hand written kernels, cuBLAS for matmuls, and a test that checks every step against the CPU path.

September 2
  • Optimization of the Rust LLM engine

    rvllm generated 0.9 tokens per second from a 360M model. Profiling it showed almost all the time went to memcpy, not math.

  • rvllm - A Small LLM Inference Engine in Rust

    A basic local LLM inference engine written from scratch in Rust, running SmolLM2 on CPU with continuous batching and paged KV cache, and where CUDA and Metal support fit in next.

July 1
June 1
  • Building a KV Cache Block Scheduler in Rust

    A from-scratch PagedAttention-style KV cache block manager in Rust - reference counting, prefix caching via radix trie, LRU eviction, and copy-on-write for beam search.

2025 6
October 2
September 1
June 1
January 2
2024 1
November 1