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.
C avx2c99cpu-inferencedeep-learningfrom-scratchinference-enginekimi-k3linear-attentionllmllm-inferencemachine-learningmemory-efficientmixture-of-expertsmoemxfp4quantizationsimdsystems-programmingtransformerzero-dependencies
Commits on main
cli: prefill on --gen 0 so a reusable prefix state can be warmed
53f7248 Fareed Khan committed 2 months ago
cli: add --stop-id, halting generation after a listed token id
1e97491 Fareed Khan committed 2 months ago
build: add a CMake CI regression job and pin Python tool dependencies
68622d7 Fareed Khan committed 3 months ago
style(test): use the repo's ASCII dash convention in test_trunk.c
3144c1e Fareed Khan committed 3 months ago
fix(core): enforce k3_matmul_mxfp4's documented preconditions
a4197ad Fareed Khan committed 3 months ago
add NEON paths for the bf16, MXFP4 and q8 matmuls on aarch64
f46c8cd Fareed Khan committed 3 months ago
fix: macOS/Apple Silicon download script portability and Darwin pread 2 GiB ceiling
0fe6d0b Yongsheng Gao committed 3 months ago
perf(mxfp4): flat-row AVX2 path when group is a multiple of 16
ae3b9e9 Fareed Khan committed 3 months ago
bench: give the bf16 section finite weights so its hash check can pass
1d5bf7a TROY665 committed 3 months ago
perf: ~1.6x MXFP4 expert matmul via in-register nibble decode
f1cb772 TROY665 committed 3 months ago
Release v1.0.0: verified end to end, and faster, output unchanged
ff11dce Fareed Khan committed 3 months ago
Fix the first-run experience, and land the open pull requests
dc083e2 Fareed Khan committed 3 months ago
fix(trunk): do not run the reader thread with a single ring slot
918cc68 FareedKhan-dev committed 3 months ago
fix(tools): correct the MXFP4 scale rule and the packed run length
2279e3c FareedKhan-dev committed 3 months ago
merge: regenerate a tiny checkpoint, and align packed run lengths
2c31f09 FareedKhan-dev committed 3 months ago
merge: verify the checkpoint against Hub checksums, at a pinned revision
dc73d9f FareedKhan-dev committed 3 months ago
merge: use the current Hugging Face CLI for the checkpoint download
002661a FareedKhan-dev committed 3 months ago
fix(download): pin an immutable revision and verify checksums
fd5b606 FareedKhan-dev committed 3 months ago
docs: say how to run the tokenizer gate without the checkpoint
90f48a4 FareedKhan-dev committed 3 months ago