Have your agent write a Rust+CUDA inference engine: 10.4x faster Kokoro TTS

notmisha · x · 2026-11-27

kokoro-rust runs the Kokoro-82M TTS model natively in Rust and CUDA: on an RTX 4090, synthesizing chapters I–III of Alice in Wonderland (251 lines, 31 minutes of audio) into one WAV takes a median 5.1s vs 52.5s for upstream Kokoro — a 10.4x speedup including startup and model loading.

The original post argues you should stop telling agents to tune llama.cpp flags and instead have them write model-specific standalone Zig + native CUDA inference engines, sharing the exact prompt that got Gemini Neon to build one for Inkling 2 Mini on a single RTX 5090 overnight. notmisha endorses the model-specific-code approach (claiming his own 10x TTS speedup) but notes a one-liner like 'write this model in rust, make no mistakes' works too.

Original post →

More from coding & agent

coding & agent channel →