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.

602 B
Raw Blame
flowchart LR
    S["96 shards<br/>1.56 TB"] --> H["read 8-byte length<br/>then JSON header"]
    H --> IDX["FNV-1a index<br/>497,220 tensors"]
    IDX --> Q{"need this<br/>tensor?"}
    Q -->|"yes"| P["pread exact bytes<br/>O_DIRECT"]
    Q -->|"no"| SKIP["never touched"]
    style S fill:#ECE8E0,stroke:#8C8477,color:#3B372F
    style H fill:#E4ECF3,stroke:#5C7C9B,color:#3B372F
    style IDX fill:#F2E9D4,stroke:#C0913E,color:#3B372F
    style Q fill:#EAE4F1,stroke:#7E6E9C,color:#3B372F
    style P fill:#E7ECDD,stroke:#6E9160,color:#3B372F
    style SKIP fill:#DDEBE7,stroke:#4E8E86,color:#3B372F