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.

569 B
Raw Blame
flowchart LR
    X["token"] --> C["latent<br/>512 + 64 = 576"]
    C --> CACHE["this is what we cache<br/>2.37 MB per position"]
    C --> K["rebuild k and v<br/>on use"]
    K --> A["96 heads<br/>width 192"]
    A --> G["gate then o_proj"]
    style X fill:#E4ECF3,stroke:#5C7C9B,color:#3B372F
    style C fill:#EAE4F1,stroke:#7E6E9C,color:#3B372F
    style CACHE fill:#E7ECDD,stroke:#6E9160,color:#3B372F
    style K fill:#F2E9D4,stroke:#C0913E,color:#3B372F
    style A fill:#F4E7D3,stroke:#C07A42,color:#3B372F
    style G fill:#DDEBE7,stroke:#4E8E86,color:#3B372F