◉ Pulse
serphen avatar
#61 today ▼ 25

serphen/microkimi

Rust AI #from-scratch #inference-engine #kimi #linear-attention

Run and train your own miniature Kimi K3: a zero-dependency Rust inference engine, reimplemented from scratch - and nanokimi, a small model trained from scratch on CPU by the included training pipeline. Talks straight to the Metal API for GPU on macOS - CPU mode stays the fastest at small model sizes.

Created Jul 31, 2026
Stars
12
Today
+2
Forks
2
Quality
100/100
Momentum
20

README

Fetched from GitHub on Oct 30, 2026, 11:03 PM UTC · README.md

View original on GitHub

Third-party content — Open Source Pulse is not the owner of this repository.

This README belongs to serphen/microkimi and its contributors. We fetch it directly from the project’s public GitHub repository and display it for reference only. All text, code, images and trademarks remain the property of their respective authors. See the repository for its license terms. Copyright / takedown policy.

microkimi

A large-model engine in pure Rust. Zero dependencies. Measured, not promised.

One small binary runs Kimi K3, DeepSeek-V4, and the Qwen3.5 family (Qwen3.8-27B is its default model when converted). No Python. No crates. No SDK to install: the GPU paths open Metal and the CUDA driver at run time. cargo build, point it at a model, go.

  • Fast. Qwen3.8-27B on one NVIDIA L4: 12 tokens per second, the whole model resident on a single 24 GB GPU - where llama.cpp's Q8_0 needs four. On an Apple M5, prompts read at over 1,000 tokens per second, ahead of llama.cpp on CPU. The numbers.
  • Exact. The default path is bit-exact f32. Every speed mode is measured against it and quoted honestly.
  • Time travel. Conversations are version-controlled. Fork any past state. Diff two answers. Merge two branches back into one mind.
  • Serve it. An OpenAI-compatible API lives in the same binary: microkimi serve.

A Python toolkit under nano/graft/ handles model surgery - compatibility scans, expert utility measurement, feed-forward transfer - across Qwen, DeepSeek, Gemma and llama-style checkpoints. See nano/graft/README.md.

This is a framework for developers - an engine and a test model, not a product for end-users.

Almost all of the code was written by Kimi K3 itself - the quiet beauty of an LLM giving birth to another.

The moon loved the sun, but they could never meet, so every night, they would go to the park to play. Every night, the moon danced with the stars, and they were very happy, playing together every day. The end.

  • nanokimi-0.2b, running on microkimi

Get started

All you need is Rust (rustup). Download nanokimi-0.2b.bin + vocab_nano.json from Releases into the repo root, then:

cargo build --release
./target/release/microkimi run "Once upon a time, a kind dragon lived in a cave. Every morning, he" \
  --model nanokimi-0.2b.bin --max-new 12 --raw
# answer:  would go to the park and play with his friends.

./target/release/microkimi chat --model nanokimi-0.2b.bin --raw

To run a real Qwen checkpoint:

./target/release/microkimi convert-qwen --source /path/to/Qwen3.5-0.8B --out qwen.bin
./target/release/microkimi chat --model qwen.bin

Models

model what it is guide
nanokimi-0.2b 0.2B Kimi K3, trained from scratch KIMI.md
converted Qwen3.5 / 3.6 / 3.8 any Qwen3.5-family text checkpoint, MoE or dense QWEN.md
microkimi-debug / microdeepseek-debug synthetic architecture demos for parity tests KIMI.md, DEEPSEEK.md

Go deeper

  • RESULTS.md - benchmarks vs llama.cpp, same machine, same model.
  • BENCH.md - how to reproduce every number.
  • QWEN.md - the Qwen runtime: conversion, Metal and CUDA, speculative decoding, serving, conversation version control.
  • KIMI.md - the K3 engine: expert streaming, memory packs, slicing, adapters.
  • DEEPSEEK.md - the DeepSeek-V4 runtime.

License

MIT - see LICENSE. Credits in ACKNOWLEDGMENTS.md.

Rendered by GitHub from the repository’s README. Scroll to read the full file.
First trending

Jul 31, 2026

first spotted on the list

Best rank

#16

highest position reached

Appearances

2

times on the trending list

Quality score

100

out of 100

Momentum

20

trend strength indicator

Star velocity

0.13

stars per day since creation

Activity — last 60 days

daily counts, collected every 6 hours
  • Stars
  • Forks
  • Merged PRs
  • Issues
  • Closed issues

Collecting activity data since launch — check back in a few days.

Star history

total stars per snapshot
910111213serphen/microkimi · Jul 31, 7 PM UTC: 10 starsserphen/microkimi · Aug 1, 3 AM UTC: 12 stars7 PM11 PM3 AM

Rank history

position on trending · lower is better
#1#10#20#30#40#50#60#70Jul 31, 7 PM UTC: rank #16Aug 1, 3 AM UTC: rank #617 PM11 PM3 AM

3D card for your website

Live HTML card with a glass surface and pointer tilt. Paste the iframe on any website.

<iframe src="https://www.notionpulse.cc/embed/serphen/microkimi" width="420" height="240" style="border:0;max-width:100%;background:transparent" loading="lazy" title="serphen/microkimi — trending on Open Source Pulse"></iframe>

Stars badge

Show current stars in your README or profile. Auto-updates every 6 hours.

serphen/microkimi stars badge
Markdown
[![serphen/microkimi](https://www.notionpulse.cc/api/badge/serphen/microkimi.svg)](https://www.notionpulse.cc/repo/serphen/microkimi)
HTML
<a href="https://www.notionpulse.cc/repo/serphen/microkimi"><img src="https://www.notionpulse.cc/api/badge/serphen/microkimi.svg" alt="serphen/microkimi stars badge" /></a>

Repository of the Day

#16 Repository of the Day

Repository of the Week

#16 Repository of the Week

Repository of the Month

#16 Repository of the Month