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.

582 B
Raw Blame
flowchart LR
    SRC["6 C files<br/>+ 2 headers"] --> CC["cc -O3 -fopenmp<br/>-ffp-contract=off"]
    CC --> BIN["bin/k3<br/>179,736 bytes"]
    CC --> T["7 test binaries"]
    T --> G["22 passed<br/>0 failed"]
    BIN --> RUN["runs a 1.56 TB model"]
    style SRC fill:#ECE8E0,stroke:#8C8477,color:#3B372F
    style CC fill:#E4ECF3,stroke:#5C7C9B,color:#3B372F
    style BIN fill:#E7ECDD,stroke:#6E9160,color:#3B372F
    style T fill:#F2E9D4,stroke:#C0913E,color:#3B372F
    style G fill:#DDEBE7,stroke:#4E8E86,color:#3B372F
    style RUN fill:#EAE4F1,stroke:#7E6E9C,color:#3B372F