Training an LLM in Swift, Part 1: Taking matrix mult from Gflop/s to Tflop/s
↗A technical, data-driven walk-through optimizing a handwritten matrix multiply for Swift-based LLM training on Apple Silicon, showing stepwise gains from plain C parity to AMX and tiled Metal with multi-threading, culminating in a claimed 1.1+ TFLOP/s throughput and ~11 tokens/s on TinyShakespeare.
May 11, 20261%