Skip to content

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.

719 B
Raw Blame
flowchart LR
    X["token in<br/>q, k, v projected"] --> CV["ShortConv k=4<br/>fused SiLU"]
    CV --> N["L2Norm<br/>q and k only"]
    N --> ST["decay, then<br/>write the delta"]
    ST --> RD["read the<br/>UPDATED state"]
    RD --> G["RMSNorm<br/>then gate"]
    ST -.->|"carried forward"| S["one state per layer<br/>626 MB in total"]
    style X fill:#E4ECF3,stroke:#5C7C9B,color:#3B372F
    style CV fill:#F2E9D4,stroke:#C0913E,color:#3B372F
    style N fill:#F4E7D3,stroke:#C07A42,color:#3B372F
    style ST fill:#EAE4F1,stroke:#7E6E9C,color:#3B372F
    style RD fill:#E7ECDD,stroke:#6E9160,color:#3B372F
    style G fill:#DDEBE7,stroke:#4E8E86,color:#3B372F
    style S fill:#ECE8E0,stroke:#8C8477,color:#3B372F