|
Download benchmarks/compressed/protocol.md from bingokingooo/shruti-coreml: direct link, hf CLI and curl.
- Browser
- Download file 3.16 kB
-
https://huggingface.co/bingokingooo/shruti-coreml/resolve/main/benchmarks/compressed/protocol.md
- Command line
-
hf download hf://bingokingooo/shruti-coreml/benchmarks/compressed/protocol.md
-
curl -L -o protocol.md https://huggingface.co/bingokingooo/shruti-coreml/resolve/main/benchmarks/compressed/protocol.md
3.16 kB
| # Compressed Shruti family benchmarks | |
| Each model has a weight-compressed Core ML candidate. The mixed profile | |
| uses INT4 in the eight encoder blocks and INT8 elsewhere for eligible | |
| weights. The alternate INT8 profile uses per-channel quantization. | |
| The audio frontend is identical across profiles. | |
| ## Paired speech screen | |
| We use the first eight test rows per language from the pinned | |
| [Indic DiarBench parquet files](https://huggingface.co/datasets/sarvamai/indic-diarbench/tree/92877bad8aab6e598167d91c6ee02aa8ca6ede09). | |
| Eligible turns are 2–14 seconds long, have at least three reference words | |
| after removing annotation tags, and do not overlap another annotated turn. | |
| We order eligible turns by SHA-256 of their deterministic IDs and select | |
| up to 16, with up to four from a recording. Audio hashes and manifest | |
| hashes verify matching inputs. We retain annotated references except for | |
| angle-bracket tags and apply NFC, lowercase, and punctuation removal when | |
| scoring WER. Language is forced to the pack language. | |
| Each turn runs through the original released CQ4 model, FP32 Core ML, | |
| and compressed Core ML. Core ML uses CPU-only inference on Mac. The | |
| runner rotates execution order and records real-time factor with other | |
| language jobs active. Treat these timings as local measurements. Each | |
| language also runs a shared English LibriSpeech clip and a four-second | |
| digital silence check with English forced. | |
| The [family results](https://huggingface.co/bingokingooo/shruti-coreml/blob/main/benchmarks/compressed/family.json) report every measured language and | |
| precision profile. When the mixed profile adds over two WER points | |
| against FP32, we also test INT8 on that manifest and choose the lower-WER | |
| profile. This threshold selects a candidate on a small pilot. The same | |
| pilot cannot establish accuracy parity or predict generalization. The | |
| comparison with original CQ4 and the conversation-bootstrap intervals | |
| are separate measurements. Physical iPhone latency, peak memory, and | |
| energy were outside this run. The released archives compile for iOS 26. | |
| Indic DiarBench was published by Sarvam AI under CC BY 4.0. The report | |
| contains aggregate metrics and manifest digests. Audio, speaker labels, | |
| and utterance-level transcripts stay local. | |
| ## Hindi comparisons | |
| The [compression screen](https://huggingface.co/bingokingooo/shruti-coreml/blob/main/benchmarks/compressed/hindi-screen.json) evaluates five candidate | |
| profiles on 24 clips each from public FLEURS, Monsoon, and MUCS. The | |
| [full-split protocol](https://huggingface.co/bingokingooo/shruti-coreml/blob/main/benchmarks/protocol.md) documents the separately | |
| published FP32 port results and the upstream evaluation access and | |
| reference differences. | |
| ## Reproduce | |
| The public [reference source](https://huggingface.co/bingokingooo/shruti-coreml/blob/main/source/README.md) lists the project | |
| dependencies and pinned upstream checkout. | |
| ```sh | |
| python -m shruti_coreml.compress build/hi build/hi-mixed-encoder \ | |
| --profile mixed-encoder --compile macos --compile ios | |
| python -m shruti_coreml.diarbench hi | |
| python -m shruti_coreml.family_benchmark hi \ | |
| --output results/local/family-compression/pinned-hi | |
| ``` | |