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
A["run A<br/>31.71 s/token"] --> DA["fast NVMe<br/>3,684 MB/s"]
B["run B<br/>70.62 s/token"] --> DB["slow volume<br/>733 MB/s"]
DA --> Q{"is the gap<br/>the code?"}
DB --> Q
Q -->|"no"| DISK["it is the disk"]
style A fill:#E4ECF3,stroke:#5C7C9B,color:#3B372F
style B fill:#F5E2DB,stroke:#B75845,color:#3B372F
style DA fill:#E7ECDD,stroke:#6E9160,color:#3B372F
style DB fill:#F4E7D3,stroke:#C07A42,color:#3B372F
style Q fill:#EAE4F1,stroke:#7E6E9C,color:#3B372F
style DISK fill:#F2E9D4,stroke:#C0913E,color:#3B372F