AiSlackin
Entry
022 / 028
Filed
2026.10.31
Reading
5 min

Kokoro across CPU, CUDA, ROCm, and Intel XPU

The same Kokoro-82M model and two prompts across eight CPU and accelerator configurations, with pinned revisions, warm timings, and the limits of the comparison.

Kokoro across CPU, CUDA, ROCm, and Intel XPU
Fig. 00 / Entry 022Hover to pull the color proof

Kokoro was fast on the RTX 5060 Ti. I wanted to know how much of that result followed the model to other hardware. The same Kokoro-82M snapshot, af_bella voice, and two texts ran on CPUs and accelerators across three machines. Warm generation ranged from 30.6 ms on CUDA to 1.716 s on the Radeon 840M ROCm run for the longer prompt.

Kokoro warm generation time across eight hardware and runtime combinations. Short and longer prompts use separate horizontal scales; lower is faster.
Fig. 01 / Kokoro warm generation time across eight hardware and runtime combinations. Short and longer prompts use separate horizontal scales; lower is faster.

These timings are direct model calls, not end-to-end API response times. Each direct KPipeline call yielded one audio chunk, so its first-yield time is effectively the time to synthesize the whole clip. There was no earlier streaming chunk to count as TTFA.

Same model, same prompts

Every run used Kokoro/Misaki 0.9.4, model hexgrad/Kokoro-82M at revision f3ff3571791e39611d31c381e3a41a3af07b4987, and voice af_bella at 24 kHz mono. SHA-256 fingerprints for the checkpoint, config, and voice pack match across the CPU, CUDA, ROCm, and XPU runs.

The prompts were Open the browser and read my email. and I'll start a new git branch, push the changes, and open a pull request when the tests pass. Each prompt had three generations. The first generation was measured after model and pipeline setup; setup time is excluded. Unless noted, warm means the mean of generations two and three. The R9700 ROCm and Intel XPU results pool four warm samples from two processes each. The XPU run followed a separate smoke test, so its compiler/runtime cache may have been warm before the formal runs.

Machine and backendShort prompt: warm generationLonger prompt: warm generationRuntime
Wimpy, RTX 5060 Ti CUDA30.6 ms52.3 msPyTorch 2.14.1+cu130
Wimpy, Radeon AI PRO R9700 ROCm168.4 ms231.8 msPyTorch 2.14.0+rocm10.1.0; host ROCm 7.2.53211
Wimpy, Ryzen 9 9900X CPU170.0 ms389.5 msPyTorch 2.8.0+cpu; 12 intra-op / 24 inter-op threads
Wimpy, Ryzen 7 7700 CPU298.3 ms791.5 msPyTorch 2.8.0+cpu; 8 intra-op / 16 inter-op threads
r9slug, Ryzen 9 3900X CPU392.6 ms832.0 msPyTorch 2.8.0+cpu
r9slug, Intel Arc A750 XPU476.1 ms801.5 msPyTorch 2.8.0+xpu
Slug, Ryzen AI 5 340 CPU534.3 ms1,062.6 msPyTorch 2.8.0+cpu; 6 threads
Slug, Radeon 840M ROCm810.3 ms1,715.7 msPyTorch 2.14.0+rocm10.1.0; host ROCm 7.2.4

All results are warm averages. CPU entries used PyTorch 2.8.0+cpu; accelerator builds vary, so this is a measured comparison of complete setups, not a pure test of GPU architecture. The RTX 5060 Ti and R9700 runs used distinct PyTorch builds and the R9700 was tested under CachyOS. The R9700 run used CachyOS kernel 7.3.0-4-cachyos; its PyTorch ROCm wheel reported HIP 7.16.26385 over system ROCm 7.2.53211. The run completed inference on gfx1201, but this OS/ROCm combination is empirical rather than an AMD-validated configuration in its published compatibility matrix. Slug’s ROCm host used ROCm packages 7.2.4 with the same PyTorch ROCm wheel. The Arc A750 XPU environment used PyTorch 2.8.0+xpu, Intel compute runtime 26.35, oneAPI 2026, and Level Zero driver 1.17.39758. It also ran on CachyOS, which is not listed in PyTorch’s published client-GPU validation table. Transformers 5.19.0 and Hugging Face Hub 2.2.0 were installed in the ROCm and XPU environments. The Python version was 3.12.14 for the R9700 run and 3.12.15 for the XPU run.

The Ryzen 9 9900X was a later CPU run on Wimpy, after the earlier Ryzen 7 7700 test. Its numbers are not a same-session CPU-versus-GPU comparison against the earlier RTX result. Across the tests, the 9900X CPU was the fastest CPU configuration measured. The earlier 5060 Ti CUDA run was lower on both prompts, but CUDA was not rerun after Wimpy’s CPU upgrade.

What the AMD iGPU did

Slug is a Ryzen AI 5 340 system with Radeon 840M graphics. The direct CPU run was faster than the later ROCm run for both prompts: 534.3 ms versus 810.3 ms for the short text, and 1.063 s versus 1.716 s for the longer one. The ROCm setup used PyTorch 2.14.0+rocm10.1.0 with host ROCm packages 7.2.4, MIOpen disabled, and the experimental AOTriton flag enabled.

I also timed the active FastAPI endpoint separately. Three sequential MP3 requests per prompt returned HTTP 200 in both CPU and ROCm tests. Median full-response latency was 0.546 s and 1.221 s on the CPU service, versus 0.824 s and 1.738 s on ROCm. Those numbers include the service path and MP3 response; they are not model-only synthesis times.

The Radeon AI PRO R9700 run measured 168.4 ms and 231.8 ms warm. That test used PyTorch 2.14.0+rocm10.1.0 over system ROCm 7.2.53211, with MIOpen disabled and the experimental AOTriton path enabled. It ran in a separate environment from the Slug tests.

What these results do and do not show

The warm direct timings put the 5060 Ti first in both prompts. The R9700 and the Ryzen 9 9900X were close on the short text; the R9700 was faster on the longer one. The Arc A750 XPU run was slower than the Ryzen 9 3900X CPU run on the short prompt and slightly faster on the longer prompt. On Slug, ROCm did not beat the CPU result.

Those are observations from two fixed inputs and pinned model assets, not a universal ranking of CUDA, ROCm, XPU, or CPU inference. The software stacks and host systems differ, and this test did not score speech quality. It answers a narrower question: what these specific systems did with the same small Kokoro model and voice.

For Piper, Kokoro, Qwen3-TTS, and MOSS-TTS-Nano on the 5060 Ti, see the local-engine benchmark.

End of entry 022

>
↑ ↓ moveEnter open/ opens search anywhere