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
E["EMPTY"] --> I["INFLIGHT<br/>reserved, not readable"]
I --> RDY["ready<br/>holds expert e"]
RDY -->|"evicted"| E
I -.->|"read failed"| E
RDY --> HIT["hit: reuse"]
style E fill:#ECE8E0,stroke:#8C8477,color:#3B372F
style I fill:#F2E9D4,stroke:#C0913E,color:#3B372F
style RDY fill:#E7ECDD,stroke:#6E9160,color:#3B372F
style HIT fill:#DDEBE7,stroke:#4E8E86,color:#3B372F