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.

608 B
Raw Blame
flowchart LR
    BY["one byte<br/>two nibbles"] --> LO["low nibble<br/>EVEN element"]
    BY --> HI["high nibble<br/>ODD element"]
    LO --> LUT["E2M1 lookup<br/>16 values"]
    HI --> LUT
    SC["E8M0 byte<br/>1 per 32 weights"] --> MUL["value x 2^(s-127)"]
    LUT --> MUL
    style BY fill:#ECE8E0,stroke:#8C8477,color:#3B372F
    style LO fill:#E4ECF3,stroke:#5C7C9B,color:#3B372F
    style HI fill:#F2E9D4,stroke:#C0913E,color:#3B372F
    style LUT fill:#EAE4F1,stroke:#7E6E9C,color:#3B372F
    style SC fill:#F4E7D3,stroke:#C07A42,color:#3B372F
    style MUL fill:#E7ECDD,stroke:#6E9160,color:#3B372F