# CPU thread budget for Kinyarwanda Whisper Small Four intra-op threads reduced the median of the four sweep medians from **1.423 s to 0.963 s**. The median saving after pairing by clip ID was **0.466 s**. Four threads were faster in **199 of 200** paired observations. Across both configurations, the raw transcripts matched on every pair. WER was **9.60%** and CER was **1.89%**. [Measured aggregates](evidence/comparison.json) ## Paired results | Round | Matched clips | Median latency change, 4 − 1 (s) | p90, 1 / 4 (s) | Peak RSS, 1 / 4 (MiB) | Faster at 4 threads | | --- | ---: | ---: | ---: | ---: | ---: | | Run 1, round 1 | 50/50 | −0.503 | 1.607 / 1.079 | 1,807.8 / 1,808.3 | 50/50 | | Run 1, round 2 | 50/50 | −0.439 | 1.537 / 1.094 | 1,807.5 / 1,808.4 | 50/50 | | Run 2, round 1 | 50/50 | −0.474 | 1.613 / 1.159 | 1,808.4 / 1,788.8 | 49/50 | | Run 2, round 2 | 50/50 | −0.446 | 1.595 / 1.141 | 1,807.9 / 1,809.0 | 50/50 | | **Pooled** | **200/200** | **−0.466** | **1.604 / 1.130** | **1,808.4 / 1,809.0** | **199/200** | Each round compares the same 50 clip IDs. The overall latency change takes the median of each clip's differences across rounds, then the median across clips. Pooled p90 uses all matched latencies per setting with linear interpolation. The pooled row reports the largest measured peak RSS among the four workers in each setting. [Chart](evidence/latency-p90.png) The exception was in the first repeat round. One clip took 1.471 s with one thread and 1.479 s with four. This was one sequential worker under normal desktop workload. ## Protocol - **Machine and runtime.** MacBook Pro Mac15,7, Apple M3 Pro with 6 performance and 6 efficiency cores, 18 GiB RAM, native arm64 macOS 27.2.1 (26B131) and AC power. CPython 3.12.13, PyTorch 2.8.0 and Transformers 4.57.3 came from the lockfile. The runs took place on 29 November 2026 UTC. - **Checkpoint.** Digital Umuganda and Mbaza NLP's Whisper Small Kinyarwanda at `e29a6667dc1dad18ae9c2177492cd0022c6e5ad5`. Every worker used FP32 CPU inference, SDPA, batch size one, greedy decoding, a 128-token limit and the Swahili transcribe prefix expected by the fine-tune. [Model card](https://huggingface.co/DigitalUmuganda/whisper_small_kinyarwanda/tree/e29a6667dc1dad18ae9c2177492cd0022c6e5ad5) - **Audio.** AfriVoice access was unavailable. Evaluation used 50 clips from one 1,230-row Parquet shard of Bateesa's studio-read `train` split at `94c2d411a30a01e84addae6def3e067b3d26d113`. The clips span 3.5–9.5 s and total 302.88 s. SHA-256 ranking with seed 20261129 fixed their order before inference. FFmpeg 9.0.1 prepared mono 16 kHz PCM. [Dataset card](https://huggingface.co/datasets/Bateesa/rw-tts-dataset/tree/94c2d411a30a01e84addae6def3e067b3d26d113) - **Isolation.** A fresh worker loaded the model for each sweep. PyTorch reported the requested intra-op thread count and one inter-op thread. A dedicated clip warmed each worker. Run 1 used order `1, 4, 4, 1`. Run 2 used `4, 1, 1, 4`. A shared advisory lock coordinated local model runs. A network-denial sandbox and TCP permission probe enforced offline inference. [Real-clip smoke evidence](DEMO.md) Clip latency includes the staged WAV read, feature extraction, generation and token decoding. Decode time covers generation and token decoding. Fresh-process model and processor load time ranged from 0.302–0.338 s at one thread and 0.312–0.417 s at four threads with normal OS file caching. Pooled clip real-time factor was 0.236 and 0.160 respectively, calculated as total latency divided by total audio time. Peak RSS is the Darwin worker's lifetime resident high-water mark, including model loading and warm-up. WER and CER divide the total word or character edit count by the corresponding reference count. Normalization folds case, applies Unicode NFC, deletes apostrophe variants, preserves letters, marks and numbers, and collapses other characters to spaces. CER removes the remaining spaces. The per-sweep totals were 57 errors over 594 words and 69 over 3,660 characters. ## Limits The 50 clips were repeated in each round. The findings describe short readings from one shard on a laptop running on AC power. The checkpoint card identifies Common Voice for fine-tuning. Overlap between its training data and the evaluation audio or text is unknown. Energy use, other hardware, spontaneous or noisy speech, and concurrent workers need separate measurements. Initial HTTP and Xet staging attempts encountered I/O failures. The clean setup reused a SHA-256-verified cache. [Reproduction instructions](README.md#reproduce-the-evaluation) ## Deployment decision Use **four intra-op threads** for a single interactive worker on this Mac. It saved **0.466 s** on the median matched clip, reduced pooled p90 by **0.474 s**, and kept each transcript identical to its one-thread counterpart with less than 1 MiB difference between the maximum peaks.