HuggingArch: a "compiler" that computes FLOPs, memory and KV cache for any HF model without a GPU

TheZachMueller · x · 2026-11-09

Developer thuHanShen spent half a year of spare time building HuggingArch, a "compiler" that doesn't run tensors but analytically computes FLOPs, memory traffic and KV cache size for any HuggingFace model — no GPU, no weights, no runtime.

The workflow: an agent writes the model spec (YAML), validated against safetensors headers and modeling source, then sympy evaluates it, yielding theoretical performance across GPUs and parallel configs (TP/PP/EP/DP, precision, batch×context) in one click.

The project includes 90+ hardware primitives and 150+ component specs, with views like Gallery, Inspector, Inference Planner and Kernel Bench; kernel data is calibrated against measured FA3/FlashInfer/DeepGEMM. Open source, with a web app and blog post.

Original post →

More from coding & agent

coding & agent channel →