Nhà phát triển mở nguồn C Engine để chạy Kimi K3 với 2,78T tham số trên 8GB RAM

icon MarsBit
Chia sẻ
AI summary iconTóm tắt
Một nhà phát triển đã công bố một dự án có tên kimi-k3-in-c, cho phép mô hình Kimi K3 với 2,78 nghìn tỷ tham số chạy trên 8GB RAM. Dự án C99 dung lượng 176KB sử dụng suy luận chỉ trên CPU, kích hoạt 16 trong số 896 chuyên gia mỗi lớp. Nó tải trọng số từ bộ lưu trữ NVMe theo yêu cầu nhưng cần 32,7 giây mỗi token và 1,7TB bộ nhớ nhanh. Nhà phát triển gọi đây là một thí nghiệm đáng chú ý trên chuỗi, chưa sẵn sàng để đưa vào sản xuất.

The Huoxing Finance report states 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 purely in C99 and does not rely on GPU, CUDA, PyTorch, or BLAS—achieving model inference using only the CPU. This solution 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. Therefore, the developer did not load the full model weights of approximately 1.56TB into memory; instead, most expert weights are stored on NVMe storage and loaded in real time according to inference demands. Meanwhile, certain dense layers (dense trunk) are also loaded in a streaming, layer-by-layer manner. However, this solution still has significant performance limitations. Under the 8GB RAM mode, 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 and lacks practical production value. Nevertheless, its method of “streaming loading from disk + sparse activation via MoE” offers a novel direction for enabling cost-effective deployment of ultra-large models in the future.

Tuyên bố miễn trừ trách nhiệm: Thông tin trên trang này có thể được lấy từ bên thứ ba và không nhất thiết phản ánh quan điểm hoặc ý kiến của KuCoin. Nội dung này chỉ được cung cấp cho mục đích thông tin chung, không có bất kỳ đại diện hay bảo đảm nào dưới bất kỳ hình thức nào và cũng không được hiểu là lời khuyên tài chính hay đầu tư. KuCoin sẽ không chịu trách nhiệm về bất kỳ sai sót hoặc thiếu sót nào hoặc về bất kỳ kết quả nào phát sinh từ việc sử dụng thông tin này. Việc đầu tư vào tài sản kỹ thuật số có thể tiềm ẩn nhiều rủi ro. Vui lòng đánh giá cẩn thận rủi ro của sản phẩm và khả năng chấp nhận rủi ro của bạn dựa trên hoàn cảnh tài chính của chính bạn. Để biết thêm thông tin, vui lòng tham khảo Điều khoản sử dụngTiết lộ rủi ro của chúng tôi.