fareedkhan-dev/kimi-k3-in-c

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.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 16 minutes ago
Added to GitGenius on September 1st, 2026
Created on August 1st, 2026
Open Issues & Pull Requests: 14 (+0)
GitHub issues: Enabled
Number of forks: 1,173
Total Stargazers: 7,187 (+1)
Total Subscribers: 67 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 2.9 days
Mean response time: 7.2 days
90th percentile: 15.8 days
Tracked items: 15

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 13% of issues opened in the past year have been closed. Three people close 100% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 6
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 15 days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 1
Events in 7 days: 2

Top labels

  • bug (4)
  • enhancement (4)

Most active issues this week

Detailed Description

Kimi K3 in C is an inference engine that runs a 2.78-trillion-parameter language model on a single CPU using only 8 GB of RAM.

The project solves the problem of making large language model inference accessible on consumer hardware without specialized accelerators. It implements the Kimi K3 model entirely in portable C99 with no external dependencies, using techniques like quantization and mixture-of-experts optimization to compress the 1.56 TB checkpoint into a footprint that fits on ordinary machines. The engine itself is only 176 KB. Performance scales with available memory: on an 8 GB laptop, inference takes about 26.5 seconds per token as the model streams from disk, while on a 128 GB workstation with the full model in memory, the same operation completes in 5.6 seconds. The output is byte-identical across all hardware configurations.

This tool suits developers who need to run large language models on machines without GPUs or who want complete control over inference without framework dependencies. It is particularly valuable for edge deployment, offline systems, or environments where GPU access is unavailable or impractical. The project demonstrates that trillion-parameter models can run on consumer hardware through careful engineering rather than specialized silicon.

Development activity shows consistent focus on performance optimization and correctness. The codebase maintains a minimal footprint while supporting SIMD acceleration through AVX2 instructions for CPU-level speedup. The project includes comprehensive benchmarking data across different hardware configurations, indicating attention to real-world performance characteristics. Continuous integration is active, and the implementation prioritizes portability and reproducibility, with byte-identical outputs across platforms serving as a verification mechanism.