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
REQ["1472 requests"] --> NAIVE["naive hit<br/>100.0%"]
REQ --> TRUE["TRUE resident<br/>0.00% always"]
REQ --> DER["1 - evictions/requests"]
NAIVE --> BAD["counts disk reads<br/>as hits"]
TRUE --> BAD2["counter never reset"]
DER --> GOOD["agrees with the bytes"]
style REQ fill:#ECE8E0,stroke:#8C8477,color:#3B372F
style NAIVE fill:#F5E2DB,stroke:#B75845,color:#3B372F
style TRUE fill:#F5E2DB,stroke:#B75845,color:#3B372F
style DER fill:#E4ECF3,stroke:#5C7C9B,color:#3B372F
style BAD fill:#F4E7D3,stroke:#C07A42,color:#3B372F
style BAD2 fill:#F4E7D3,stroke:#C07A42,color:#3B372F
style GOOD fill:#E7ECDD,stroke:#6E9160,color:#3B372F