Work

What I’m building, how it works, and notes along the way.

InferRSBuilding an inference engine

The pieces of Llama inference in Rust: model loading, tensor operations, attention, and quantized matrix kernels. It runs small Llama models on a consumer CPU.

Inside InferRS

Inside InferRSThree layers of an inference engine: load the model file, compute tensors and attention, then sample the next token. A conceptual illustration of components in development. TOKEN GEMM GGUF

Read model weights from a memory-mapped GGUF file.

LedgerKVBuilding a distributed key-value store

A key-value store with a shared storage engine and two replication paths: Raft and leaderless quorum.

RAFTONE WRITE write 01 LEADER 02 03 04 05 Majority commit · 3 of 5 nodes

The elected leader orders writes in one log. A majority replicates the entry before it commits.