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.

600 B
Raw Blame
flowchart LR
    TB["trunk.bin"] --> Q{"layer L<br/>pinned?"}
    Q -->|"yes"| MEM["already in RAM<br/>0 bytes read"]
    Q -->|"no"| RING["ring slot<br/>one pread"]
    MEM --> BIND["fix pointers<br/>widen norms"]
    RING --> BIND
    BIND --> RUN["run layer L"]
    style TB fill:#ECE8E0,stroke:#8C8477,color:#3B372F
    style Q fill:#EAE4F1,stroke:#7E6E9C,color:#3B372F
    style MEM fill:#E7ECDD,stroke:#6E9160,color:#3B372F
    style RING fill:#F5E2DB,stroke:#B75845,color:#3B372F
    style BIND fill:#F2E9D4,stroke:#C0913E,color:#3B372F
    style RUN fill:#DDEBE7,stroke:#4E8E86,color:#3B372F