Download source/README.md from bingokingooo/shruti-coreml: direct link, hf CLI and curl.
- Browser
- Download file 3.54 kB
-
https://huggingface.co/bingokingooo/shruti-coreml/resolve/main/source/README.md
- Command line
-
hf download hf://bingokingooo/shruti-coreml/source/README.md
-
curl -L -o README.md https://huggingface.co/bingokingooo/shruti-coreml/resolve/main/source/README.md
Shruti Core ML
A standalone port of every released language in Udgam Labs’ Apache-2.0 Shruti speech model family. Each Core ML bundle is independent and uses the language’s original released CQ4 weights and vocabulary. The status of the conversions and the benchmark criteria are documented separately.
The first public experimental release contains all 22 model archives. The
published snapshot is pinned at 32942d41c1950cc7c439aa45688fb7d0dbd7913b.
Hugging Face release
Reproduce
Use an Apple Silicon Mac with Xcode, Python 3.9 or compatible, and sufficient disk space for model sources and compiled assets. The converter needs several hundred megabytes per language.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
git clone https://github.com/udgamlabs/shruti.git .upstream/shruti
git -C .upstream/shruti checkout 68a8d77e88e58ed1201cc20a9c4adc5d9750723f
python -m shruti_coreml.sources all
python -m shruti_coreml.batch all --jobs 2 --compile macos
python -m shruti_coreml.runtime build/hi example.wav --language hi
The checked catalog pins every source archive and metadata file. Core ML normalizes acoustic features using their actual length. The encoder receives zero-padded features with a valid-frame count. The decoder receives only the valid cross-attention frames and runs batched beam search using the upstream portable implementation. The released CQ4 weights are expanded into float32 graph constants. This expansion trades size for ease of verification. CPU parity testing does not make a phone performance claim.
Evaluate
export CACTUS_TELEMETRY=0
python -m shruti_coreml.fleurs hi_in
python -m shruti_coreml.benchmark hi \
--manifest data/bench/fleurs/hi_in/test.jsonl --language hi \
--output results/local/hi-fleurs
python -m shruti_coreml.monsoon
python -m shruti_coreml.benchmark hi \
--manifest data/bench/monsoon/test.jsonl --language hi \
--output results/local/hi-monsoon
python -m shruti_coreml.mucs
python -m shruti_coreml.benchmark hi \
--manifest data/bench/mucs/test.jsonl --language hi \
--output results/local/hi-mucs
python -m shruti_coreml.librispeech
python -m shruti_coreml.benchmark hi \
--manifest data/bench/librispeech/test.jsonl --language en \
--output results/local/hi-librispeech
python -m shruti_coreml.benchmark hi --silence --language hi \
--output results/local/hi-silence
python -m unittest discover -s tests
See evaluation protocol for the distinctions between the Hindi, 22-language and ONNX reports and how to supply paired transcripts. Per-clip results stay local. Published benchmark files contain aggregates.
Weight compression
See Hindi compression experiments for the candidate profiles, reproduction commands, and evidence. The family screen describes the paired Indic DiarBench evaluation and how the release chooses a profile per language.
Stage
python -m shruti_coreml.stage
The output directory publish/ contains independent checksummed ZIPs with
portable Core ML packages, provenance, and original model notices. Compiled
macOS directories are excluded from these distribution bundles. Development
and publication are independent from the Koash app catalog.