A 2.78-trillion-parameter Kimi K3 running inference on a single CPU in 8.24 GB of RAM. Portable C99: no BLAS, no framework, no GPU.
C avx2c99cpu-inferencedeep-learningfrom-scratchinference-enginekimi-k3linear-attentionllmllm-inferencemachine-learningmemory-efficientmixture-of-expertsmoemxfp4quantizationsimdsystems-programmingtransformerzero-dependencies
flowchart LR
SAME["same binary<br/>same minute"] --> R1["14.78 s/tok"]
SAME --> R2["14.67 s/tok"]
SAME --> R3["20.14 s/tok"]
R3 --> SP["spread 33.1%"]
SP --> RULE["under 33% is<br/>not an effect"]
style SAME fill:#ECE8E0,stroke:#8C8477,color:#3B372F
style R1 fill:#E4ECF3,stroke:#5C7C9B,color:#3B372F
style R2 fill:#E4ECF3,stroke:#5C7C9B,color:#3B372F
style R3 fill:#F5E2DB,stroke:#B75845,color:#3B372F
style SP fill:#F2E9D4,stroke:#C0913E,color:#3B372F
style RULE fill:#E7ECDD,stroke:#6E9160,color:#3B372F