Ran Moonshot’s 2.8T-parameter Kimi K3 on a GPU-less mini-PC, one day after release

Ran Moonshot’s 2.8T-parameter Kimi K3 on a GPU-less mini-PC, one day after release

Exploring Kimi K3: Running a 2.8 Trillion Parameter Language Model on a GPU-Free Mini-PC

The AI community witnessed a significant milestone with the recent release of Kimi K3, a massive language model boasting 2.8 trillion parameters. Notably, Kimi K3 is among the largest open-weight models to date, offering unprecedented access to massive-scale language processing.

In a remarkable feat of engineering and resourcefulness, I managed to run and interact with Kimi K3 on a compact, GPU-less mini-PC just one day after its release. This demonstrates that deploying such substantial models doesn’t necessarily require high-end GPUs or extensive hardware infrastructure.

Model Specifications and Infrastructure

Kimi K3’s checkpoint is approximately 1.56TB, divided into 96 shards. These shards exceed the RAM capacity of conventional machines; my own system has 128GB of RAM, which isn’t sufficient to load the entire checkpoint simultaneously. To handle this, the model employs a Mixture of Experts (MoE) architecture, which significantly optimizes resource utilization. In MoE models, only a subset of the parameters—specifically, a handful of the 896 experts per layer—are active for any given input, reducing the workload and memory footprint.

The dense components of the model, such as attention mechanisms and shared experts, are stored in RAM in a quantized form. Meanwhile, the routed experts are streamed directly from disk as needed, with an intelligent caching mechanism that employs Least Recently Used (LRU) policies. This cache tracks frequently accessed experts, pinning them in memory to improve performance over time.

Compatibility and Implementation Details

One notable aspect of deploying Kimi K3 is the seamless integration with existing tools. Moonshot, the platform releasing Kimi K3, provides expert models in MXFP4 format. My implementation reads these models directly from their safetensors files without requiring additional preprocessing steps. This straightforward compatibility simplifies deployment and testing.

Validation and Performance

Before proceeding with interactions, I verified the model’s correctness through multiple methods:

  • Bit-Exactness: Ensuring the output matches Moonshot’s reference implementation.
  • Structural Testing: Comparing the model’s architecture against the full checkpoint.
  • Prompt Testing: Engaging the model with queries to observe logical responses.

For example, to test its capabilities, I issued the prompt:

bash
rabbit --model /mnt/data/kimi-k3 --prompt "What is the capital of France?" --max-tokens 40

The model loaded in about 610 seconds, processing all 93 layers and 896 experts per layer. Despite the slow load time—largely due to the current lack of SIMD optimizations in the MXFP4 kernel—the model responded correctly with “Paris.” This validation confirms that even at this scale, Kimi K3 can operate accurately on modest hardware.

Performance Considerations

Performance remains a work in progress. Currently, the inference speed is slow, taking approximately ten minutes just to load the model. No performance tuning has been applied yet; the code executes scalar operations without SIMD acceleration. For comparison, a smaller model (GLM-5.2, 744B parameters) on the same setup benefits from tuning, reaching speeds of over one word per second. Kimi K3’s initial performance reflects the early stage of optimization.

Hardware Environment

The mini-PC employed is a Slimbook ONE, equipped with a Ryzen AI 9 HX 370 processor and no dedicated GPU. Storage is handled via two consumer NVMe drives, illustrating that heavy AI workloads at this scale can be approached without specialized hardware.

Conclusion and Resources

This experience underscores the potential for deploying extremely large language models on relatively modest hardware setups. While performance tuning and optimization remain necessary, the feasibility has been demonstrated.

For those interested in exploring or replicating this setup, the project repository is available:

https://github.com/ferrumox/rabbit

Kimi K3 running on a mini-PC

This achievement opens new avenues for researchers and enthusiasts to experiment with large-scale models outside of traditional high-end hardware environments, fostering broader accessibility and innovation in AI development.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *