You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start with the project README for what HuggingArch does and how
to run it, and the blog post
(中文) for the long-form motivation
and a walkthrough with screenshots. design.md is the technical
overview; every other document goes deeper into one subsystem.
The complete technical walkthrough: the spec system (primitives, components, model specs), the evaluation core, information sources, validation, quantization, the agentic spec-generation pipeline, the user-facing pages, the spec authoring contract, and the compiler view of the system.
The core behind every number: SpecIRTree → Program → Analysis, the kinds of analysis layers, first-class shape propagation, why bytes are derived, and per-rank evaluation.
How one quantity travels from the walk to the page: one walk over symbolic workload counts, conditions and cases instead of decisions, reading a point, and cell reuse.
Why the numbers can be trusted. Part I: the spec publish gates (the checkpoint byte join, KV and window claims, ablation levers, diagnostics, the archived guard-ablation evidence). Part II: the A–E self-checks on inference results (axioms, conservation, perturbation invariants, type contracts, dual-path cross-checks).
Why structure is dtype-agnostic and storage is not: per-role quant context, schemes as data, per-tensor bytes, deployment precision profiles, and activation casts as a graph rewrite.
The attention variants (MHA/GQA, MLA, SWA, DSA, CSA/HCA, linear/SSM) and the three cost axes that distinguish them: compute, KV storage law, KV read cardinality.
How a MoE module is modelled: the experts are the outermost axis of every tensor of a bank, where each consumer reads the expert count, the mean rows per expert and the routing spread, and the activation peak.
Prefill and decode on the roofline: per-op compute, memory and communication time, why speed-of-light is a per-op sum, pipeline stages, fusion, capacity, and the headline TTFT / TPOT / throughput numbers.
How one model splits across GPUs: the parallel configuration, each weight's declared placement, sharding as a propagated state with injected communication nodes, and per-rank cost. Ends with the layout terminology table.
How a sweep prices many points off few walks: cells and points, substitution, cross-card re-pricing, one measurement lookup per sweep, the all-or-nothing measured total, caching, and baking at deploy.
Measured kernel calibration end to end: the kernel_bench harness, a measured row and its physical key, the Kernel Bench lake and service, private and shared rows, and how estimates look measurements up.