Huo Xing Caijing reports that on August 8, a developer recently open-sourced the project kimi-k3-in-c, attempting to run the Kimi K3 model with 2.78 trillion parameters on a device with only 8GB of RAM. The project, just 176KB in size, is written entirely in pure C99 and does not rely on GPU, CUDA, PyTorch, or BLAS—performing model inference solely via CPU. This approach leverages the MoE (Mixture of Experts) architecture of Kimi K3. Although the model has a total of 2.78T parameters, only 16 out of 896 experts per layer are activated at any time. Therefore, the developer did not load the full ~1.56TB of model weights into memory; instead, most expert weights are stored on NVMe storage and loaded on-demand during inference. Additionally, certain dense layers (dense trunk) are loaded in a streaming, layer-by-layer manner. However, this solution still has significant performance limitations. Under the 8GB RAM configuration, generating a single token takes approximately 32.7 seconds and requires nearly 1.7TB of high-speed storage. The developer notes that this approach is currently more of an experimental exploration into optimizing large model inference infrastructure rather than a practical production solution. Nevertheless, its use of “streaming disk loading + sparse MoE activation” offers a novel direction for enabling cost-effective deployment of ultra-large models in the future.
Developer Opens Source C Engine to Run 2.78T-Parameter Kimi K3 on 8GB RAM
MarsBitShare
A developer released a project announcement titled "kimi-k3-in-c," enabling the 2.78-trillion-parameter Kimi K3 model to run on 8GB of RAM. The 176KB C99 project uses CPU-only inference, activating 16 of 896 experts per layer. It loads weights from NVMe storage on demand but requires 32.7 seconds per token and 1.7TB of fast storage. The developer described it as an on-chain, news-worthy experiment, not yet ready for production.
Source:Show original
Disclaimer: The information on this page may have been obtained from third parties and does not necessarily reflect the views or opinions of KuCoin. This content is provided for general informational purposes only, without any representation or warranty of any kind, nor shall it be construed as financial or investment advice. KuCoin shall not be liable for any errors or omissions, or for any outcomes resulting from the use of this information.
Investments in digital assets can be risky. Please carefully evaluate the risks of a product and your risk tolerance based on your own financial circumstances. For more information, please refer to our Terms of Use and Risk Disclosure.