Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

kimi-k3-in-c runs Kimi K3 inference on one CPU with portable C99

AI summary

The open-source project kimi-k3-in-c implements Kimi K3 inference in portable C99 without BLAS, a framework or a GPU path, according to its documentation. Its author reports that the 2.78-trillion-parameter model produced the same byte-identical output while running with 8 GB, 32 GB, 64 GB or 128 GB-plus of RAM. Measured performance ranged from 26.5 seconds per token with 8 GB to 5.6 seconds with 128 GB-plus, when the model fit entirely in memory. All figures came from one dual-socket AMD EPYC 7763 workstation with 124 cores and 228 GB of RAM. The project reports a 1.56 TB checkpoint and 8.24 GB peak RSS for the 8 GB configuration. Its macOS, Windows and NEON ports, chat mode, ultra preset, faster MXFP4 kernels and parser fixes were contributed by other participants.

In-depth insight

The project documents a CPU-only approach that streams most of Kimi K3’s routed experts from storage rather than keeping them in memory. It reports byte-identical output across memory configurations while using no GPU path, BLAS library or inference framework.

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.

link

https://medium.com/@fareedkhandev/building-kimi-k3-in-c-to-run-a-2-8t-model-on-consumer-hardware-a5792cbf3b59


kimi-k3-in-c

A 2.78-trillion-parameter model. One CPU. 8 GB of RAM.

Kimi K3 inference in portable C99. No BLAS. No framework. No GPU.

Some source content is omitted. Continue reading on the original site.

#kimi-k3-in-c#Kimi K3#Moonshot AI#FareedKhan-dev#AVX2#MXFP4

Original · 35 min readRead the original
Group chat

No comments yet. Start the conversation.